mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
474 B
JavaScript
1 line
474 B
JavaScript
(()=>{return(t,e)=>{const o=/(.*?)@(.*)\./;function r(t){const e=new Observer(t,()=>{const r=t.getAttribute("src");const s=r.match(o);if(s&&s[1]){t.setAttribute("src",s[1]);e.stop()}});e.options={childList:false,attributes:true,subtree:false};e.start()}document.querySelectorAll("img").forEach(t=>r(t));Observer.childListSubtree("body",t=>{for(const e of t){for(const t of e.addedNodes){if(t.nodeName.toLowerCase()==="img"){r(t)}}}});return{export:{imageResolution:r}}}})(); |