Is there a way to disable all other Java Scripts other than my own with Grease Monkey
- by DKinzer
I need help getting a Grease Monkey with JQuery Script to run on a broken site.
I'm trying to get the following GM script to run, but the page I want it to work on has a JS error and my JS does not get executed.
// ==UserScript==
// @name BILL INFO PAGE ALTER
// @namespace http://jenkinslaw.org
// @description Alter the web page in order to pretty print
// @include http://www.legis.state.pa.us/cfdocs/billinfo/bill_history.cfm?*
// @require http://code.jquery.com/jquery-1.4.2.min.js
// ==/UserScript==
*/
(function() {
//Make a copy of the bill table
var bill_table = $('.main_table').clone();
//empty the whole lot
$(body).empty();
//append the bill back to the dom.
$(body).append(bill_table);
}());
Thanks!
D