Skip to content

Instantly share code, notes, and snippets.

@dodolboks
Created October 25, 2018 19:22
Show Gist options
  • Save dodolboks/d5a8b9e849949fb69b51e701a9361a52 to your computer and use it in GitHub Desktop.
Save dodolboks/d5a8b9e849949fb69b51e701a9361a52 to your computer and use it in GitHub Desktop.
// ==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