Guest User

crossfire goto message

a guest
Sep 17th, 2011
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           Crossfire goto message
  3. // @namespace      crossfire.nu
  4. // @author         LAZYMAN++
  5. // @include        http://www.crossfire.nu/?x=message&mode=item&id=*
  6. // @description    Takes you to your reply without having to click "here"
  7. // ==/UserScript==
  8.  
  9. divs = document.getElementsByTagName("div");
  10. for (i = 0; i < divs.length; i++) {
  11.     if (divs[i].className == "constrainImages") {
  12.         constrainImages = divs[i];
  13.         break;
  14.         }
  15.     }
  16.  
  17. urli = constrainImages.childNodes[7].href;
  18. window.location = urli;
Advertisement
Add Comment
Please, Sign In to add comment