12510198

joined 1 year ago
[–] 12510198@lemmy.blahaj.zone 1 points 2 weeks ago

I made this userscript to put the vote count in comments back beside the vote button because the new one is kind of hard to see, its not the prettiest script (idk much about javascript), but I've tested it in Librewolf with Violentmonkey and it does work, hope it helps someone else!

// ==UserScript==
// @name        New script blahaj.zone
// @namespace   Violentmonkey Scripts
// @match       https://lemmy.blahaj.zone/post/*
// @grant       none
// @version     1.0
// @author      -
// @description 8/24/2024, 3:32:47 PM
// @run-at      document-idle
// ==/UserScript==

function main ()
{
	var parent_comments = document.getElementsByClassName("comment list-unstyled"); 
	for (var i = 0; i < parent_comments.length; /*i++*/)
	{
		/*console.log(i);*/
		var comments = parent_comments[i].getElementsByTagName("article");
		for (var j = 0; j < comments.length; j++)
		{
			var upvote_button = comments[j].getElementsByTagName("button")[1];
			
			if (upvote_button.attributes["vote_count_patched"] != null)
			{
				i++;
				continue;
			}
			
			var post_votes = upvote_button.attributes[2].textContent.split(' ')[0];
			upvote_button.append(' ' + String(post_votes));
			upvote_button.attributes["vote_count_patched"] = true;
			i++;
		}
	}
}
/*var mutation = null;
var mutation_observer = new MutationObserver(function(m) { mutation = m; console.log("new mutation logged yo");} );
mutation_observer.observe(document, { childList: true, subtree: true }); */

var mutation_observer = new MutationObserver(main);
mutation_observer.observe(document, { childList: true, subtree: true});

main();
[–] 12510198@lemmy.blahaj.zone 9 points 3 weeks ago (1 children)

I think it kinda looks like a lollipop

 

It took about 23 hours to get it booted under its own power using a binary kernel. And on the 4th day (today) I've managed to get a custom kernel working. Gentoo has been very fun to use and to customize, and it's very fast and responsive, even on my old hardware and with a hard disk, browsing heavy webpages with Librewolf is no problem at all. I've been sleeping on Gentoo for WAY to long.

[–] 12510198@lemmy.blahaj.zone 59 points 2 months ago (1 children)

What a bunch of cringe edgy antinatalist nonsense. Think about the future, if you don't have kids, who are we gonna feed to the machine a few decades from now?

[–] 12510198@lemmy.blahaj.zone 7 points 2 months ago

I figure that the administrators of your homeserver could see your IP address, I doubt that it would be sent to anyone you are just chatting with.

[–] 12510198@lemmy.blahaj.zone 0 points 3 months ago (1 children)

Ive only had to setup a nvidia system once, so I might be missing some packages, but I think pacman -Rns nvidia nvidia-utils lib32-nvidia-utils should get rid of all of it.