Skip to content

Commit

Permalink
delete debugging information
Browse files Browse the repository at this point in the history
  • Loading branch information
dedpnd committed May 4, 2021
1 parent db38f4e commit d2a7cc7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ app.on("ready", async () => {
await proxy();

session.fromPartition('persist:webviewsession').webRequest.onBeforeRequest({ urls: ['*://*/*'] }, (details: any, callback) => {
console.log("========================")
console.log(details.url)
if (details.url.includes("awaps.yandex.net") ||
details.url.includes("vh-bsvideo-converted") ||
details.url.includes("get-video-an") ||
details.url.includes("banners.adfox.ru") ||
details.url.includes("an.yandex.ru/vmap/")) {
if (details.url.includes("awaps.yandex.net") ||
details.url.includes("vh-bsvideo-converted") ||
details.url.includes("get-video-an") ||
details.url.includes("banners.adfox.ru") ||
details.url.includes("an.yandex.ru/vmap/")) {
// Skip advertising
return {
cancel: true
Expand Down

0 comments on commit d2a7cc7

Please sign in to comment.