mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
e
This commit is contained in:
parent
8cce8ad100
commit
00000d99d6
1 changed files with 7 additions and 2 deletions
|
|
@ -115,8 +115,13 @@ class Network:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
@cache
|
@cache
|
||||||
|
@staticmethod
|
||||||
|
def stealth_js() -> str:
|
||||||
|
return (Path(__file__).parent / "stealth.js").read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
@cache
|
||||||
|
@staticmethod
|
||||||
def blocked_domains() -> list[str]:
|
def blocked_domains() -> list[str]:
|
||||||
return (
|
return (
|
||||||
(Path(__file__).parent / "easylist.txt")
|
(Path(__file__).parent / "easylist.txt")
|
||||||
|
|
@ -172,7 +177,7 @@ class Network:
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
await context.add_init_script(path=Path(__file__).parent / "stealth.js")
|
await context.add_init_script(script=Network.stealth_js())
|
||||||
|
|
||||||
await context.route("**/*", Network._adblock)
|
await context.route("**/*", Network._adblock)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue