您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
That allows you to reload all the CSS of any site without you have to reload the page itself. Just press F9.
当前为
// ==UserScript== // @name CSSreloader // @namespace DuKaT // @version 0.2 // @description That allows you to reload all the CSS of any site without you have to reload the page itself. Just press F9. // @author DuKaT // @include http://*/* // @include https://*/* // @grant none // ==/UserScript== (function() { 'use strict'; var CSSreloader = function() { function reload() { const reloader = 'cssReloader=' + Date.now(); let elements = document.querySelectorAll('link[rel="stylesheet"][href]'), elementsLen = elements.length, i, element, href; for (i = 0; i < elementsLen; ++i) { element = elements[i]; href = element.href.replace(/[\?\&]cssReloader=\d+$/, ''); element.href = href + (href.indexOf('?') === -1 ? '?' : '&') + reloader; } } return { reload: reload }; }(); function keyupListener(e) { if (e.keyCode === 120) { // keyCode === 120 is F9 CSSreloader.reload(); } } document.addEventListener('keyup', keyupListener, false); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址