added youtube dislike

This commit is contained in:
2024-11-07 08:21:37 -05:00
parent 014e4c8b7b
commit 2317d5a213
8 changed files with 132 additions and 14 deletions
+6 -6
View File
@@ -11,12 +11,12 @@ function checkAdBlock(url, target, features, originalWindowOpen) {
// needs to be inside the function or it'll get assigned twice
async function setupAdBlock(perms) {
// attach listeners to the document body for each event type
['click', 'mousedown', 'mouseup', 'dblclick', 'keydown', 'keyup', 'submit'].forEach((eventType) => {
document.body.addEventListener(eventType, (e) => {
console.log(`Event ${e.type} triggered by:`, e.target);
}, true); // use capture phase
});
// // attach listeners to the document body for each event type
// ['click', 'mousedown', 'mouseup', 'dblclick', 'keydown', 'keyup', 'submit'].forEach((eventType) => {
// document.body.addEventListener(eventType, (e) => {
// console.log(`Event ${e.type} triggered by:`, e.target);
// }, true); // use capture phase
// });
const originalWindowOpen = window.open,
isValidURL = (u) => { try { return new URL(u); } catch (_) { return false; } }