Return to Snippet

Revision: 24875
at March 13, 2010 18:44 by kevinkhill


Initial Code
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"/>'
};

Initial URL

                                

Initial Description

                                

Initial Title
My Greasemnokey Object

Initial Tags

                                

Initial Language
JavaScript