Add Chrome support (#15)

* add chrome support

* fix alarms

* Add tkqlhce.com (#12)

* add tkqlhce.com

* add match at beginning of regex

* formatting

* set config needs to come first

* still need background.scripts for firefox

* need full path

* add onStartup listener to ensure alarm is created

* set time to 60

* add manifest specific to chrome and bump version
This commit is contained in:
anonion
2024-01-01 13:56:55 -07:00
committed by GitHub
parent 5dde4528d5
commit 4511ad314f
7 changed files with 65 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "rfd-redirect-stripper",
"description": "Strip tracking redirects on rfd",
"version": "0.1",
"version": "0.2",
"content_scripts": [
{
"matches": ["*://forums.redflagdeals.com/*"],
@@ -15,14 +15,15 @@
"default_popup": "html/popup.html"
},
"background": {
"scripts": ["js/utils.js", "js/background.js"]
"scripts": [ "js/background.js" ],
"type": "module"
},
"permissions": ["scripting", "storage"],
"permissions": ["scripting", "storage", "alarms"],
"host_permissions": ["*://forums.redflagdeals.com/*"],
"browser_specific_settings": {
"gecko": {
"id": "davegallant@gmail.com",
"strict_min_version": "42.0"
"strict_min_version": "112.0"
}
}
}