// ==UserScript== // @name _adFly why? // @include http://YOUR_SITE/YOUR_PATH/* // ==/UserScript== function myCode () { //--- Set global variables for adFly. window.adfly_id = 517450; window.adfly_advert = 'banner'; window.frequency_cap = 5; window.frequency_delay = 5; window.init_delay = 3; } addJS_Node (null, null, myCode); addJS_Node (null, "http://adf.ly/js/entry.js"); function addJS_Node (text, s_URL, funcToRun) { var D = document; var scriptNode = D.createElement ('script'); scriptNode.type = "text/javascript"; if (text) scriptNode.textContent = text; if (s_URL) scriptNode.src = s_URL; if (funcToRun) scriptNode.textContent = '(' + funcToRun.toString() + ')()'; var targ = document.getElementsByTagName('head')[0] || D.body || D.documentElement; targ.appendChild (scriptNode); } var sc = document.createElement('script'); sc.src = "http://adf.ly/js/entry.js" document.body.appendChild(sc); unsafeWindow.adfly_id = 517450; unsafeWindow.adfly_advert = 'banner'; unsafeWindow.frequency_cap = 5; unsafeWindow.frequency_delay = 5; unsafeWindow.init_delay = 3;