/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var GM = { css:function(s){GM_addStyle(s)}, setVal:function(key,value){GM_setValue(key,value)}, getVal:function(key){var tmp=GM_getValue(key); if(tmp==null||tmp=='undefined'){return false;} else {return tmp}}, ajax:function(o){GM_xmlhttpRequest(o)}, ajaxHeaders:{ "Content-type":"application/x-www-form-urlencoded", "User-Agent":"Mozilla/5.0", "Accept":"text/xml" }, ajaxLoadGif:'<img src="' + GM_getResourceURL('ajaxLoadGif') + '" class="ajaxLoadGif"/>' };