Created
August 25, 2017 08:23
-
-
Save anonymous/1d10eda2af174e4f7b479f52dde0dd22 to your computer and use it in GitHub Desktop.
Numerama article filter for greasemonkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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