您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
To clickly clear the local storage and refresh the page. Useful when the page data is wrong or outdated.
当前为
// ==UserScript== // @name Trakt Local Storage Refresh // @description To clickly clear the local storage and refresh the page. Useful when the page data is wrong or outdated. // @namespace https://ksir.pw // @match https://trakt.tv/* // @grant none // @version 1.0.2 // @homepageURL https://github.com/DrKain/userscripts // @author Kain (ksir.pw) // @description 11/15/2022, 6:29:52 PM // ==/UserScript== var btn = document.createElement('button'); btn.id = 'ls-r'; btn.setAttribute('title', 'Reset LocalStorage'); btn.innerHTML = '↻'; btn.onclick = () => { localStorage.clear(); window.location.reload() }; document.body.innerHTML += "<style>#ls-r{position:fixed;bottom:10px;left:10px;border:solid 1px #ddd;font-size:14px;padding:3px 5px;background:#fbfbfb;color:#666;border-radius:3px;}#ls-r:hover {background:#333;color:#fff;}</style>"; document.body.appendChild(btn);