Guest User

Untitled

a guest
Sep 13th, 2015
12
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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×