Skip to content

Instantly share code, notes, and snippets.

@Woundorf
Last active March 20, 2018 00:20
Show Gist options
  • Save Woundorf/8cfeb33e44516bf1caeadf659a708d40 to your computer and use it in GitHub Desktop.
Save Woundorf/8cfeb33e44516bf1caeadf659a708d40 to your computer and use it in GitHub Desktop.
Block eval (works as an anti-anti-ad-blocker)
// ==UserScript==
// @name No eval
// @version 3
// @run-at document-start
// @include *.gsmarena.com/*
// @include *mashable.com/*
// @include *.merriam-webster.com/*
// @include *.wikia.com/*
// @include *.xda-developers.com/*
// ==/UserScript==
function eval(a) {
//console.log("eval(" + a + ")");
}
exportFunction(eval, window, { defineAs: 'eval' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment