mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
587 B
JavaScript
1 line
587 B
JavaScript
(()=>{return(t,e)=>{return{settingsWidget:{category:"其他",content:`<div>\n <button\n class="gui-settings-button"\n title="清除缓存"\n id="clear-cache">\n 清除缓存\n </button>\n </div>`,success:()=>{$("#clear-cache").on("click",()=>{t.cache={};Toast.show("已删除全部缓存.","清除缓存",5e3)});if(typeof offlineData!=="undefined"){$("button#clear-cache").parent().addClass("hidden")}}}}}})(); |