mirror of
https://github.com/doms9/iptv.git
synced 2026-03-06 11:08: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
|
||||
|
||||
@staticmethod
|
||||
@cache
|
||||
@staticmethod
|
||||
def stealth_js() -> str:
|
||||
return (Path(__file__).parent / "stealth.js").read_text(encoding="utf-8")
|
||||
|
||||
@cache
|
||||
@staticmethod
|
||||
def blocked_domains() -> list[str]:
|
||||
return (
|
||||
(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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue