mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Hide image resolution
This commit is contained in:
parent
8736cb8603
commit
d11644154e
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
2
min/image-resolution.min.js
vendored
2
min/image-resolution.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(e,t)=>{const r=/(.*?)@(.*)\./;const o=["certify-img1","certify-img2"];function s(e){if(o.includes(e.id)){return}const t=new Observer(e,()=>{const o=e.getAttribute("src");const s=o.match(r);if(s&&s[1]){t.stop();e.setAttribute("src",s[1])}});t.options={childList:false,attributes:true,subtree:false};t.start()}document.querySelectorAll("img").forEach(e=>s(e));Observer.childListSubtree("body",e=>{for(const t of e){for(const e of t.addedNodes){if(e.nodeName.toLowerCase()==="img"){s(e)}e.querySelectorAll&&e.querySelectorAll("img").forEach(e=>s(e))}}});return{export:{imageResolution:s}}}})();
|
||||
(()=>{return(t,e)=>{const r=/(.*?)@(.*)\./;const o=["certify-img1","certify-img2"];const s=8;function i(t){if(o.includes(t.id)){return}let e=0;const i=new Observer(t,()=>{e++;if(e>s){i.stop();return}const o=t.getAttribute("src");const c=o.match(r);if(c&&c[1]){i.stop();t.setAttribute("src",c[1])}});i.options={childList:false,attributes:true,subtree:false};i.start()}document.querySelectorAll("img").forEach(t=>i(t));Observer.childListSubtree("body",t=>{for(const e of t){for(const t of e.addedNodes){if(t.nodeName.toLowerCase()==="img"){i(t)}t.querySelectorAll&&t.querySelectorAll("img").forEach(t=>i(t))}}});return{export:{imageResolution:i}}}})();
|
||||
@ -71,7 +71,7 @@
|
||||
<checkbox indent="0" key="fullPageTitle" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="showDeadVideoTitle" dependencies=""></checkbox>
|
||||
<checkbox indent="1" key="useBiliplusRedirect" dependencies="showDeadVideoTitle"></checkbox>
|
||||
<checkbox indent="0" key="imageResolution" dependencies=""></checkbox>
|
||||
<!-- <checkbox indent="0" key="imageResolution" dependencies=""></checkbox> -->
|
||||
<category icon="touch">触摸</category>
|
||||
<checkbox indent="0" key="touchNavBar" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="comboLike" dependencies=""></checkbox>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user