Created
October 25, 2018 19:22
-
-
Save dodolboks/3e65c03dad88526b6ca3ad89e9f5ac7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name BitTube No Offline TIMER | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.3 | |
// @description BitTube Never Stop Ever Again | |
// @author ReaperBot | |
// @updateURL https://raw.githubusercontent.com/Ngkolo123/js/master/coba2.js | |
// @downloadURL https://raw.githubusercontent.com/Ngkolo123/js/master/coba2.js | |
// @match *.bit.tube/* | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
var page | |
var offline | |
var selected | |
var bittube | |
var fileme = [ | |
'dasar lo anjay', | |
]; | |
setInterval(mySearch, 5000); | |
function random_item(items) { | |
return items[Math.floor(Math.random() * items.length)]; | |
} | |
function mySearch() { | |
page = document.body.textContent.toLowerCase() || document.body.innerText.toLowerCase(); | |
offline = page.indexOf("offline") !== -1; | |
selected = page.indexOf("selected") !== -1; | |
bittube = page.indexOf("bittube") == -1; | |
if (offline || selected || bittube) { | |
setTimeout(function () { | |
window.location.href = random_item(fileme) | |
}, 3000); | |
} | |
} | |
function getRndInteger(min, max) { | |
return (Math.floor(Math.random() * (max - min)) + min) * 1000; | |
} | |
setInterval(reloadOk, getRndInteger(5760, 7200)); | |
function reloadOk() { | |
window.location.href = random_item(fileme) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment