Last active
December 22, 2022 19:20
-
-
Save numinit/f02f22a644a69fce1f1e to your computer and use it in GitHub Desktop.
before: http://i.imgur.com/Gp5X2Qx.png; after: http://i.imgur.com/YnKCChi.png - isn't that much better?
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 Remove Hackaday comments | |
// @namespace http://numin.it | |
// @version 0.6 | |
// @description remove all potential clues that comments may exist on hackaday.com | |
// @author numinit | |
// @match http://hackaday.com/* | |
// @match https://hackaday.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var remove = function(selector) { | |
var result = document.querySelectorAll(selector); | |
for (var i = 0; i < result.length; i++) { | |
result[i].remove(); | |
} | |
}; | |
remove('aside[id*="recent-comments"]'); | |
remove('#comments'); | |
remove('.comment-link'); | |
remove('.comments-link'); | |
remove('.comments-counts'); | |
})(); |
@biergaizi That actually might be a good idea. Check out this talk if you haven't already. Would love to just skip the comments sometimes and reclaim my scrollbar.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, that's great! We should write a general comment removal framework and launch an online script database to remove all the shit around the Internet by clicking a button! Of course remove GitHub comments is not necessary.