Updated npm and tweaked some things by therealresonix

This commit is contained in:
ManeraKai 2022-02-15 20:45:01 +03:00
parent 8db3a300fe
commit 0a63e7c4b7
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
5 changed files with 4072 additions and 1604 deletions

2
.npmrc Normal file
View File

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

2
.nvmrc
View File

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

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}