Skip to content

Instantly share code, notes, and snippets.

@lndbrg
Last active April 12, 2018 23:36
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 lndbrg/20755df788fd9dde825e9fcdd0d18bc0 to your computer and use it in GitHub Desktop.
Save lndbrg/20755df788fd9dde825e9fcdd0d18bc0 to your computer and use it in GitHub Desktop.
// ==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