-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add white stroke to icon * Add lint workflow * Add build workflow * Add support for firefox android
1 parent
15d3f2e
commit 40d8be8
Showing
4 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "Build" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install jq | ||
run: sudo apt-get install jq | ||
|
||
- name: Get extension version | ||
id: vars | ||
run: | | ||
version=$(jq -r .version manifest.json) | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
- name: "web-ext build" | ||
id: web-ext-build | ||
uses: kewisch/action-web-ext@v1 | ||
with: | ||
cmd: build | ||
source: . | ||
filename: "rfd-redirect-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi" | ||
ignoreFiles: '[ "package.json","package-lock.json","yarn.lock" ]' | ||
|
||
- name: "Upload Artifact" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "rfd-redirect-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi" | ||
path: ${{ steps.web-ext-build.outputs.target }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Lint" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: "Lint" | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
- run: npm ci | ||
- run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"manifest_version": 3, | ||
"name": "rfd-redirect-stripper", | ||
"description": "Strip tracking redirects on rfd", | ||
"version": "0.2", | ||
"version": "0.3", | ||
"content_scripts": [ | ||
{ | ||
"matches": ["*://forums.redflagdeals.com/*"], | ||
|
@@ -15,7 +15,7 @@ | |
"default_popup": "html/popup.html" | ||
}, | ||
"background": { | ||
"scripts": [ "js/background.js" ], | ||
"scripts": ["js/background.js"], | ||
"type": "module" | ||
}, | ||
"permissions": ["scripting", "storage", "alarms"], | ||
|
@@ -24,6 +24,9 @@ | |
"gecko": { | ||
"id": "[email protected]", | ||
"strict_min_version": "112.0" | ||
}, | ||
"gecko_android": { | ||
"strict_min_version": "113.0" | ||
} | ||
} | ||
} |