Add block params

This commit is contained in:
the1812 2020-04-19 10:54:48 +08:00
parent 626ccc43ce
commit 6c3de24ca3
8 changed files with 15 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -213,7 +213,7 @@
"trending-videos.min.js": "1ED73F10D5A7C409CCBF91A97FBB0DE2AA16426F2216DF75F904E8A6389A46E9",
"trending-videos.vue.min.js": "24E8616129DDEC7D014B1836DB6E54A5AF35578D1F4586EE827A962312EA7049",
"tweets.min.css": "9015C1F165C91B9205ABBE4E8A3B5FA83DB1EB4B5CF2442846AF61E44FF178A8",
"url-params-clean.min.js": "5546E05EF8B9ED4C2A3C172B15C4B53CFD929FABB5EC90E07AEF59EAFC1EF5FF",
"url-params-clean.min.js": "174DA9C43CF72BD5404B93FDA1D1E1C9C742A4E640B025F241C67CA7D5059D84",
"v-checkbox.vue.min.js": "A23C35D5627009A29FD396A024442A19E37DEE70674BF3CE0FA377D781ED2231",
"v-dropdown.vue.min.js": "DE6DF6A2081FEE6AB802A355FEC5FF87B7FDE054BC01AB145379DB6634A83133",
"video-card.vue.min.js": "C335B564D4D625D4AE26D15A4031898479EEE81A84AB43A7D4D8D144C32B5D6F",

Binary file not shown.

View File

@ -1 +1 @@
(()=>{return(t,e)=>{const s=["spm_id_from","from_source","from_spmid","from","seid","share_source","share_medium","share_plat","share_tag","bbid","ts","timestamp","unique_k","rt","tdsourcetag"];const o=[/game\.bilibili\.com\/fgo/];const r=t=>{return t};const c=()=>{const t=location.search.substring(1).split("&");const e=t.filter(t=>{if(s.some(e=>t.startsWith(`${e}=`))){return false}return true});const o=e.join("&");const c=r(document.URL.replace(location.search,""));const n=o?"?"+o:"";const i=c+n;if(i!==document.URL){console.log("[URL params clean]",document.URL,i);history.replaceState({},document.title,i)}};c();Observer.videoChange(()=>c())}})();
(()=>{return(t,e)=>{const r=["spm_id_from","from_source","from_spmid","from","seid","share_source","share_medium","share_plat","share_tag","bbid","ts","timestamp","unique_k","rt","tdsourcetag","accept_quality","broadcast_type","current_qn","current_quality","playurl_h264","playurl_h265","quality_description"];const s=[/game\.bilibili\.com\/fgo/];const o=t=>{return t};const c=()=>{const t=location.search.substring(1).split("&");const e=t.filter(t=>{if(r.some(e=>t.startsWith(`${e}=`))){return false}return true});const s=e.join("&");const c=o(document.URL.replace(location.search,""));const a=s?"?"+s:"";const n=c+a;if(n!==document.URL){console.log("[URL params clean]",document.URL,n);history.replaceState({},document.title,n)}};c();Observer.videoChange(()=>c())}})();

View File

@ -14,6 +14,13 @@ const blockParams = [
'unique_k',
'rt',
'tdsourcetag',
'accept_quality',
'broadcast_type',
'current_qn',
'current_quality',
'playurl_h264',
'playurl_h265',
'quality_description',
]
const noNormalizes = [
/game\.bilibili\.com\/fgo/,