Guest User

Untitled

a guest
Oct 3rd, 2022
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Recercled
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Enlève les cercles de tout le monde et me met le meilleur cercle
  6. // @author You
  7. // @match https://www.jeuxvideo.com/forums/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=jeuxvideo.com
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Your code here...
  16. const avatar = document.querySelectorAll('.bloc-avatar-msg');
  17. let userAvatarMsg;
  18.  
  19. avatar.forEach(avatar => {
  20. userAvatarMsg = avatar.children;
  21.  
  22. if(userAvatarMsg[0].getAttribute('class') == "challenge-border-avatar js-lazy")
  23. {
  24. userAvatarMsg[0].remove();
  25. }
  26.  
  27. if(userAvatarMsg[0].getAttribute('alt') == "dragonfive")
  28. {
  29. let cercle = document.createElement("img");
  30. cercle.classList.add("challenge-border-avatar-perso");
  31. cercle.classList.add("js-lazy");
  32. //cercle.src="data:image/gif;base64,R0…AAAALAAAAAABAAEAAAIBRAA7";
  33. cercle.src ="https://static.jvc.gg/22.17.1/img/challenge/legend.png";
  34. avatar.insertBefore(cercle, avatar.firstChild);
  35. }
  36. });
  37. })();
Add Comment
Please, Sign In to add comment