Advertisement
thetenfold

Untitled

Jul 8th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var admin = (document.getElementsByClassName('admin') || [0])[0];
  2.  
  3. if (!admin || admin.textContent !== 'Admin') { return; }  // end execution
  4.  
  5. // get script ID --- this method is 10x faster than admin.href.match(/\d+$/) on Firefox
  6. var scriptID = location.href.substr(location.href.lastIndexOf('/') + 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement