gartic emoji

belirlediğiniz emojileri görmeyi sağlar. daha fazlasını kendiniz ekleyebilirsiniz.

  1. // ==UserScript==
  2. // @name gartic emoji
  3. // @namespace cehennem
  4. // @version 0.1
  5. // @description belirlediğiniz emojileri görmeyi sağlar. daha fazlasını kendiniz ekleyebilirsiniz.
  6. // @author oh kangwoo
  7. // @match https://gartic.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. const emojiler = {
  12. ':aboo:': 'https://cdn.discordapp.com/emojis/1178789794898264085.webp',
  13. ':catjoy:': 'https://cdn.discordapp.com/emojis/1176794476858064896.webp',
  14. ':catangry:':'https://cdn.discordapp.com/emojis/1224000909147766825.webp',
  15. };
  16.  
  17. function bumheadshot(element) {
  18. for (const [za, az] of Object.entries(emojiler)) {
  19. const xd = new RegExp(`(${za})(?![^<]*["'])`, 'g');
  20. element.innerHTML = element.innerHTML.replace(xd, `<img src="${az}" alt="${za}" style="vertical-align: -5px; width: 20px; height: 20px;">`);
  21. }
  22. }
  23. function msgmsg() {
  24. const mesajlar = document.querySelectorAll('.msg span');
  25. mesajlar.forEach((spanElement) => {
  26. bumheadshot(spanElement);
  27. });
  28. }
  29.  
  30. setInterval(msgmsg);