Bilibili-Evolved/min/url-params-clean.min.js
2019-12-19 21:29:11 +08:00

1 line
306 B
JavaScript

(()=>{return(t,r)=>{const e=["spm_id_from","from_source","from","seid"];const s=location.search.substring(1).split("&");const o=s.filter(t=>{if(e.some(r=>t.startsWith(`${r}=`))){return false}return true}).join("&");history.pushState({},document.title,document.URL.replace(location.search,o?"?"+o:""))}})();