PornTubes 18+ Auto Confirm

Auto clicks 'I'm 18+' dialogue at every page.

  1. // ==UserScript==
  2. // @name PornTubes 18+ Auto Confirm
  3. // @license GNU GPLv3
  4. // @description Auto clicks 'I'm 18+' dialogue at every page.
  5. // @match https://www.tubebdsm.com/*
  6. // @match https://www.forhertube.com/*
  7. // @match https://www.ixxx.com/*
  8. // @match https://www.porzo.com/*
  9. // @match https://www.gaymaletube.com/*
  10. // @match https://www.gotporn.com/*
  11. // @match https://www.tgtube.com/*
  12. // @match https://www.fucd.com/*
  13. // @match https://www.ghettotube.com/*
  14. // @match https://www.ebonygalore.com/*
  15. // @match https://www.assoass.com/*
  16. // @match https://www.porntv.com/*
  17. // @match https://www.lesbianpornvideos.com/*
  18. // @match https://www.melonstube.com/*
  19. // @match https://www.tubepornstars.com/*
  20. // @match https://www.tubeporn.com/*
  21. // @match https://www.tubegalore.com/*
  22. // @match https://www.toroporno.com/*
  23. // @match https://www.tiava.com/*
  24. // @match https://www.stocking-tease.com/*
  25. // @match https://www.sambaporno.com/*
  26. // @match https://www.qorno.com/*
  27. // @match https://www.pornhd.com/*
  28. // @match https://www.metaporn.com/*
  29. // @match https://www.maturetube.com/*
  30. // @match https://www.lupoporno.com/*
  31. // @match https://www.lobstertube.com/*
  32. // @match https://www.homemadegalore.com/*
  33. // @match https://www.hdporzo.com/*
  34. // @match https://www.findtubes.com/*
  35. // @match https://www.el-ladies.com/*
  36. // @match https://www.dinotube.com/*
  37. // @match https://www.cartoonpornvideos.com/*
  38. // @match https://www.analgalore.com/*
  39. // @match https://www.asiangalore.com/*
  40. // @version 1.0.2
  41. // @grant GM_getValue
  42. // @grant GM_setValue
  43. // @namespace
  44. // @namespace https://greasyfork.org/users/9946
  45. // ==/UserScript==
  46.  
  47.  
  48. /* defines PopUp Button button */
  49.  
  50.  
  51. const pB1=document.getElementsByClassName("bg-green-700");
  52.  
  53. setTimeout(init,4000)
  54.  
  55. function init()
  56. {
  57. if (pB1.length > 0)
  58. {
  59. try
  60. {
  61. pB1[0].click();
  62. }
  63. catch(err)
  64. {
  65. console.log('caught the error');
  66. console.log(err.message);
  67. setTimeout(init,1000);
  68. }
  69. }
  70. else
  71. {
  72. setTimeout(init,100);
  73. }
  74. }