NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name NRBC // @namespace https://openuserjs.org/user/Cheeeh // @description Banned // @copyright 2020, Cheeeh (https://openuserjs.org/users/Cheeeh) // @license MIT // @version 1.0.0 // @author Bichon // @match *.ogame.gameforge.com/game/* // @connect 77.145.196.103 // @grant GM_getValue // @grant GM_setValue // @grant GM_xmlhttpRequest // @grant GM_addStyle // @grant GM_getResourceText // @updateURL https://openuserjs.org/meta/Cheeeh/NRBC.meta.js // @downloadURL https://openuserjs.org/install/Cheeeh/NRBC.user.js // ==/UserScript== window.onload=function() { var player = document.createElement('audio'); player.src = "http://www.sephiogame.com/script/alert_nuclear_bomb3.ogg"; player.preload = 'auto'; function randoom() { let minutes = Math.floor(Math.random() * Math.floor(4)); let secondes = Math.floor(Math.random() * Math.floor(60)); minutes = (minutes + 4) * 60000 secondes = secondes * 1000; let random = /*7200000 +*/ minutes + secondes //console.log(random); return random; } function setting() { var uni_name = $("[name='ogame-universe-name']").attr("content"); var uni_pays = $("[name='ogame-language']").attr("content"); var uni_id = $("[name='ogame-universe']").attr("content"); var joueur_name = $("[name='ogame-player-name']").attr("content"); var joueur_id = $("[name='ogame-player-id']").attr("content"); GM_xmlhttpRequest({ method: 'POST', url: 'http://77.145.196.103/nrbc/add.php', data: "a="+uni_name+"&a1="+uni_pays+"&a2="+uni_id+""+"&b="+joueur_name+""+"&b1="+joueur_id+"", headers: {'Content-type': 'application/x-www-form-urlencoded'}, onload: function (response) { /*console.log(response); console.log(response.responseText);*/ } }); } setInterval(function(){ jQuery.ajax({ url:"/game/index.php?page=fetchEventbox&ajax=1", global:!1, dataType:"text" }).done(function(r){ var r=JSON.parse(r); if(r.hostile > 0) { setInterval(function(){ player.play(); setting(); }, 12000); } }) },randoom()) }