Last active
April 12, 2018 23:36
-
-
Save lndbrg/20755df788fd9dde825e9fcdd0d18bc0 to your computer and use it in GitHub Desktop.
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 Aftonbladet Freewall killer | |
// @match *://*.aftonbladet.se/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js | |
// @require https://cdn.rawgit.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js | |
// @grant GM_addStyle | |
// ==/UserScript== | |
//- The @grant directive is needed to restore the proper sandbox. | |
['qVgIk'].forEach(function(cls) { | |
waitForKeyElements('.'+cls, function(node) { | |
node.removeClass(cls); | |
}); | |
}); | |
['_3WxSp', '_2BiUa'].forEach(function(cls) { | |
waitForKeyElements('.'+cls, function(node) { | |
node.remove(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment