swarminject.js 359 B

12345678910
  1. // load testswarm agent
  2. (function() {
  3. var url = window.location.search;
  4. url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
  5. if ( !url || url.indexOf("http") !== 0 ) {
  6. return;
  7. }
  8. /*jshint evil:true */
  9. document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date()).getTime() + "'></scr" + "ipt>");
  10. })();