您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically adds ?detailed=1 or &detailed=1 to bustimes.org pages
// ==UserScript== // @name Bustimes Detailed View Enforcer // @namespace http://tampermonkey.net/ // @version 1.0 // @description Automatically adds ?detailed=1 or &detailed=1 to bustimes.org pages // @match *://*.bustimes.org/* // @grant none // ==/UserScript== (function() { 'use strict'; const url = new URL(window.location.href); // Don't do anything if detailed=1 is already present if (url.searchParams.get("detailed") === "1") { return; } url.searchParams.set("detailed", "1"); // Only reload if necessary if (window.location.href !== url.href) { window.location.replace(url.href); } })();