Advertisement
Guest User

Untitled

a guest
Jan 9th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. // ==UserScript==
  2. // @name JohnRipper
  3. // @namespace BitchesLoveTacos2
  4. // @include https://forums.dust514.com/*
  5. // @version 1
  6. // @grant none
  7. // ==/UserScript==
  8. var yourname = "Cat Merc";
  9. var changedName = "General John Ripper";
  10. var changedAvatarUrl = "http://i.imgur.com/UaniIKO.jpg";
  11.  
  12.  
  13. body = document.body;
  14. images = body.getElementsByClassName("avatarimage lazy");
  15. names = body.getElementsByClassName("box");
  16.  
  17. for(i = 0; i < names.length; i++) {
  18. if(names[i].getAttribute("title") == yourname)
  19. {
  20. names[i].innerHTML = "General John Ripper";
  21. names[i].setAttribute("title","Immortal John Ripper");
  22. images[i].setAttribute("src", changedAvatarUrl);
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement