updated browser-scripts-builder

This commit is contained in:
2022-06-09 11:10:33 -05:00
parent 6082836470
commit 3239443a6c
4 changed files with 68 additions and 59 deletions

View File

@@ -8,14 +8,18 @@
// @supportURL https://git.zomo.dev/zomo/browser-scripts/issues
// @homepageURL https://git.zomo.dev/zomo/browser-scripts
// ==/UserScript==
addEventListener("load", () => {
document.body.addEventListener("click", (e) => {
let target = e.target;
if (target && target.getAttribute("data-a-target") === "player-overlay-click-handler") {
let video = document.querySelector("video");
if (video) {
video.muted = !video.muted;
}
}
});
});
addEventListener('load', () => {
document.body.addEventListener('click', e => {
let target = e.target
if (
target &&
target.getAttribute('data-a-target') ===
'player-overlay-click-handler'
) {
let video = document.querySelector('video')
if (video) {
video.muted = !video.muted
}
}
})
})