Skip to content

Instantly share code, notes, and snippets.

@numinit
Last active December 22, 2022 19:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numinit/f02f22a644a69fce1f1e to your computer and use it in GitHub Desktop.
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?
// ==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
Copy link

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.

@numinit
Copy link
Author

numinit commented Feb 19, 2016

@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