Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@biergaizi biergaizi commented Jan 14, 2016

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

This comment has been minimized.

Copy link
Owner Author

@numinit 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
You can’t perform that action at this time.