Wikipedia

Search results

Tuesday, July 20, 2021

Show HN: Highlight all “1 point” news https://ift.tt/36Ms6rh

Show HN: Highlight all “1 point” news It seems nobody pays attention to 1 point news here and news from the main page are initially upvoted by bots (to get to there). So I've written a short userscript for this site to highlight all "1 point" entries: [...document.querySelectorAll(".score")].filter(x => x.innerText == "1 point").map(x => x.closest("tr").previousSibling.querySelector(".storylink")).forEach(x => x.style.backgroundColor = "#FF9") July 20, 2021 at 09:46AM

No comments:

Post a Comment