Block even more trash!

This commit is contained in:
NodeMixaholic 2023-03-09 07:26:19 -06:00 committed by GitHub
parent 86abf8b36b
commit 8006dc5e17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
main.js
View file

@ -35,7 +35,7 @@ function createWindow () {
const toBlock = [
"*://*.doubleclick.net/*",
"*://*.doubleclick.*",
"*://s.innovid.com/*",
"*://partner.googleadservices.com/*",
"*://*.googlesyndication.com/*",
@ -62,11 +62,17 @@ const toBlock = [
"*://*.2mdn.net/*",
"*.exe",
"*.vbs",
"*://*.googlesyndication.*",
"*pixels*",
"*telemetry*",
"*analytics*",
"*://r[0-9]*sn*.googlevideo.com*"
]
const regexPatterns = [
"/api\/v\d\/science$/g",
"r[0-9]+---sn-.*\.googlevideo\.com$/g"
"r[0-9]+---sn-.*\.googlevideo\.com$/g",
"r[0-9]+-sn-.*\.googlevideo\.com$/g"
]
function containsAD(url) {