Advertisement
faubiguy

Username Empinkener

May 22nd, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Username Empinkener
  3. // @version      0.1
  4. // @description  Empinkens uncoloured usernames at the xkcd forums
  5. // @author       faubiguy
  6. // @include      http://forums.xkcd.com/*
  7. // @include      http://forums3.xkcd.com/*
  8. // @include      http://fora.xkcd.com/*
  9. // @include      http://echochamber.me/*
  10. // @grant        none
  11. // ==/UserScript==
  12.  
  13. /*rules = []
  14.  
  15. function add_rule(rule) {
  16.     rules.push(function(username){
  17.        
  18.     })
  19. }
  20.  
  21. add_rule('username: ')*/
  22.  
  23. links = document.getElementsByTagName('a')
  24. for(var i=0;i<links.length;i++){
  25.     link = links[i]
  26.     if(link.href.indexOf('memberlist.php?mode=viewprofile') !== -1 && !link.classList.contains('username-coloured') && !link.classList.contains('postlink')){
  27.         link.style.color = '#FF00BF'
  28.         link.classList.add('username-coloured')
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement