mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
562 B
JavaScript
1 line
562 B
JavaScript
(()=>{return(e,o)=>{(async()=>{if(document.domain!=="t.bilibili.com"){return}const e=e=>{const o=e.querySelector(".image-viewer");if(o===null){console.log(e)}else{o.addEventListener("contextmenu",()=>{Toast.success(`<img src="${o.src}" width="200">`,"解除动态存图限制")})}};[...document.body.children].filter(e=>e.classList.contains("photo-imager-container")).forEach(e);Observer.childList(document.body,o=>{o.forEach(o=>{const t=[...o.addedNodes].filter(e=>e instanceof Element&&e.classList.contains("photo-imager-container"));t.forEach(e)})})})()}})(); |