daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest May 10th, 2015 3,445 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var changed = 0;
  2.  
  3. window.addEventListener('beforescriptexecute', function (e) {
  4.         src = e.target.src;
  5.         if (src.search(/main_out\.js..../) != -1) {
  6.                 changed++;
  7.                 e.preventDefault();
  8.                 e.stopPropagation();
  9.                 append(new_main_out);
  10.         };
  11.         if (changed == 1)
  12.                 window.removeEventListener(e.type, arguments.callee, true);
  13. }, true);
  14.  
  15. function append(s) {
  16.         console.log('append fired');
  17.         document.head.appendChild(document.createElement('script'))
  18.         .innerHTML = s.toString().replace(/^function.*{|}$/g, '');
  19. }
  20.  
  21. function new_main_out() {
  22.         // main_out.js
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top