Advertisement
thetenfold

Untitled

Jul 9th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // get the "Admin" link's href
  2. admin = document.evaluate("//a[.='Admin' and @class='admin']/@href", document, null, 2, null).stringValue;
  3.  
  4. // grab the script's ID from the Admin link's href
  5. scriptID = ( admin.match(/\/(\d+)/) || [0, 0] )[1];
  6.  
  7. // quit if the admin link is not found
  8. if(!admin || !scriptID) return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement