Skip to content

Commit

Permalink
Block *.ads.twitch.tv
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Feb 1, 2025
1 parent ebe2f76 commit 225bad4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/background/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ if (isChromium) {
browser.webRequest.onBeforeRequest.addListener(
() => ({ cancel: true }),
{
urls: ["https://*.twitch.tv/r/s/*", "https://*.twitch.tv/r/c/*"],
urls: [
"https://*.twitch.tv/r/s/*",
"https://*.twitch.tv/r/c/*",
"https://*.ads.twitch.tv/*",
],
},
["blocking"]
);
Expand Down
10 changes: 10 additions & 0 deletions src/rulesets/ruleset.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,15 @@
"urlFilter": "*.twitch.tv/r/c/*",
"resourceTypes": ["image"]
}
},
{
"id": 3,
"priority": 1,
"action": {
"type": "block"
},
"condition": {
"urlFilter": "*.ads.twitch.tv/*"
}
}
]

0 comments on commit 225bad4

Please sign in to comment.