removed twitch click mute

This commit is contained in:
2022-08-24 11:44:32 -05:00
parent 884e0aa2a1
commit 60b674e816
7 changed files with 309 additions and 180 deletions

View File

@@ -1,15 +0,0 @@
addEventListener('load', () => {
document.body.addEventListener('click', e => {
let target = e.target as HTMLElement | null
if (
target &&
target.getAttribute('data-a-target') ===
'player-overlay-click-handler'
) {
let video = document.querySelector('video')
if (video) {
video.muted = !video.muted
}
}
})
})

View File

@@ -1,8 +0,0 @@
{
"$schema": "https://git.zomo.dev/zomo/browser-scripts-builder/raw/branch/main/meta.schema.json",
"name": "Twitch.tv Click to Mute",
"namespace": "zomo.dev",
"match": "https://www.twitch.tv/*",
"version": "1.0",
"description": "click to mute/unmute a stream. does not work if the stream has an overlay"
}

View File

@@ -1,17 +0,0 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"types": [
"../../node_modules/@types/greasemonkey",
"../../node_modules/browser-scripts-builder"
]
}
}