Advertisement
Guest User

Untitled

a guest
Sep 13th, 2015
27
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Better username
  3. // @namespace    http://your.homepage/
  4. // @version      0.1
  5. // @description  Gives a better username design I hope...
  6. // @author       Jordynl
  7. // @match        http://atelier801.com/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. var ranks = ["admin", "moderateur", "mapcrew", "sentinelle"];
  12.  
  13. $(document).ready(function(){
  14.     for (var i in ranks) {
  15.       glowify(ranks[i]);
  16.     }
  17. });
  18.  
  19. function glowify(rank) {
  20.     var element = document.getElementsByClassName("cadre-type-auteur-"+ rank);
  21.     for(var i=0;i<element.length;i++){
  22.         var color = document.defaultView.getComputedStyle(element[i],null)["color"];
  23.         element[i].style.textShadow = "0 0 10px "+color;
  24.     }
  25. }
Advertisement
RAW Paste Data Copied
Advertisement