Last active
February 5, 2024 01:38
-
-
Save rishubil/7a3353ce7c6f990a24b0bbbe1af79507 to your computer and use it in GitHub Desktop.
Hide under 20 on lobste.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide under 20 on lobste.rs | |
// @description Hide under 20 on lobste.rs | |
// @updateURL https://gist.github.com/rishubil/7a3353ce7c6f990a24b0bbbe1af79507/raw/hide-under-20-on-lobsters.user.js | |
// @downloadURL https://gist.github.com/rishubil/7a3353ce7c6f990a24b0bbbe1af79507/raw/hide-under-20-on-lobsters.user.js | |
// @version 0.0.1 | |
// @match https://lobste.rs/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelectorAll(".story").forEach((element) => { | |
let score = Number(element.querySelector(".score").innerHTML); | |
if (score < 20) { | |
element.remove(); | |
} | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment