Created
March 25, 2018 17:53
-
-
Save Erquint/43b171c0d1ce2bc903c7aaf44770a894 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 DisableEval | |
// @namespace [email protected] | |
// @include * | |
// @version 1.0 | |
// @description This will disable the eval function. Attempts to call eval will be logged in the browser console as warnings. | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
eval = function(){console.warn('Attempted use of eval blocked!');}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment