so.cl

Rascals are always sociable, and the chief sign that a man has any nobility in his character is the little pleasure he takes in others company. Arthur Schopenhauer


Filtering Startup News

Simple JavaScript code that can be used to filter Startup News 💩 entries via specific words. Can be used in the browser console or with Tampermonkey. Just update the words array.

But, of course, best thing is not to visit that shithole.

(function() {
	var words = [
		"facebook"
	]
	filter();
	function filter() {
		var items = document.querySelectorAll(".athing");
		for (var item of items) {
			var text = item.textContent.toUpperCase();
			for (var word of words) {
				if (text.indexOf(word.toUpperCase()) > -1) {
					console.log('Filtering ' + text + ' (' + word + ')');
					try {
						item.nextSibling.style.display = "none";
					} catch(err) {
					}
					item.style.display = "none";
					break
				}
			}
		}
	}
})();