Is there a way to disable all other Java Scripts other than my own with Grease Monkey

Posted by DKinzer on Stack Overflow See other posts from Stack Overflow or by DKinzer
Published on 2010-04-21T18:33:17Z Indexed on 2010/04/21 18:43 UTC
Read the original article Hit count: 299

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about greasemonkey

Related posts about jQuery