SSH Badge

Enjoy!

  1. // ==UserScript==
  2. // @name SSH Badge
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Enjoy!
  6. // @author G1_1777gold
  7. // @match https://www.nitrotype.com/garage
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12.  
  13. var _bucket_checker_ = null;
  14.  
  15. function look_for_bucket(){
  16. var a = document.getElementsByClassName('bucket bucket--f');
  17. if(a.length != 0 && a.length != undefined){
  18. add_the_badge(a);
  19. clearInterval(_bucket_checker_);
  20. }
  21. }
  22.  
  23. function add_the_badge(a){
  24. var node = document.createElement("div");
  25. node.className = "bucket-media";
  26. node.innerHTML = '<img alt="Scoreboard Top 3" class="profile-badge" src="https://media.discordapp.net/attachments/890657434253791335/891850921657651240/Screen_Shot_2021-09-26_at_8.56.47_PM.png">';
  27. a[0].insertBefore(node, a[0].childNodes[0]);
  28. }
  29.  
  30. _bucket_checker_ = setInterval(look_for_bucket, 200);