dsilverz

joined 2 days ago
[–] dsilverz@calckey.world 2 points 11 hours ago

@Hubi@feddit.org @sk1nnym1ke@piefed.social Would be interesting to have something like this for non-Lemmy platforms as well, such as Friendica, Misskey/Sharkey/Calckey and other platforms lacking an integrated status page from their own.

[–] dsilverz@calckey.world 2 points 14 hours ago (1 children)

@sirico@feddit.uk

private bool isEven(int number){
    	bool result = true;
    	while (number > 0){
    		number = number - 1;
    		if (result == true)
    			result = false;
    		else
    			result = true;
    	}
    	return result;
    }

(P.S.: Only works for positive numbers)

[–] dsilverz@calckey.world 0 points 16 hours ago (1 children)

@squaresinger@lemmy.world It's probably because my kernel version is very old (5.14.11-arch1-1, haven't updated since 2019, even though it's Arch, a rolling-release distro) and my Acer laptop is old as well (Intel Core 7th gen), but I rarely have problems regarding laptop sleep. After I wake the laptop up, the video (including every VT#) may get frozen and I have to remotely SSH and request a reboot (and when this happens, sometimes the reboot gets stuck as well, so I have to do a hard power-off). But it's very rare, as stated, and I daily put my laptop to sleep without issues, sometimes the system uptime stretches to weeks (currently, my system was booted almost four days ago).

[–] dsilverz@calckey.world 1 points 2 days ago

@Achyu@lemmy.sdf.org Yes, and in a fairly heavy manner. Currently, I have four personal user-scripts configured for Tampermonkey, as well as a few custom filters configured for uBlock Origin.

In Tampermonkey:
- Matching Lemmy (a specific instance): if the current location address is the main feed (which is often the "Local" feed sorted by "Active"), automatically redirect to "All" feed sorted by "New comments" (as I currently have no Lemmy account, I browse it as a guest, so Lemmy doesn't memorize what my preferences are)
- Matching Pixelfed (a specific instance): automatically fetch and reveal hidden media marked as sensitive (the original Web interface for Pixelfed doesn't allow for automatically expanding/revealing media marked as sensitive). It uses localStorage for storing already fetched media URLs (so I don't need to consume the ActivityPub API every time).
- Matching a specific image hosting platform: sets the image wrapper's background to white.
- Matching a specific PeerTube instance: automatically reveals media marked as sensitive (differently from Pixelfed, it just uses CSS to blur the thumbnail, so it's just a matter of unblurring it).

As for uBlock Origin, there are many filters intended to hide advertisement and other banners, but there are also a few filters unrelated to ads, filters meant to be functional:
- Matching Lemmy: hide specific communities I'm not interested in, using a rule ##.post-listing:has(.community-link:has-text("/^name_of_community/").
- Also matching Lemmy: hide the wrapper for composing comments, because I don't have a Lemmy account so Lemmy platforms will display a warning box "You're not logged in".

Sometimes I also tinker with DevTools for specific purposes, such as transforming text, copying text, classifying text, or just randomly experimenting with JS snippets.

[–] dsilverz@calckey.world 3 points 2 days ago (1 children)

@FabledAepitaph@lemmy.world @BombOmOm@lemmy.world What exactly is Moisturefox? Never heard about it. Is it a Firefox fork for desktop or mobile? How much does it differ from forks such as Librewolf, Waterfox, Fennec and IronFox?