Bilibili-Evolved/min/activity-image-saver.min.js
2019-09-14 11:24:31 +08:00

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)})})})()}})();