Skip to content

Instantly share code, notes, and snippets.

@Erquint
Created March 25, 2018 17:53
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 Erquint/43b171c0d1ce2bc903c7aaf44770a894 to your computer and use it in GitHub Desktop.
Save Erquint/43b171c0d1ce2bc903c7aaf44770a894 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name DisableEval
// @namespace gness.na@gmail.com
// @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