mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-27 10:30:31 +02:00
Added prefix wildcards to url matching
This commit is contained in:
2
build.py
2
build.py
@ -37,7 +37,7 @@ def write_manifest():
|
|||||||
manifest = json.load(open('src/manifest.json', 'r'))
|
manifest = json.load(open('src/manifest.json', 'r'))
|
||||||
|
|
||||||
for content_script in manifest['content_scripts']:
|
for content_script in manifest['content_scripts']:
|
||||||
content_script['matches'] = [f'*://{match}/*' for match in matches]
|
content_script['matches'] = [f'*://*.{match}/*' for match in matches]
|
||||||
|
|
||||||
json.dump(manifest, open('src/manifest.json', 'w'), indent=2)
|
json.dump(manifest, open('src/manifest.json', 'w'), indent=2)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user