// ==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.3 // @icon data:image/gif;base64,R0lGODlhEAAQAMIDAAAAAIAAAP8AAP///////////////////yH5BAEKAAQALAAAAAAQABAAAAMuSLrc/jA+QBUFM2iqA2ZAMAiCNpafFZAs64Fr66aqjGbtC4WkHoU+SUVCLBohCQA7 // @homepageURL https://greasyfork.org/en/scripts/459167-trakt-local-storage-refresh // @author Kain (ksir.pw) // @description 11/15/2022, 6:29:52 PM // @downloadURL https://update.greasyfork.icu/scripts/459167/Trakt%20Local%20Storage%20Refresh.user.js // @updateURL https://update.greasyfork.icu/scripts/459167/Trakt%20Local%20Storage%20Refresh.meta.js // ==/UserScript== // Adds a button to the bottom left of the page, click it to clear the local storage and reload the page. 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 += ""; document.body.appendChild(btn);