Last active
August 30, 2020 19:11
-
-
Save cia-rana/d443b718f3091d9c2ca5ce6551fddb88 to your computer and use it in GitHub Desktop.
YouTubeの消せる広告は一瞬で消すJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval( | |
()=>{ | |
[ | |
"ytp-ad-overlay-close-button", | |
"ytp-ad-skip-button" | |
] | |
.map(e=>Array.from(document.getElementsByClassName(e))) | |
.flat() | |
.forEach(e=>e.click()) | |
}, | |
30 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(()=>{["ytp-ad-overlay-close-button","ytp-ad-skip-button"].map(e=>Array.from(document.getElementsByClassName(e))).flat().forEach(e=>e.click())},30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
常に「ライブ」状態にする