您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script skips the last moves replay of turn-based game of boardgamearena.com
// ==UserScript== // @name Board Game Arena - Skip last replay // @namespace http://pazziaumana.blogspot.it/ // @description This script skips the last moves replay of turn-based game of boardgamearena.com // @match http://*.boardgamearena.com/* // @match https://*.boardgamearena.com/* // @version 1 // @grant none // ==/UserScript== "use strict"; var url = window.location.href; var rerepl = /(&|\?)replayLastTurn=1/i; var retbl = /(&|\?)table=(\d+)/i; var retbl_res; var reurl = /(https?:\/\/([\w\d-]+\.)*boardgamearena\.com\/[^\?]+)\?/i; var reurl_res; if (rerepl.test(url)) { retbl_res = retbl.exec(url); if (retbl_res.length > 2) { reurl_res = reurl.exec(url); if (retbl_res.length > 1) { window.location = reurl_res[1] + "?table=" + retbl_res[2]; } } }