3 ms·
// ==UserScript== // @name HN brudgers // @match https://news.ycombinator.com/* // ==/UserScript== for (let link of document.querySelectorA
by brudgers 4y ago
// ==UserScript==
// @name HN brudgers
// @match https://news.ycombinator.com/*
// ==/UserScript==
for (let link of document.querySelectorAll('.hnuser')) {
if (link.innerText == 'brudgers' ) {
link.style.color = 'blue';
}
}
Worth noting that this type of script is fragile.
Whenever HN changes it's HTML, CSS, Javascript, or code-generating code, it might stop working.