// ==UserScript=adbtc==//


SUBMITTED BY: rgcen

DATE: March 30, 2022, 9:28 p.m.

FORMAT: Text only

SIZE: 1.1 kB

HITS: 304

  1. // ==UserScript==
  2. // @name adbtc
  3. // @namespace adbtc
  4. // @version 0.1
  5. // @description Script to view ptc ads
  6. // @author engageub
  7. // @match https://adbtc.top/surf/browse/*
  8. // @match https://adbtc.top/surfiat/browse/*
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. var count =0;
  13. setInterval(function(){
  14. if(document.querySelector("div.col.s4> a") && !document.querySelector("div.col.s4> a").className.includes("hide")){
  15. count = 0;
  16. document.querySelector("div.col.s4> a").click();
  17. }else{
  18. count = count + 1;
  19. }
  20. //Alternatively switch between different type of ads
  21. if(count > 24 ){
  22. if(window.location.href.includes("surfiat/browse")){
  23. window.location.href= document.querySelectorAll(".collection.menu.colmen.nomarg > a")[0].href;
  24. }else{
  25. window.location.href= document.querySelectorAll(".collection.menu.colmen.nomarg > a")[1].href;
  26. }
  27. }
  28. },5000)
  29. })();

comments powered by Disqus