您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the "?assets_version=135" query string bit from any css link on forum.qnap.com.
// ==UserScript== // @name forum.qnap.com css fix // @namespace https://github.com/appel/userscripts // @version 0.1 // @description Removes the "?assets_version=135" query string bit from any css link on forum.qnap.com. // @author Ap // @match https://forum.qnap.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const cssLinks = document.querySelectorAll('link[rel="stylesheet"][href]'); cssLinks.forEach(link => { const href = link.getAttribute('href'); if (href.endsWith('?assets_version=135')) { const newHref = href.replace('?assets_version=135', ''); link.setAttribute('href', newHref); } }); })();