// ==UserScript== // @name adbtc // @namespace adbtc // @version 0.1 // @description Script to view ptc ads // @author engageub // @match https://adbtc.top/surf/browse/* // @match https://adbtc.top/surfiat/browse/* // ==/UserScript== (function() { 'use strict'; var count =0; setInterval(function(){ if(document.querySelector("div.col.s4> a") && !document.querySelector("div.col.s4> a").className.includes("hide")){ count = 0; document.querySelector("div.col.s4> a").click(); }else{ count = count + 1; } //Alternatively switch between different type of ads if(count > 24 ){ if(window.location.href.includes("surfiat/browse")){ window.location.href= document.querySelectorAll(".collection.menu.colmen.nomarg > a")[0].href; }else{ window.location.href= document.querySelectorAll(".collection.menu.colmen.nomarg > a")[1].href; } } },5000) })();