Updated npm and tweaked some things by therealresonix

このコミットが含まれているのは:
ManeraKai 2022-02-15 20:45:01 +03:00
コミット 0a63e7c4b7
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 5ABC31FFD562E337
5個のファイルの変更4072行の追加1604行の削除

2
.npmrc ノーマルファイル
ファイルの表示

@ -0,0 +1,2 @@
## require defined engine
engine-strict=true

2
.nvmrc
ファイルの表示

@ -1 +1 @@
lts/fermium
lts/*

ファイルの表示

@ -1,5 +1,5 @@
<img src="src/assets/images/libredirect.svg" width="150" align="right" />
# LibRedirect
A web extension that redirects YouTube, Twitter, Instagram... requests to alternative privacy friendly frontends and backends.
@ -18,8 +18,8 @@ Medium => [Scribe](https://sr.ht/~edwardloveall/scribe/)
**Note**: It will default to using random instances if none are selected. You can also set custom instances.
[![Matrix Badge](https://badges.alefvanoon.xyz/matrix/libredirect:matrix.org?label=Matrix)](https://matrix.to/#/#libredirect:tokhmi.xyz)
[![PrivacyPolicy](https://badges.alefvanoon.xyz/badge/-PrivacyPolicy-orange
)](Privacy-Policy.md)
[![PrivacyPolicy](https://badges.alefvanoon.xyz/badge/-PrivacyPolicy-orange)](Privacy-Policy.md)
## Get
[![Firefox Add-on](src/assets/images/badge-amo.png)](https://addons.mozilla.org/firefox/addon/libredirect/)
@ -28,15 +28,36 @@ Medium => [Scribe](https://sr.ht/~edwardloveall/scribe/)
## Development
### Install Dependencies
- [Node.js](https://nodejs.org/) >=10.0.0 installed
- [Node.js](https://nodejs.org/) latest LTS is recommended
- `npm update`
- `npm install`
### Build
- `npm run build`
- `open web-ext-artifacts/`
### Test
- `npm run test`
### Test in Firefox
- `npm run-script start`
### Install temporarily
- open `about:addons`
- click on the settings button below the addon search bar and select `debug add-on`
- press `load temporarily addon`
### Install in Firefox ESR (Extended Support Release), Developer Edition and Nightly
- open `about:config`
- set `xpinstall.signatures.required` to `false`
- open `about:addons`
- click on the settings button below the addon search bar and select install add-on from file
- select libredirect-VERSION.zip from 'web-ext-artifacts' folder
### Install in Chromium, Brave and Chrome
- open `chrome://extensions`
- enable `dev mode`
- select `load unpacked extension`
- select `src` folder
## Credits
- [Privacy Redirect](https://github.com/SimonBrazell/privacy-redirect)
- [Privacy Redirect](https://github.com/SimonBrazell/privacy-redirect)

5632
package-lock.json generated

ファイル差分が大きすぎるため省略します 差分を読み込み

ファイルの表示

@ -2,10 +2,11 @@
"name": "libredirect",
"description": "Redirects YouTube, Twitter, Instagram and more to privacy friendly frontends.",
"engines": {
"node": ">=10.0.0",
"npm": ">=5.6.0"
"node": ">=16.13.1",
"npm": ">=8.1.2"
},
"scripts": {
"start": "web-ext run --browser-console --source-dir ./src/",
"build": "web-ext build --overwrite-dest --source-dir ./src/",
"test": "web-ext lint --source-dir ./src/ || true"
},
@ -20,6 +21,6 @@
},
"homepage": "https://github.com/LibRedirect/LibRedirect#readme",
"devDependencies": {
"web-ext": "^6.2.0"
"web-ext": "^6.7.0"
}
}