New script - key-drop.com

15/08/2022, 16:46:46

Per 07-04-2023. Zie de nieuwste versie.

  1. // ==UserScript==
  2. // @name New script - key-drop.com
  3. // @namespace Violentmonkey Scripts
  4. // @match https://key-drop.com/*/case-battle/list
  5. // @grant none
  6. // @version 1.0
  7. // @author wdsa#6952
  8. // @description 15/08/2022, 16:46:46
  9. // ==/UserScript==
  10.  
  11. const TARGETS = [ 'KITTY'];
  12. (async () => {
  13. while (true) {
  14. await new Promise(r => setTimeout(r, 100));
  15. try {
  16. const caseName = document.querySelector('p.max-w-full.px-1.overflow-hidden').textContent;
  17. const casePrice = document.querySelector('div.flex.items-center.justify-center.rounded-tl-lg').textContent;
  18. if (TARGETS.includes(caseName) && casePrice === 'FREE') {
  19. const btn = document.querySelector('a.button.ml-1.mr-5');
  20. btn.click();
  21. }
  22. } catch {null;}
  23. }
  24. })();// ==UserScript==
  25. // @name New script
  26. // @namespace Violentmonkey Scripts
  27. // @match :///*
  28. // @grant none
  29. // @version 1.0
  30. // @author -
  31. // @description 3.09.2022, 21:37:32
  32. // ==/UserScript==