Pornoxo.com 18+ Auto Confirm

Auto clicks 'I'm 18+' dialogue at landing.

От 29.03.2023. Виж последната версия.

  1. // ==UserScript==
  2. // @name Pornoxo.com 18+ Auto Confirm
  3. // @license GNU GPLv3
  4. // @description Auto clicks 'I'm 18+' dialogue at landing.
  5. // @match https://www.pornoxo.com/*
  6. // @version 1.0
  7. // @grant GM_getValue
  8. // @grant GM_setValue
  9. // @namespace
  10. // @namespace https://greasyfork.org/users/9946
  11. // ==/UserScript==
  12.  
  13.  
  14. /* defines PopUp Button button */
  15. const pB1=document.getElementsByClassName("swal2-confirm");
  16.  
  17.  
  18.  
  19. setTimeout(init,0.2*1000)
  20.  
  21. function init()
  22. {
  23. if (pB1.length > 0)
  24. {
  25. try
  26. {
  27. pB1[0].click();
  28. }
  29. catch(err)
  30. {
  31. console.log('caught the error');
  32. console.log(err.message);
  33. setTimeout(init,1000);
  34. }
  35. }
  36. else
  37. {
  38. setTimeout(init,2*1000);
  39. }
  40. }