您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Satellite script for HHAuto++, Nutaku version
// ==UserScript== // @name Nutaku reload helper // @namespace http://tampermonkey.net/ // @version 0.1 // @description Satellite script for HHAuto++, Nutaku version // @author Dorten D // @match http*://www.nutaku.net/games/harem-heroes/play* // @grant none // ==/UserScript== (function() { 'use strict'; var lastAnswer = (new Date()).getTime(); window.addEventListener('message', function(event) { if (event.origin=="https://nutaku.haremheroes.com") { //console.log('NRH: recieved ',event); if (event.data.reloadMe) { window.location.reload(); } if (event.data.ImAlive) { //console.log('NRH: ITS ALIVE!'); lastAnswer = (new Date()).getTime(); } } } ); setInterval(function(){ if((new Date()).getTime() - lastAnswer > 15000) { console.log("NRH: it's dead :("); window.location.reload(); } },2000); })();