NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name 自動刷新 // @namespace http://tampermonkey.net/ // @version 0.1 // @description GBF 攻擊後自動刷新 // @author You // @copyright 2021, a8212270 (https://openuserjs.org/users/a8212270) // @license MIT // @match *://game.granbluefantasy.jp/* // @grant none // ==/UserScript== (function (open) { 'use strict'; function getRandom(min, max) { return Math.floor(Math.random() * max) + min; }; XMLHttpRequest.prototype.open = function (method, url, async, user, pass) { this.addEventListener("readystatechange", function () { if (url.includes('normal_attack_result.json')) { setTimeout(function () { location.reload(); }, getRandom(500, 1500)) } }, false); open.call(this, method, url, async, user, pass); }; })(XMLHttpRequest.prototype.open);