-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to Manifest V3 in Chrome
BREAKING CHANGE: browser versions older than Chrome 123, Edge 123, Firefox 115 and Opera 109 are no longer supported
- Loading branch information
Showing
43 changed files
with
21,283 additions
and
12,389 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,10 @@ | ||
[chrome] | ||
Chrome >= 123 | ||
Edge >= 123 | ||
Opera >= 109 | ||
|
||
[edge] | ||
Edge >= 123 | ||
|
||
[firefox] | ||
Firefox >= 115 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
blank_issues_enabled: false |
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 @@ | ||
This project does not accept pull requests. Please use issues to report bugs or suggest new features. |
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,64 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: 'false' | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm install --legacy-peer-deps | ||
- name: Build artifacts | ||
run: | | ||
npm run build:prod:zip:chrome | ||
npm run build:prod:zip:edge | ||
npm run build:prod:zip:firefox | ||
- name: Hash artifacts | ||
run: sha256sum artifacts/*/* | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
with: | ||
name: artifacts | ||
path: artifacts/ | ||
retention-days: 1 | ||
release: | ||
name: Release on GitHub | ||
runs-on: ubuntu-22.04 | ||
needs: [build] | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: artifacts/ | ||
- name: Hash artifacts | ||
run: sha256sum artifacts/*/* | ||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: ${{ github.ref_name }} | ||
body: | | ||
Download and install the extension from the [extension store](https://github.com/dessant/ping-blocker#readme) of your browser. | ||
Learn more about this release from the [changelog](https://github.com/dessant/ping-blocker/blob/main/CHANGELOG.md#changelog). | ||
files: artifacts/*/* | ||
fail_on_unmatched_files: true | ||
draft: true |
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
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,17 @@ | ||
name: 'Repo Lockdown' | ||
|
||
on: | ||
pull_request_target: | ||
types: opened | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/repo-lockdown@v4 | ||
with: | ||
pr-comment: 'This project does not accept pull requests. Please use issues to report bugs or suggest new features.' | ||
process-only: 'prs' |
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
.assets/ | ||
/.assets/ | ||
/app/ | ||
/artifacts/ | ||
/dist/ | ||
|
||
/report.json | ||
/report.html | ||
|
||
/web-ext-config.js | ||
|
||
node_modules/ | ||
artifacts/ | ||
dist/ | ||
/npm-debug.log | ||
|
||
web-ext-config.js | ||
/.vscode | ||
|
||
npm-debug.log | ||
yarn-debug.log | ||
yarn-error.log | ||
.yarn-integrity | ||
xcuserdata/ | ||
|
||
report.json | ||
.DS_Store |
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 |
---|---|---|
@@ -1 +1 @@ | ||
12.13.1 | ||
20.14.0 |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package.json | ||
.travis.yml | ||
*.md |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
singleQuote: true | ||
bracketSpacing: false | ||
arrowParens: 'avoid' | ||
trailingComma: 'none' |
This file was deleted.
Oops, something went wrong.
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
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,31 @@ | ||
const path = require('node:path'); | ||
|
||
const corejsVersion = require( | ||
path.join(path.dirname(require.resolve('core-js')), 'package.json') | ||
).version; | ||
|
||
module.exports = function (api) { | ||
api.cache(true); | ||
|
||
const presets = [ | ||
[ | ||
'@babel/env', | ||
{ | ||
modules: false, | ||
bugfixes: true, | ||
useBuiltIns: 'usage', | ||
corejs: {version: corejsVersion} | ||
} | ||
] | ||
]; | ||
|
||
const plugins = []; | ||
|
||
const ignore = [ | ||
new RegExp(`node_modules\\${path.sep}(?!(vueton|wesa)\\${path.sep}).*`) | ||
]; | ||
|
||
const parserOpts = {plugins: ['importAttributes']}; | ||
|
||
return {presets, plugins, ignore, parserOpts}; | ||
}; |
Oops, something went wrong.