Added prefix wildcards to url matching

This commit is contained in:
bytedream 2022-02-04 15:39:22 +01:00
parent 0fc06a78a7
commit a39418e506

View File

@ -37,7 +37,7 @@ def write_manifest():
manifest = json.load(open('src/manifest.json', 'r'))
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)