Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2017 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1d10eda2af174e4f7b479f52dde0dd22 to your computer and use it in GitHub Desktop.
Save anonymous/1d10eda2af174e4f7b479f52dde0dd22 to your computer and use it in GitHub Desktop.
Numerama article filter for greasemonkey
// ==UserScript==
// @name Numerama article filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove crappy articles from Numerama
// @author Me
// @match http://www.numerama.com/*
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==
const keywordBlacklist = ["ESPORT", "SPONSORISÉ", "JEUX VIDEO"];
$(function() {
$('.tags-list').each(function( index ) {
if(keywordBlacklist.indexOf($(this).children("li").children("a, span").html().toUpperCase()) > -1) {
$(this).parents("article").remove();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment