This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 24th, 2013  |  syntax: None  |  size: 1.45 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <script>
  2. var adfly_id = 517450;
  3. var adfly_advert = 'banner';
  4. var frequency_cap = 5;
  5. var frequency_delay = 5;
  6. var init_delay = 3;
  7. </script>
  8. <script src="http://adf.ly/js/entry.js"></script>
  9.        
  10. // ==UserScript==
  11. // @name            _adFly why?
  12. // @include         http://YOUR_SITE/YOUR_PATH/*
  13. // ==/UserScript==
  14.  
  15.  
  16. function myCode () {
  17.     //--- Set global variables for adFly.
  18.     window.adfly_id         = 517450;
  19.     window.adfly_advert     = 'banner';
  20.     window.frequency_cap    = 5;
  21.     window.frequency_delay  = 5;
  22.     window.init_delay       = 3;
  23. }
  24.  
  25. addJS_Node (null, null, myCode);
  26. addJS_Node (null, "http://adf.ly/js/entry.js");
  27.  
  28. function addJS_Node (text, s_URL, funcToRun) {
  29.     var D                                   = document;
  30.     var scriptNode                          = D.createElement ('script');
  31.     scriptNode.type                         = "text/javascript";
  32.     if (text)       scriptNode.textContent  = text;
  33.     if (s_URL)      scriptNode.src          = s_URL;
  34.     if (funcToRun)  scriptNode.textContent  = '(' + funcToRun.toString() + ')()';
  35.  
  36.     var targ    = document.getElementsByTagName('head')[0] || D.body || D.documentElement;
  37.     targ.appendChild (scriptNode);
  38. }
  39.        
  40. var sc = document.createElement('script');
  41. sc.src = "http://adf.ly/js/entry.js"
  42. document.body.appendChild(sc);
  43.        
  44. unsafeWindow.adfly_id = 517450;
  45. unsafeWindow.adfly_advert = 'banner';
  46. unsafeWindow.frequency_cap = 5;
  47. unsafeWindow.frequency_delay = 5;
  48. unsafeWindow.init_delay = 3;
clone this paste RAW Paste Data