// ==UserScript==
// @name Blacklist Tags
// @namespace http://www.google.com/
// @version 0.1
// @description Change the blacklist_tags array to suit
// @author dddanmar
// @match http://hackaday.com/*
// @grant none
// ==/UserScript==
var articles = document.getElementsByTagName("article");
var blacklist_tags = ["crowd-funding", "crowdfunding", "kickstarter", "indiegogo",]
for(var i = 0; i < articles.length; i++){
tag_blocks = articles[i].getElementsByClassName("tags-links");
for (var a = 0; a < tag_blocks.length; a++) {
tags = tag_blocks[a].getElementsByTagName("a");
for (var b = 0; b < tags.length; b++) {
tag_link = tags[b].href
for (var c = 0; c < blacklist_tags.length; c++){
if (tag_link.indexOf(blacklist_tags[c]) > -1 ) {
console.log("Removing Article")
console.log(articles[i])
try {
articles[i].remove();
}
catch(err) {console.log("Article does not exist")}
console.log("Article removed")
}
}
}
}
}
And if someone wants to see an empty black screen, just add "Arduino" to the blacklist_tags.
:o)