Last active
October 13, 2018 07:04
-
-
Save ParkNoBreak/2c0c0373bd3f76b9de031e063cf9c7a0 to your computer and use it in GitHub Desktop.
germooooooooooooooooo
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 | |
// @namespace http://tampermonkey.net/ | |
// @version 1 | |
// @description BitTube Never Stop Ever Again | |
// @author ReaperBot | |
// @match *.bit.tube/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var page | |
var offline | |
var selected | |
var user | |
var query | |
var token = "696969"; //<---- GANTI BOT TOKEN E DEWE2 | |
var chat_id = "696969"; //<---- GANTI CHAT ID E DEWE2 | |
var warn = false; | |
setInterval(mySearch, 5000); | |
function mySearch( ) | |
{ | |
//Check Login | |
query = document.querySelector(".wrapper .sidebar .sidebar_full_wrapper .sidebar-wrapper .user .info a span"); | |
if(query==null && warn==false) | |
{ | |
$(function() { | |
$.getJSON("https://api.ipify.org?format=jsonp&callback=?", | |
function(json) { | |
$.get("https://api.telegram.org/bot"+token+"/sendMessage?chat_id="+chat_id+"&text=Nganu Ndan, pipies dengan nomor punggung "+json.ip+" gaji buta harap segera dikondisikan. Laporan selesai, Ndan."); | |
warn=true; | |
} | |
); | |
}); | |
} | |
if(query!==null && warn==true) | |
{ | |
warn=false; | |
} | |
//Check Offline | |
page = document.body.textContent.toLowerCase() || document.body.innerText.toLowerCase(); | |
offline = page.indexOf("offline")!==-1; | |
selected = page.indexOf("selected")!==-1; | |
if(offline || selected){ | |
setTimeout(function(){ | |
window.location.reload(true); | |
},5000); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment