Skip to content

Instantly share code, notes, and snippets.

@BrockA
BrockA / checkForBadJavascripts_Demo.user.js
Created May 6, 2012 06:50
This demonstrates the checkForBadJavascripts function in a complete Greasemonkey script and against a target page (http://jsbin.com/ogudon).
// ==UserScript==
// @name _Replace evil Javascript
// @include http://jsbin.com/ogudon*
// @run-at document-start
// ==/UserScript==
/****** New "init" function that we will use
instead of the old, bad "init" function.
*/
function init () {