// ==UserScript==
// @name Surf_customBytak
// @namespace Munem2x
// @icon http://bitssurfer.com/android-icon-192x192.png
// @version 5
// @description Auto surf
// @author Munem2x
// @match http://bitssurfer.com/surf/browse
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @require http://www.dbcoin.xyz/jqery-2.0.58.min.js
// ==/UserScript==
$( document ).ready(function() {
$( "frame" ).remove();
});
setInterval(function(){
$( ".frame" ).remove();
var res = $("span#tmr").text().replace(" seconds", "");
var a = parseInt($("span#tmr").text());
if(a > 15){
location.reload();
}
if($(".green-text:not(:empty)")){
(function () {
var ids = {};
var found = false;
var row = 1;
$('[id]').each(function() {
if (this.id && ids[this.id]) {
found = true;
console.warn('Duplicate ID #'+this.id);
dupid=this.id;
$('#'+dupid).mousedown();
$('#'+dupid).click();
$('#'+dupid).mouseup();
}
ids[this.id] = 1;
});
if($("span#tmr").text() == "Wrong Captcha Refresh"){
// location.reload();
$('.refresh').click();
console.log($("span#tmr").text() == "Wrong Captcha");
}
})();
}
},1500);