Skip to content

Instantly share code, notes, and snippets.

@joelz
joelz / jqGreaseMonkey.js
Created October 20, 2012 06:57
js:add jquery in GreasMonkey
// Example from http://www.joanpiedra.com/jquery/greasemonkey/
// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);
// Check if jQuery's loaded