Compare commits
62 Commits
Author | SHA1 | Date |
---|---|---|
|
cd35a73b4d | |
|
a0535ed12a | |
|
dc57781e55 | |
|
6503cb3b0c | |
|
8d24d0fe6d | |
|
449c6e5290 | |
|
9faa9c7a5a | |
|
ef09d87fb0 | |
|
02d90bda57 | |
|
97d186e272 | |
|
4c1290acb2 | |
|
11819843f4 | |
|
b31c5bf75a | |
|
6b26f27f9a | |
|
20aafaaa17 | |
|
fe98d5a798 | |
|
a2405b44b4 | |
|
a42fe58b1d | |
|
049f71fd71 | |
|
ee6a96ec0a | |
|
033dad74bc | |
|
9d92671692 | |
|
010d19aff9 | |
|
058ca7b6e0 | |
|
cf7575f33b | |
|
60be141050 | |
|
1ef8f02372 | |
|
2f903e056b | |
|
8a21b62478 | |
|
20a6692e4c | |
|
c1b446ced1 | |
|
1e1fb22302 | |
|
0bd8507fb8 | |
|
c78ee93ae6 | |
|
4f9c130396 | |
|
ebd09086b6 | |
|
278714033d | |
|
2c9be901ee | |
|
292c4bc2ff | |
|
cda8e74567 | |
|
061dfc0904 | |
|
1cbaa3b4a5 | |
|
b8a6ec89c9 | |
|
8e88786dc2 | |
|
6875ad6dbb | |
|
7d9ad32ac6 | |
|
8a8fe35b6b | |
|
a9e6411ca2 | |
|
cfd7c15306 | |
|
d1f27107a1 | |
|
888fb0fad0 | |
|
8e11c48850 | |
|
e3df6c4333 | |
|
21ee6b8542 | |
|
bb6894cec5 | |
|
24bf815516 | |
|
9fc3fccf65 | |
|
68a89b1c0c | |
|
4ad9fd5971 | |
|
800aa2b6a5 | |
|
2a247f4772 | |
|
32dc9b1601 |
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
[![Donate](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/SimonBrazell/donate) [![Buy me a coffee](src/assets/images/buy-me-a-coffee.png)](https://www.buymeacoffee.com/SimonBrazell)
|
[![Donate](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/SimonBrazell/donate) [![Buy me a coffee](src/assets/images/buy-me-a-coffee.png)](https://www.buymeacoffee.com/SimonBrazell)
|
||||||
|
|
||||||
|
- **FIRO** `aEyKPU7mwWBYRFGoLiUGeQQybyzD8jzsS8`
|
||||||
- **BTC:** `3JZWooswwmmqQKw5iW6AYFfK5gcWTrvueE`
|
- **BTC:** `3JZWooswwmmqQKw5iW6AYFfK5gcWTrvueE`
|
||||||
- **ETH:** `0x90049dc59365dF683451319Aa4632aC61193dFA7`
|
- **ETH:** `0x90049dc59365dF683451319Aa4632aC61193dFA7`
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
A web extension that redirects _Twitter, YouTube, Instagram, Google Maps, Reddit & Google Search_ requests to privacy friendly alternatives - [Nitter](https://github.com/zedeus/nitter), [Invidious](https://github.com/iv-org/invidious), [FreeTube](https://github.com/FreeTubeApp/FreeTube), [Bibliogram](https://sr.ht/~cadence/bibliogram/), [OpenStreetMap](https://www.openstreetmap.org/) & Private Search Engines like [DuckDuckGo](https://duckduckgo.com) and [Startpage](https://startpage.com).
|
A web extension that redirects _Twitter, YouTube, Instagram, Google Maps, Reddit, Google Search, & Google Translate_ requests to privacy friendly alternative frontends for those sites - [Nitter](https://github.com/zedeus/nitter), [Invidious](https://github.com/iv-org/invidious), [FreeTube](https://github.com/FreeTubeApp/FreeTube), [Bibliogram](https://sr.ht/~cadence/bibliogram/), [OpenStreetMap](https://www.openstreetmap.org/), [SimplyTranslate](https://git.sr.ht/~metalune/simplytranslate_web) & Private Search Engines like [DuckDuckGo](https://duckduckgo.com) and [Startpage](https://startpage.com).
|
||||||
|
|
||||||
It's possible to toggle all redirects on and off. The extension will default to using random instances if none are selected. If these instances are not working, you can try and set a custom instance from the list below.
|
It's possible to toggle all redirects on and off. The extension will default to using random instances if none are selected. If these instances are not working, you can try and set a custom instance from the list below.
|
||||||
|
|
||||||
|
@ -28,8 +29,9 @@ It's possible to toggle all redirects on and off. The extension will default to
|
||||||
Privacy Redirect allows setting custom instances, instances can be found here:
|
Privacy Redirect allows setting custom instances, instances can be found here:
|
||||||
|
|
||||||
- [Nitter instances](https://github.com/zedeus/nitter/wiki/Instances)
|
- [Nitter instances](https://github.com/zedeus/nitter/wiki/Instances)
|
||||||
- [Invidious instances](https://github.com/iv-org/invidious/wiki/Invidious-Instances)
|
- [Invidious instances](https://docs.invidious.io/Invidious-Instances.md)
|
||||||
- [Bibliogram instances](https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md)
|
- [Bibliogram instances](https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md)
|
||||||
|
- [SimplyTranslate instances](https://git.sr.ht/~metalune/simplytranslate_web#list-of-instances)
|
||||||
- [OpenStreetMap tile servers](https://wiki.openstreetmap.org/wiki/Tile_servers)
|
- [OpenStreetMap tile servers](https://wiki.openstreetmap.org/wiki/Tile_servers)
|
||||||
- Reddit alternatives:
|
- Reddit alternatives:
|
||||||
- [Libreddit](https://github.com/spikecodes/libreddit#instances)
|
- [Libreddit](https://github.com/spikecodes/libreddit#instances)
|
||||||
|
@ -64,7 +66,7 @@ Privacy Redirect allows setting custom instances, instances can be found here:
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[GPLv3](LICENSE.txt).
|
[GPLv3](LICENSE).
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -20,6 +20,6 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/SimonBrazell/privacy-redirect#readme",
|
"homepage": "https://github.com/SimonBrazell/privacy-redirect#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"web-ext": "^6.0.0"
|
"web-ext": "^6.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,10 @@
|
||||||
"message": "SimplyTranslate Instance",
|
"message": "SimplyTranslate Instance",
|
||||||
"description": "Label for SimplyTranslate instance field option (options)."
|
"description": "Label for SimplyTranslate instance field option (options)."
|
||||||
},
|
},
|
||||||
|
"wikipediaInstance": {
|
||||||
|
"message": "Wikipedia Instance",
|
||||||
|
"description": "Label for Wikipedia instance field option (options)."
|
||||||
|
},
|
||||||
"disableNitter": {
|
"disableNitter": {
|
||||||
"message": "Nitter Redirects",
|
"message": "Nitter Redirects",
|
||||||
"description": "Label for enable/disable Nitter redirects option (options & pop-up)."
|
"description": "Label for enable/disable Nitter redirects option (options & pop-up)."
|
||||||
|
@ -63,6 +67,10 @@
|
||||||
"message": "SimplyTranslate Redirects",
|
"message": "SimplyTranslate Redirects",
|
||||||
"description": "Label for enable/disable SimplyTranslate redirects option (options & pop-up)."
|
"description": "Label for enable/disable SimplyTranslate redirects option (options & pop-up)."
|
||||||
},
|
},
|
||||||
|
"disableWikipedia": {
|
||||||
|
"message": "Wikipedia Redirects",
|
||||||
|
"description": "Label for enable/disable Wikipedia redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
"alwaysProxy": {
|
"alwaysProxy": {
|
||||||
"message": "Always proxy videos through Invidious",
|
"message": "Always proxy videos through Invidious",
|
||||||
"description": "Label for 'Always proxy videos through Invidious' option (options)."
|
"description": "Label for 'Always proxy videos through Invidious' option (options)."
|
||||||
|
|
|
@ -31,6 +31,14 @@
|
||||||
"message": "Instancia de Buscador",
|
"message": "Instancia de Buscador",
|
||||||
"description": "Etiqueta del campo para la instancia de Buscador (opciones)."
|
"description": "Etiqueta del campo para la instancia de Buscador (opciones)."
|
||||||
},
|
},
|
||||||
|
"simplyTranslateInstance": {
|
||||||
|
"message": "Instancia deSimplyTranslate",
|
||||||
|
"description": "Etiqueta del campo para la instancia de SimplyTranslate (opciones)."
|
||||||
|
},
|
||||||
|
"wikipediaInstance": {
|
||||||
|
"message": "Instancia de Wikipedia",
|
||||||
|
"description": "Etiqueta del campo para la instancia de Wikipedia (opciones)."
|
||||||
|
},
|
||||||
"disableNitter": {
|
"disableNitter": {
|
||||||
"message": "Redirecciones de Nitter",
|
"message": "Redirecciones de Nitter",
|
||||||
"description": "Etiqueta para activar/desactivar la opción de redirecciones de Nitter (opciones y pop-up)."
|
"description": "Etiqueta para activar/desactivar la opción de redirecciones de Nitter (opciones y pop-up)."
|
||||||
|
@ -55,6 +63,14 @@
|
||||||
"message": "Redirecciones de Buscador",
|
"message": "Redirecciones de Buscador",
|
||||||
"description": "Etiqueta para activar/desactivar la opción de redirecciones de Buscador (opciones y pop-up)."
|
"description": "Etiqueta para activar/desactivar la opción de redirecciones de Buscador (opciones y pop-up)."
|
||||||
},
|
},
|
||||||
|
"disableSimplyTranslate": {
|
||||||
|
"message": "Redirecciones de SimplyTranslate",
|
||||||
|
"description": "Etiqueta para activar/desactivar la opción de redirecciones de SimplyTranslate (opciones y pop-up)."
|
||||||
|
},
|
||||||
|
"disableWikipedia": {
|
||||||
|
"message": "Redirecciones de Wikipedia",
|
||||||
|
"description": "Etiqueta para activar/desactivar la opción de redirecciones de Wikipedia (opciones y pop-up)."
|
||||||
|
},
|
||||||
"alwaysProxy": {
|
"alwaysProxy": {
|
||||||
"message": "Siempre usar el proxy de Invidious para videos",
|
"message": "Siempre usar el proxy de Invidious para videos",
|
||||||
"description": "Etiqueta para la opción de 'Siempre usar el proxy de Invidious para videos' (opciones)."
|
"description": "Etiqueta para la opción de 'Siempre usar el proxy de Invidious para videos' (opciones)."
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
Una extensión web simple que redirige las solicitudes de Twitter, Youtube, Instagram, Google Maps, Reddit y la Búsqueda de Google a alternativas que respetan su privacidad.
|
Una extensión web simple que redirige las solicitudes de Twitter, Youtube, Instagram, Google Maps, Reddit y la Búsqueda de Google a alternativas que respetan su privacidad.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description:
|
## Description (AMO):
|
||||||
|
|
||||||
```
|
```
|
||||||
Redirige las solicitudes de Twitter, Youtube, Instagram, Google Maps, Reddit y la Búsqueda de Google a alternativas que respetan su privacidad. - <a href='https://nitter.net/'>Nitter</a>, <a href='https://invidio.us/'>Invidious</a>, <a href='https://bibliogram.art/'>Bibliogram</a>, & <a href='https://www.openstreetmap.org'>OpenStreetMap</a>.
|
Redirige las solicitudes de Twitter, Youtube, Instagram, Google Maps, Reddit y la Búsqueda de Google a alternativas que respetan su privacidad. - <a href='https://nitter.net/'>Nitter</a>, <a href='https://invidio.us/'>Invidious</a>, <a href='https://bibliogram.art/'>Bibliogram</a>, & <a href='https://www.openstreetmap.org'>OpenStreetMap</a>.
|
||||||
|
@ -31,3 +31,24 @@ Si te gusta esta extensión y tienes los recursos económicos, por favor conside
|
||||||
<li>Por favor, tenga en cuenta que se requiere acceso a todos los eventos de navegación del sitio web (todas las URL), no solo a los dominios de destino, para permitir redireccionamientos de videos incrustados. En este momento no conozco ninguna otra manera de lograr redirecciones iframe; sin embargo, estaría feliz de escuchar algunas sugerencias al respecto 🙂</li>
|
<li>Por favor, tenga en cuenta que se requiere acceso a todos los eventos de navegación del sitio web (todas las URL), no solo a los dominios de destino, para permitir redireccionamientos de videos incrustados. En este momento no conozco ninguna otra manera de lograr redirecciones iframe; sin embargo, estaría feliz de escuchar algunas sugerencias al respecto 🙂</li>
|
||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Description (Chrome & Mircosoft):
|
||||||
|
|
||||||
|
```
|
||||||
|
★ Más Información: ℹ️
|
||||||
|
• Nitter - https://github.com/zedeus/nitter
|
||||||
|
• Invidious - https://github.com/omarroth/invidious
|
||||||
|
• Bibliogram - https://github.com/cloudrac3r/bibliogram
|
||||||
|
• OpenStreetMap - https://wiki.openstreetmap.org
|
||||||
|
|
||||||
|
El código de esta extensión web está disponible en Github - https://github.com/SimonBrazell/privacy-redirect
|
||||||
|
|
||||||
|
★ Dona: 👨🏻💻
|
||||||
|
Si te gusta esta extensión y tienes los recursos económicos, por favor considera comprarme un café ☕️ para mostrar tu aprecio y apoyo al desarrollo del proyecto.
|
||||||
|
|
||||||
|
☕️ https://www.buymeacoffee.com/SimonBrazell ☕️
|
||||||
|
🍻 https://liberapay.com/SimonBrazell/donate 🍻
|
||||||
|
|
||||||
|
★ Permisos: ℹ️
|
||||||
|
• Por favor, tenga en cuenta que se requiere acceso a todos los eventos de navegación del sitio web (todas las URL), no solo a los dominios de destino, para permitir redireccionamientos de videos incrustados. En este momento no conozco ninguna otra manera de lograr redirecciones iframe; sin embargo, estaría feliz de escuchar algunas sugerencias al respecto 🙂
|
||||||
|
```
|
||||||
|
|
|
@ -9,7 +9,7 @@ Redirige les requêtes les demandes Twitter, YouTube, Instagram et Google Maps v
|
||||||
## Description:
|
## Description:
|
||||||
|
|
||||||
```
|
```
|
||||||
Redirige les requètes pour Twitter, YouTube, Instagram et Google Maps vers des alternatives respectueuses de la confidentialité - <a href="https://nitter.net/">Nitter</a>, <a href="https://invidio.us/">Invidious</a>, <a href="https://bibliogram.art/">Bibliogram</a>, & <a href="https://www.openstreetmap.org">OpenStreetMap</a>.
|
Redirige les requêtes pour Twitter, YouTube, Instagram et Google Maps vers des alternatives respectueuses de la confidentialité - <a href="https://nitter.net/">Nitter</a>, <a href="https://invidio.us/">Invidious</a>, <a href="https://bibliogram.art/">Bibliogram</a>, & <a href="https://www.openstreetmap.org">OpenStreetMap</a>.
|
||||||
|
|
||||||
Permet de définir des instances personnalisées et d'activer ou désactiver toutes les redirections.
|
Permet de définir des instances personnalisées et d'activer ou désactiver toutes les redirections.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,154 @@
|
||||||
|
{
|
||||||
|
"extensionName": {
|
||||||
|
"message": "Privacy Redirect",
|
||||||
|
"description": "Name of the extension."
|
||||||
|
},
|
||||||
|
"extensionDescription": {
|
||||||
|
"message": "Reindirizza Twitter, YouTube, Instagram ed altri verso alternative rispettose della privacy.",
|
||||||
|
"description": "Description of the extension."
|
||||||
|
},
|
||||||
|
"nitterInstance": {
|
||||||
|
"message": "Istanza di Nitter",
|
||||||
|
"description": "Label for Nitter instance field option (options)."
|
||||||
|
},
|
||||||
|
"invidiousInstance": {
|
||||||
|
"message": "Istanza di Invidious",
|
||||||
|
"description": "Label for Invidious instance field option (options)."
|
||||||
|
},
|
||||||
|
"bibliogramInstance": {
|
||||||
|
"message": "Istanza di Bibliogram",
|
||||||
|
"description": "Label for Bibliogram instance field option (options)."
|
||||||
|
},
|
||||||
|
"osmInstance": {
|
||||||
|
"message": "Istanza di OpenStreetMap",
|
||||||
|
"description": "Label for OSM instance field option (options)."
|
||||||
|
},
|
||||||
|
"redditInstance": {
|
||||||
|
"message": "Istanza di Reddit",
|
||||||
|
"description": "Label for Reddit instance field option (options)."
|
||||||
|
},
|
||||||
|
"searchEngineInstance": {
|
||||||
|
"message": "Istanza del motore di ricerca",
|
||||||
|
"description": "Label for Search Engine instance field option (options)."
|
||||||
|
},
|
||||||
|
"simplyTranslateInstance": {
|
||||||
|
"message": "Istanza di SimplyTranslate",
|
||||||
|
"description": "Label for SimplyTranslate instance field option (options)."
|
||||||
|
},
|
||||||
|
"disableNitter": {
|
||||||
|
"message": "Reindirizzamenti Nitter",
|
||||||
|
"description": "Label for enable/disable Nitter redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"disableInvidious": {
|
||||||
|
"message": "Reindirizzamenti Invidious",
|
||||||
|
"description": "Label for enable/disable Invidious redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"disableBibliogram": {
|
||||||
|
"message": "Reindirizzamenti Bibliogram",
|
||||||
|
"description": "Label for enable/disable Bibliogram redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"disableOsm": {
|
||||||
|
"message": "Reindirizzamenti OpenStreetMap",
|
||||||
|
"description": "Label for enable/disable OSM redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"disableReddit": {
|
||||||
|
"message": "Reindirizzamenti Reddit",
|
||||||
|
"description": "Label for enable/disable Reddit redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"disableSearchEngine": {
|
||||||
|
"message": "Reindirizzamenti motore di ricerca",
|
||||||
|
"description": "Label for enable/disable Search Engine redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"disableSimplyTranslate": {
|
||||||
|
"message": "Reindirizzamenti SimplyTranslate",
|
||||||
|
"description": "Label for enable/disable SimplyTranslate redirects option (options & pop-up)."
|
||||||
|
},
|
||||||
|
"alwaysProxy": {
|
||||||
|
"message": "Usa sempre il proxy per i video su Invidious",
|
||||||
|
"description": "Label for 'Always proxy videos through Invidious' option (options)."
|
||||||
|
},
|
||||||
|
"onlyEmbeddedVideo": {
|
||||||
|
"message": "Reindirizza solo i video incorporati verso Invidious",
|
||||||
|
"description": "Label for 'Only redirect embedded video to Invidious' option (options)."
|
||||||
|
},
|
||||||
|
"videoQuality": {
|
||||||
|
"message": "Qualità video di Invidious",
|
||||||
|
"description": "Label for 'Invidious Video Quality' option (options)."
|
||||||
|
},
|
||||||
|
"removeTwitterSW": {
|
||||||
|
"message": "Rimuovi proattivamente il service worker di Twitter",
|
||||||
|
"description": "Label for 'Proactively remove Twitter service worker' option (options)."
|
||||||
|
},
|
||||||
|
"invidiousDarkMode": {
|
||||||
|
"message": "Modalità scura di Invidious sempre attiva",
|
||||||
|
"description": "Label for 'Invidious dark mode always on' option (options)."
|
||||||
|
},
|
||||||
|
"persistInvidiousPrefs": {
|
||||||
|
"message": "Mantieni le preferenze di Invidious (con cookie)",
|
||||||
|
"description": "Label for 'Persist Invidious preferences (as cookie)' option (options)."
|
||||||
|
},
|
||||||
|
"generalTab": {
|
||||||
|
"message": "Generali",
|
||||||
|
"description": "General tab (options)."
|
||||||
|
},
|
||||||
|
"advancedTab": {
|
||||||
|
"message": "Avanzate",
|
||||||
|
"description": "Advanced tab (options)."
|
||||||
|
},
|
||||||
|
"exceptionsTab": {
|
||||||
|
"message": "Eccezioni",
|
||||||
|
"description": "Exceptions tab (options)."
|
||||||
|
},
|
||||||
|
"exceptionsDescriptionP1": {
|
||||||
|
"message": "Inserisci un URL o espressione regolare da escludere dai reindirizzamenti.",
|
||||||
|
"description": "A description of the 'Exceptions' feature paragraph 1 (options)."
|
||||||
|
},
|
||||||
|
"exceptionsDescriptionP2": {
|
||||||
|
"message": "Tutte le richieste verso o da un URL corrispondente all'eccezione saranno escluse dai reindirizzamenti.",
|
||||||
|
"description": "A description of the 'Exceptions' feature paragraph 2 (options)."
|
||||||
|
},
|
||||||
|
"exceptionsDescriptionP3": {
|
||||||
|
"message": "Nota - Supporta le espressioni regolari JavaScript, esclusi gli slash.",
|
||||||
|
"description": "A description of the 'Exceptions' feature paragraph 3 (options)."
|
||||||
|
},
|
||||||
|
"addException": {
|
||||||
|
"message": "Aggiungi eccezione",
|
||||||
|
"description": "'Add Exceptions' button (options)."
|
||||||
|
},
|
||||||
|
"moreOptions": {
|
||||||
|
"message": "Altre opzioni",
|
||||||
|
"description": "More Options button (pop-up)."
|
||||||
|
},
|
||||||
|
"privacy": {
|
||||||
|
"message": "Privacy",
|
||||||
|
"description": "Extension title - Privacy (pop-up)."
|
||||||
|
},
|
||||||
|
"redirect": {
|
||||||
|
"message": "Redirect",
|
||||||
|
"description": "Extension title - Redirect (pop-up)."
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"message": "Versione",
|
||||||
|
"description": "Version"
|
||||||
|
},
|
||||||
|
"useFreeTube": {
|
||||||
|
"message": "Usa FreeTube al posto di Invidious quando possibile",
|
||||||
|
"description": "Label for 'Use FreeTube over Invidious when possible' option (options)."
|
||||||
|
},
|
||||||
|
"nitterRandomPool": {
|
||||||
|
"message": "Gruppo di istanze Nitter casuali (separate da virgola)",
|
||||||
|
"description": "Label for 'Nitter random instance pool (comma-separated)' option (options)."
|
||||||
|
},
|
||||||
|
"invidiousRandomPool": {
|
||||||
|
"message": "Gruppo di istanze Invidious casuali (separate da virgola)",
|
||||||
|
"description": "Label for 'Invidious random instance pool (comma-separated)' option (options)."
|
||||||
|
},
|
||||||
|
"bibliogramRandomPool": {
|
||||||
|
"message": "Gruppo di istanze Bibliogram casuali (separate da virgola)",
|
||||||
|
"description": "Label for 'Bibliogram random instance pool (comma-separated)' option (options)."
|
||||||
|
},
|
||||||
|
"randomInstancePlaceholder": {
|
||||||
|
"message": "Istanza casuale (nessuna selezione)",
|
||||||
|
"description": "Input placeholder for provider instance settings that select a random instance from a pool when none is selected"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
# Extension Store (AMO & Chrome Web Store) Listing
|
||||||
|
|
||||||
|
## Summary:
|
||||||
|
|
||||||
|
```
|
||||||
|
Una semplice estensione che reindirizza le richieste di Twitter, YouTube, Instagram e Google Maps verso alternative rispettose della privacy.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Description:
|
||||||
|
|
||||||
|
```
|
||||||
|
Reindirizza le richieste di Twitter, YouTube, Instagram e Google Maps verso alternative rispettose della privacy - <a href='https://nitter.net/'>Nitter</a>, <a href='https://invidio.us/'>Invidious</a>, <a href='https://bibliogram.art/'>Bibliogram</a> e <a href='https://www.openstreetmap.org'>OpenStreetMap</a>.
|
||||||
|
|
||||||
|
Permette di impostare istanze personalizzate, attivare/disattivare tutti i reindirizzamenti e altro.
|
||||||
|
|
||||||
|
<b>★ Maggiori informazioni: ℹ️</b>
|
||||||
|
<ul>
|
||||||
|
<li><a href='https://github.com/zedeus/nitter#nitter-wip'>Nitter</a></li>
|
||||||
|
<li><a href='https://github.com/omarroth/invidious#invidious'>Invidious</a></li>
|
||||||
|
<li><a href='https://github.com/cloudrac3r/bibliogram#bibliogram'>Bibliogram</a></li>
|
||||||
|
<li><a href='https://wiki.openstreetmap.org/'>OpenStreetMap</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
Il codice sorgente di questa estensione è disponibile su <a href='https://github.com/SimonBrazell/privacy-redirect'>Github</a>.
|
||||||
|
|
||||||
|
<b>★ Dona: 👨🏻💻</b>
|
||||||
|
Se ti piace questa estensione e te lo puoi permettere, considera di <a href='https://www.buymeacoffee.com/SimonBrazell'>offrirmi un caffè</a> ☕️ ️per mostrare il tuo apprezzamento e supportare lo sviluppo del progetto.
|
||||||
|
|
||||||
|
<b>★ Permessi: ℹ️</b>
|
||||||
|
<ul>
|
||||||
|
<li>Si prega di notare che l'accesso a tutti gli eventi di navigazione web (tutti gli URL), non solo ai domini di destinazione, è necessario per permettere i reindirizzamenti dei video incorporati. Ad oggi non conosco un altro modo per fare i reindirizzamenti di iframe, sarò felice di ricevere suggerimenti al riguardo 🙂</li>
|
||||||
|
</ul>
|
||||||
|
```
|
|
@ -31,6 +31,10 @@
|
||||||
"message": "Сервис поисковой системы",
|
"message": "Сервис поисковой системы",
|
||||||
"description": "Название настройки (в настройках) поля сервиса поисковой системы."
|
"description": "Название настройки (в настройках) поля сервиса поисковой системы."
|
||||||
},
|
},
|
||||||
|
"simplyTranslateInstance": {
|
||||||
|
"message": "Сервис SimplyTranslate",
|
||||||
|
"description": "Название настройки (в настройках) поля сервиса SimplyTranslate."
|
||||||
|
},
|
||||||
"disableNitter": {
|
"disableNitter": {
|
||||||
"message": "Перенаправление на Nitter",
|
"message": "Перенаправление на Nitter",
|
||||||
"description": "Название настройки для включения/выключения перенаправления на Nitter (в настройках и всплывающем окне)."
|
"description": "Название настройки для включения/выключения перенаправления на Nitter (в настройках и всплывающем окне)."
|
||||||
|
@ -55,6 +59,10 @@
|
||||||
"message": "Перенаправление поисковой системы",
|
"message": "Перенаправление поисковой системы",
|
||||||
"description": "Название настройки для включения/выключения перенаправления поисковой системы (в настройках и всплывающем окне)."
|
"description": "Название настройки для включения/выключения перенаправления поисковой системы (в настройках и всплывающем окне)."
|
||||||
},
|
},
|
||||||
|
"disableSimplyTranslate": {
|
||||||
|
"message": "Перенаправление на SimplyTranslate",
|
||||||
|
"description": "Название настройки для включения/выключения перенаправления на SimplyTranslate (в настройках и всплывающем окне)."
|
||||||
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"message": "Тема",
|
"message": "Тема",
|
||||||
"description": "Название настройки для 'Тема' (в настройках)."
|
"description": "Название настройки для 'Тема' (в настройках)."
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
Twitter, YouTube, Instagram & Google Haritalar bağlantılarını gizlilik dostu alternatiflerine yönlendiren basit bir web uzantısı.
|
Twitter, YouTube, Instagram & Google Haritalar bağlantılarını gizlilik dostu alternatiflerine yönlendiren basit bir web uzantısı.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description:
|
## Description (AMO):
|
||||||
|
|
||||||
```
|
```
|
||||||
Twitter, YouTube, Instagram, & Google Haritalar bağlantılarını gizlilik dostu alternatiflerine yönlendirir - <a href='https://nitter.net/'>Nitter</a>, <a href='https://invidio.us/'>Invidious</a>, <a href='https://bibliogram.art/'>Bibliogram</a>, & <a href='https://www.openstreetmap.org'>OpenStreetMap</a>.
|
Twitter, YouTube, Instagram, & Google Haritalar bağlantılarını gizlilik dostu alternatiflerine yönlendirir - <a href='https://nitter.net/'>Nitter</a>, <a href='https://invidio.us/'>Invidious</a>, <a href='https://bibliogram.art/'>Bibliogram</a>, & <a href='https://www.openstreetmap.org'>OpenStreetMap</a>.
|
||||||
|
@ -31,3 +31,26 @@ Eğer bu uzantıyı seviyorsan ve minnettarlığını gösterip projenin devamı
|
||||||
<li>Lütfen aklınızda bulundurun, siteye gömülü video yönlendirmelerinin çalışması için bütün website dolaşım etkinliklerine, sadece hedef alan adlarına değil, erişim gereklidir. Şu anda çerçeve yönlendirmenin başka hiçbir yolunu bilmiyorum, bununla ilgili bazı öneriler duymaya sevinirim 🙂</li>
|
<li>Lütfen aklınızda bulundurun, siteye gömülü video yönlendirmelerinin çalışması için bütün website dolaşım etkinliklerine, sadece hedef alan adlarına değil, erişim gereklidir. Şu anda çerçeve yönlendirmenin başka hiçbir yolunu bilmiyorum, bununla ilgili bazı öneriler duymaya sevinirim 🙂</li>
|
||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Description (Chrome & Mircosoft):
|
||||||
|
|
||||||
|
```
|
||||||
|
★ Daha Fazla Bilgi: ℹ️
|
||||||
|
• Nitter - https://github.com/zedeus/nitter
|
||||||
|
• Invidious - https://github.com/omarroth/invidious
|
||||||
|
• Bibliogram - https://github.com/cloudrac3r/bibliogram
|
||||||
|
• OpenStreetMap - https://wiki.openstreetmap.org
|
||||||
|
|
||||||
|
Özel örnekler ayarlamaya, tüm yönlendirmeleri açıp kapatmaya ve daha fazlasına izin verir.
|
||||||
|
|
||||||
|
Bu web uzantısının kaynak kodu Github'da mevcut' - https://github.com/SimonBrazell/privacy-redirect
|
||||||
|
|
||||||
|
★ Bağış At: 👨🏻💻
|
||||||
|
Eğer bu uzantıyı seviyorsan ve minnettarlığını gösterip projenin devamını destekliyorsan ve bana bir kahve alıcak ☕️ kadar maddi durumun varsa.
|
||||||
|
|
||||||
|
☕️ https://www.buymeacoffee.com/SimonBrazell ☕️
|
||||||
|
🍻 https://liberapay.com/SimonBrazell/donate 🍻
|
||||||
|
|
||||||
|
★ İzinler: ℹ️
|
||||||
|
• Lütfen aklınızda bulundurun, siteye gömülü video yönlendirmelerinin çalışması için bütün website dolaşım etkinliklerine, sadece hedef alan adlarına değil, erişim gereklidir. Şu anda çerçeve yönlendirmenin başka hiçbir yolunu bilmiyorum, bununla ilgili bazı öneriler duymaya sevinirim 🙂
|
||||||
|
```
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const targets = ["translate.google.com"];
|
const targets = ["translate.google.com", "translate.google.no"];
|
||||||
|
|
||||||
const redirects = ["https://translate.metalune.xyz"];
|
const redirects = ["https://translate.metalune.xyz"];
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,8 @@ const redirects = [
|
||||||
"https://bibliogram.nixnet.services",
|
"https://bibliogram.nixnet.services",
|
||||||
"https://bibliogram.ethibox.fr",
|
"https://bibliogram.ethibox.fr",
|
||||||
"https://bibliogram.hamster.dance",
|
"https://bibliogram.hamster.dance",
|
||||||
"https://bibliogram.kavin.rocks",
|
|
||||||
"https://insta.trom.tf",
|
"https://insta.trom.tf",
|
||||||
"https://bibliogram.hamster.dance",
|
"https://bib.actionsack.com"
|
||||||
];
|
];
|
||||||
const reservedPaths = [
|
const reservedPaths = [
|
||||||
"about",
|
"about",
|
||||||
|
|
|
@ -4,6 +4,8 @@ const targets = [
|
||||||
"new.reddit.com",
|
"new.reddit.com",
|
||||||
"amp.reddit.com",
|
"amp.reddit.com",
|
||||||
"i.redd.it",
|
"i.redd.it",
|
||||||
|
"redd.it",
|
||||||
|
"old.reddit.com",
|
||||||
];
|
];
|
||||||
const redirects = [
|
const redirects = [
|
||||||
// libreddit: privacy w/ modern UI
|
// libreddit: privacy w/ modern UI
|
||||||
|
@ -14,13 +16,12 @@ const redirects = [
|
||||||
"https://libreddit.dothq.co",
|
"https://libreddit.dothq.co",
|
||||||
"https://libreddit.silkky.cloud",
|
"https://libreddit.silkky.cloud",
|
||||||
"https://libreddit.himiko.cloud",
|
"https://libreddit.himiko.cloud",
|
||||||
|
"https://reddit.artemislena.eu",
|
||||||
// teddit: privacy w/ old UI
|
// teddit: privacy w/ old UI
|
||||||
"https://teddit.net",
|
"https://teddit.net",
|
||||||
"https://teddit.ggc-project.de",
|
"https://teddit.ggc-project.de",
|
||||||
"https://teddit.kavin.rocks",
|
"https://teddit.kavin.rocks",
|
||||||
"https://old.reddit.com", // desktop
|
"https://snew.notabug.io",
|
||||||
"https://i.reddit.com", // mobile
|
|
||||||
"https://snew.notabug.io", // anti-censorship
|
|
||||||
];
|
];
|
||||||
const bypassPaths = /\/(gallery\/poll\/rpan\/settings\/topics)/;
|
const bypassPaths = /\/(gallery\/poll\/rpan\/settings\/topics)/;
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,7 @@ const redirects = [
|
||||||
"https://nitter.snopyta.org",
|
"https://nitter.snopyta.org",
|
||||||
"https://nitter.42l.fr",
|
"https://nitter.42l.fr",
|
||||||
"https://nitter.nixnet.services",
|
"https://nitter.nixnet.services",
|
||||||
"https://nitter.13ad.de",
|
|
||||||
"https://nitter.pussthecat.org",
|
"https://nitter.pussthecat.org",
|
||||||
"https://nitter.mastodont.cat",
|
|
||||||
"https://nitter.dark.fail",
|
"https://nitter.dark.fail",
|
||||||
"https://nitter.tedomum.net",
|
"https://nitter.tedomum.net",
|
||||||
"https://nitter.cattube.org",
|
"https://nitter.cattube.org",
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
const targets = /wikipedia.org/;
|
||||||
|
|
||||||
|
const redirects = ["https://wikiless.org"];
|
||||||
|
|
||||||
|
export default {
|
||||||
|
targets,
|
||||||
|
redirects,
|
||||||
|
};
|
|
@ -26,7 +26,6 @@ const redirects = [
|
||||||
"https://yewtu.be",
|
"https://yewtu.be",
|
||||||
"https://invidious.tube",
|
"https://invidious.tube",
|
||||||
"https://invidious.silkky.cloud",
|
"https://invidious.silkky.cloud",
|
||||||
"https://invidious.fdn.fr",
|
|
||||||
"https://invidious.himiko.cloud",
|
"https://invidious.himiko.cloud",
|
||||||
"https://inv.skyn3t.in",
|
"https://inv.skyn3t.in",
|
||||||
"https://tube.incognet.io",
|
"https://tube.incognet.io",
|
||||||
|
@ -36,7 +35,6 @@ const redirects = [
|
||||||
"https://dev.viewtube.io",
|
"https://dev.viewtube.io",
|
||||||
"https://invidious.048596.xyz",
|
"https://invidious.048596.xyz",
|
||||||
"http://fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad.onion",
|
"http://fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad.onion",
|
||||||
"http://qklhadlycap4cnod.onion",
|
|
||||||
"http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion",
|
"http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion",
|
||||||
"http://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion",
|
"http://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion",
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,9 +5,7 @@ const nitterInstances = [
|
||||||
"https://nitter.snopyta.org",
|
"https://nitter.snopyta.org",
|
||||||
"https://nitter.42l.fr",
|
"https://nitter.42l.fr",
|
||||||
"https://nitter.nixnet.services",
|
"https://nitter.nixnet.services",
|
||||||
"https://nitter.13ad.de",
|
|
||||||
"https://nitter.pussthecat.org",
|
"https://nitter.pussthecat.org",
|
||||||
"https://nitter.mastodont.cat",
|
|
||||||
"https://nitter.dark.fail",
|
"https://nitter.dark.fail",
|
||||||
"https://nitter.tedomum.net",
|
"https://nitter.tedomum.net",
|
||||||
"https://nitter.cattube.org",
|
"https://nitter.cattube.org",
|
||||||
|
@ -18,7 +16,7 @@ const nitterInstances = [
|
||||||
"https://nitter.cc",
|
"https://nitter.cc",
|
||||||
"https://nitter.vxempire.xyz",
|
"https://nitter.vxempire.xyz",
|
||||||
"https://nitter.unixfox.eu",
|
"https://nitter.unixfox.eu",
|
||||||
"https://bird.trom.tf",
|
"https://bird.trom.tf"
|
||||||
];
|
];
|
||||||
|
|
||||||
let disableNitter;
|
let disableNitter;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "__MSG_extensionName__",
|
"name": "__MSG_extensionName__",
|
||||||
"description": "__MSG_extensionDescription__",
|
"description": "__MSG_extensionDescription__",
|
||||||
"version": "1.1.47",
|
"version": "1.1.49",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"background": {
|
"background": {
|
||||||
"page": "pages/background/background.html",
|
"page": "pages/background/background.html",
|
||||||
|
@ -50,7 +50,6 @@
|
||||||
"*://yewtu.be/*",
|
"*://yewtu.be/*",
|
||||||
"*://invidious.tube/*",
|
"*://invidious.tube/*",
|
||||||
"*://invidious.silkky.cloud/*",
|
"*://invidious.silkky.cloud/*",
|
||||||
"*://invidious.fdn.fr/*",
|
|
||||||
"*://invidious.himiko.cloud/*",
|
"*://invidious.himiko.cloud/*",
|
||||||
"*://inv.skyn3t.in/*",
|
"*://inv.skyn3t.in/*",
|
||||||
"*://tube.incognet.io/*",
|
"*://tube.incognet.io/*",
|
||||||
|
@ -60,7 +59,6 @@
|
||||||
"*://dev.viewtube.io/*",
|
"*://dev.viewtube.io/*",
|
||||||
"*://invidious.048596.xyz/*",
|
"*://invidious.048596.xyz/*",
|
||||||
"*://fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad.onion/*",
|
"*://fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad.onion/*",
|
||||||
"*://qklhadlycap4cnod.onion/*",
|
|
||||||
"*://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion/*",
|
"*://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion/*",
|
||||||
"*://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion/*"
|
"*://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion/*"
|
||||||
],
|
],
|
||||||
|
|
|
@ -8,6 +8,7 @@ import mapsHelper from "../../assets/javascripts/helpers/google-maps.js";
|
||||||
import redditHelper from "../../assets/javascripts/helpers/reddit.js";
|
import redditHelper from "../../assets/javascripts/helpers/reddit.js";
|
||||||
import searchHelper from "../../assets/javascripts/helpers/google-search.js";
|
import searchHelper from "../../assets/javascripts/helpers/google-search.js";
|
||||||
import googleTranslateHelper from "../../assets/javascripts/helpers/google-translate.js";
|
import googleTranslateHelper from "../../assets/javascripts/helpers/google-translate.js";
|
||||||
|
import wikipediaHelper from "../../assets/javascripts/helpers/wikipedia.js";
|
||||||
|
|
||||||
const nitterInstances = twitterHelper.redirects;
|
const nitterInstances = twitterHelper.redirects;
|
||||||
const twitterDomains = twitterHelper.targets;
|
const twitterDomains = twitterHelper.targets;
|
||||||
|
@ -33,6 +34,9 @@ const searchEngineInstances = searchHelper.redirects;
|
||||||
const simplyTranslateInstances = googleTranslateHelper.redirects;
|
const simplyTranslateInstances = googleTranslateHelper.redirects;
|
||||||
const simplyTranslateDefault = simplyTranslateInstances[0];
|
const simplyTranslateDefault = simplyTranslateInstances[0];
|
||||||
const googleTranslateDomains = googleTranslateHelper.targets;
|
const googleTranslateDomains = googleTranslateHelper.targets;
|
||||||
|
const wikipediaInstances = wikipediaHelper.redirects;
|
||||||
|
const wikipediaDefault = wikipediaInstances[0];
|
||||||
|
const wikipediaRegex = wikipediaHelper.targets;
|
||||||
|
|
||||||
let disableNitter;
|
let disableNitter;
|
||||||
let disableInvidious;
|
let disableInvidious;
|
||||||
|
@ -41,6 +45,7 @@ let disableOsm;
|
||||||
let disableReddit;
|
let disableReddit;
|
||||||
let disableSearchEngine;
|
let disableSearchEngine;
|
||||||
let disableSimplyTranslate;
|
let disableSimplyTranslate;
|
||||||
|
let disableWikipedia;
|
||||||
let nitterInstance;
|
let nitterInstance;
|
||||||
let invidiousInstance;
|
let invidiousInstance;
|
||||||
let bibliogramInstance;
|
let bibliogramInstance;
|
||||||
|
@ -48,6 +53,7 @@ let osmInstance;
|
||||||
let redditInstance;
|
let redditInstance;
|
||||||
let searchEngineInstance;
|
let searchEngineInstance;
|
||||||
let simplyTranslateInstance;
|
let simplyTranslateInstance;
|
||||||
|
let wikipediaInstance;
|
||||||
let alwaysProxy;
|
let alwaysProxy;
|
||||||
let onlyEmbeddedVideo;
|
let onlyEmbeddedVideo;
|
||||||
let videoQuality;
|
let videoQuality;
|
||||||
|
@ -73,6 +79,7 @@ browser.storage.sync.get(
|
||||||
"redditInstance",
|
"redditInstance",
|
||||||
"searchEngineInstance",
|
"searchEngineInstance",
|
||||||
"simplyTranslateInstance",
|
"simplyTranslateInstance",
|
||||||
|
"wikipediaInstance",
|
||||||
"disableNitter",
|
"disableNitter",
|
||||||
"disableInvidious",
|
"disableInvidious",
|
||||||
"disableBibliogram",
|
"disableBibliogram",
|
||||||
|
@ -80,6 +87,7 @@ browser.storage.sync.get(
|
||||||
"disableReddit",
|
"disableReddit",
|
||||||
"disableSearchEngine",
|
"disableSearchEngine",
|
||||||
"disableSimplyTranslate",
|
"disableSimplyTranslate",
|
||||||
|
"disableWikipedia",
|
||||||
"alwaysProxy",
|
"alwaysProxy",
|
||||||
"onlyEmbeddedVideo",
|
"onlyEmbeddedVideo",
|
||||||
"videoQuality",
|
"videoQuality",
|
||||||
|
@ -103,12 +111,14 @@ browser.storage.sync.get(
|
||||||
searchEngineInstance = result.searchEngineInstance;
|
searchEngineInstance = result.searchEngineInstance;
|
||||||
simplyTranslateInstance =
|
simplyTranslateInstance =
|
||||||
result.simplyTranslateInstance || simplyTranslateDefault;
|
result.simplyTranslateInstance || simplyTranslateDefault;
|
||||||
|
wikipediaInstance = result.wikipediaInstance || wikipediaDefault;
|
||||||
disableNitter = result.disableNitter;
|
disableNitter = result.disableNitter;
|
||||||
disableInvidious = result.disableInvidious;
|
disableInvidious = result.disableInvidious;
|
||||||
disableBibliogram = result.disableBibliogram;
|
disableBibliogram = result.disableBibliogram;
|
||||||
disableOsm = result.disableOsm;
|
disableOsm = result.disableOsm;
|
||||||
disableReddit = result.disableReddit;
|
disableReddit = result.disableReddit;
|
||||||
disableSearchEngine = result.disableSearchEngine;
|
disableSearchEngine = result.disableSearchEngine;
|
||||||
|
disableWikipedia = result.disableWikipedia;
|
||||||
disableSimplyTranslate = result.disableSimplyTranslate;
|
disableSimplyTranslate = result.disableSimplyTranslate;
|
||||||
alwaysProxy = result.alwaysProxy;
|
alwaysProxy = result.alwaysProxy;
|
||||||
onlyEmbeddedVideo = result.onlyEmbeddedVideo;
|
onlyEmbeddedVideo = result.onlyEmbeddedVideo;
|
||||||
|
@ -153,6 +163,9 @@ browser.storage.onChanged.addListener((changes) => {
|
||||||
simplyTranslateInstance =
|
simplyTranslateInstance =
|
||||||
changes.simplyTranslateInstance.newValue || simplyTranslateDefault;
|
changes.simplyTranslateInstance.newValue || simplyTranslateDefault;
|
||||||
}
|
}
|
||||||
|
if ("wikipediaInstance" in changes) {
|
||||||
|
wikipediaInstance = changes.wikipediaInstance.newValue || wikipediaDefault;
|
||||||
|
}
|
||||||
if ("redditInstance" in changes) {
|
if ("redditInstance" in changes) {
|
||||||
redditInstance = changes.redditInstance.newValue || redditDefault;
|
redditInstance = changes.redditInstance.newValue || redditDefault;
|
||||||
}
|
}
|
||||||
|
@ -180,6 +193,9 @@ browser.storage.onChanged.addListener((changes) => {
|
||||||
if ("disableSimplyTranslate" in changes) {
|
if ("disableSimplyTranslate" in changes) {
|
||||||
disableSimplyTranslate = changes.disableSimplyTranslate.newValue;
|
disableSimplyTranslate = changes.disableSimplyTranslate.newValue;
|
||||||
}
|
}
|
||||||
|
if ("disableWikipedia" in changes) {
|
||||||
|
disableWikipedia = changes.disableWikipedia.newValue;
|
||||||
|
}
|
||||||
if ("alwaysProxy" in changes) {
|
if ("alwaysProxy" in changes) {
|
||||||
alwaysProxy = changes.alwaysProxy.newValue;
|
alwaysProxy = changes.alwaysProxy.newValue;
|
||||||
}
|
}
|
||||||
|
@ -279,7 +295,9 @@ function redirectYouTube(url, initiator, type) {
|
||||||
if (invidiousSubtitles) {
|
if (invidiousSubtitles) {
|
||||||
url.searchParams.append("subtitles", invidiousSubtitles);
|
url.searchParams.append("subtitles", invidiousSubtitles);
|
||||||
}
|
}
|
||||||
url.searchParams.append("autoplay", invidiousAutoplay ? 1 : 0);
|
if (invidiousAutoplay) {
|
||||||
|
url.searchParams.append("autoplay", 1);
|
||||||
|
}
|
||||||
|
|
||||||
return `${
|
return `${
|
||||||
invidiousInstance || commonHelper.getRandomInstance(invidiousRandomPool)
|
invidiousInstance || commonHelper.getRandomInstance(invidiousRandomPool)
|
||||||
|
@ -305,14 +323,10 @@ function redirectTwitter(url, initiator) {
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (url.host.split(".")[0] === "pbs") {
|
if (url.host.split(".")[0] === "pbs" || url.host.split(".")[0] === "video") {
|
||||||
return `${
|
return `${
|
||||||
nitterInstance || commonHelper.getRandomInstance(nitterRandomPool)
|
nitterInstance || commonHelper.getRandomInstance(nitterRandomPool)
|
||||||
}/pic/${encodeURIComponent(url.href)}`;
|
}/pic/${encodeURIComponent(url.href)}`;
|
||||||
} else if (url.host.split(".")[0] === "video") {
|
|
||||||
return `${
|
|
||||||
nitterInstance || commonHelper.getRandomInstance(nitterRandomPool)
|
|
||||||
}/gif/${encodeURIComponent(url.href)}`;
|
|
||||||
} else if (url.pathname.split("/").includes("tweets")) {
|
} else if (url.pathname.split("/").includes("tweets")) {
|
||||||
return `${
|
return `${
|
||||||
nitterInstance || commonHelper.getRandomInstance(nitterRandomPool)
|
nitterInstance || commonHelper.getRandomInstance(nitterRandomPool)
|
||||||
|
@ -482,6 +496,21 @@ function redirectReddit(url, initiator, type) {
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
} else if (url.host === "redd.it") {
|
||||||
|
if (
|
||||||
|
redditInstance.includes("teddit") &&
|
||||||
|
!url.pathname.match(/^\/+[^\/]+\/+[^\/]/)
|
||||||
|
) {
|
||||||
|
// As of 2021-04-22, redirects for teddit redd.it/foo links don't work.
|
||||||
|
// It appears that adding "/comments" as a prefix works, so manually add
|
||||||
|
// that prefix if it is missing. Even though redd.it/comments/foo links
|
||||||
|
// don't seem to work or exist, guard against affecting those kinds of
|
||||||
|
// paths.
|
||||||
|
//
|
||||||
|
// Note the difference between redd.it/comments/foo (doesn't work) and
|
||||||
|
// teddit.net/comments/foo (works).
|
||||||
|
return `${redditInstance}/comments${url.pathname}${url.search}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return `${redditInstance}${url.pathname}${url.search}`;
|
return `${redditInstance}${url.pathname}${url.search}`;
|
||||||
}
|
}
|
||||||
|
@ -512,6 +541,42 @@ function redirectGoogleTranslate(url, initiator) {
|
||||||
return `${simplyTranslateInstance}/${url.search}`;
|
return `${simplyTranslateInstance}/${url.search}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function redirectWikipedia(url, initiator) {
|
||||||
|
if (disableWikipedia || isException(url, initiator)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
let GETArguments = [];
|
||||||
|
if (url.search.length > 0) {
|
||||||
|
let search = url.search.substring(1); //get rid of '?'
|
||||||
|
let argstrings = search.split("&");
|
||||||
|
for (let i = 0; i < argstrings.length; i++) {
|
||||||
|
let args = argstrings[i].split("=");
|
||||||
|
GETArguments.push([args[0], args[1]]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let link = `${wikipediaInstance}${url.pathname}`;
|
||||||
|
let urlSplit = url.host.split(".");
|
||||||
|
if (urlSplit[0] != "wikipedia" && urlSplit[0] != "www") {
|
||||||
|
if (urlSplit[0] == "m")
|
||||||
|
GETArguments.push(["mobileaction", "toggle_view_mobile"]);
|
||||||
|
else GETArguments.push(["lang", urlSplit[0]]);
|
||||||
|
if (urlSplit[1] == "m")
|
||||||
|
GETArguments.push(["mobileaction", "toggle_view_mobile"]);
|
||||||
|
//wikiless doesn't have mobile view support yet
|
||||||
|
}
|
||||||
|
for (let i = 0; i < GETArguments.length; i++) {
|
||||||
|
link +=
|
||||||
|
(i == 0 ? "?" : "&") + GETArguments[i][0] + "=" + GETArguments[i][1];
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
urlSplit[urlSplit.length - 1] == "org" &&
|
||||||
|
urlSplit[urlSplit.length - 2] == "wikipedia"
|
||||||
|
)
|
||||||
|
//just in case someone wanted to visit wikipedia.org.foo.bar.net
|
||||||
|
return link;
|
||||||
|
else return null;
|
||||||
|
}
|
||||||
|
|
||||||
browser.webRequest.onBeforeRequest.addListener(
|
browser.webRequest.onBeforeRequest.addListener(
|
||||||
(details) => {
|
(details) => {
|
||||||
const url = new URL(details.url);
|
const url = new URL(details.url);
|
||||||
|
@ -538,10 +603,7 @@ browser.webRequest.onBeforeRequest.addListener(
|
||||||
redirect = {
|
redirect = {
|
||||||
redirectUrl: redirectGoogleMaps(url, initiator),
|
redirectUrl: redirectGoogleMaps(url, initiator),
|
||||||
};
|
};
|
||||||
} else if (
|
} else if (redditDomains.includes(url.host)) {
|
||||||
redditDomains.includes(url.host) ||
|
|
||||||
redditInstances.includes(url.origin)
|
|
||||||
) {
|
|
||||||
redirect = {
|
redirect = {
|
||||||
redirectUrl: redirectReddit(url, initiator, details.type),
|
redirectUrl: redirectReddit(url, initiator, details.type),
|
||||||
};
|
};
|
||||||
|
@ -553,6 +615,10 @@ browser.webRequest.onBeforeRequest.addListener(
|
||||||
redirect = {
|
redirect = {
|
||||||
redirectUrl: redirectGoogleTranslate(url, initiator),
|
redirectUrl: redirectGoogleTranslate(url, initiator),
|
||||||
};
|
};
|
||||||
|
} else if (url.host.match(wikipediaRegex)) {
|
||||||
|
redirect = {
|
||||||
|
redirectUrl: redirectWikipedia(url, initiator),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
if (redirect && redirect.redirectUrl) {
|
if (redirect && redirect.redirectUrl) {
|
||||||
console.info(
|
console.info(
|
||||||
|
@ -573,7 +639,7 @@ browser.webRequest.onBeforeRequest.addListener(
|
||||||
|
|
||||||
browser.runtime.onInstalled.addListener((details) => {
|
browser.runtime.onInstalled.addListener((details) => {
|
||||||
browser.storage.sync.get(
|
browser.storage.sync.get(
|
||||||
["disableSearchEngine", "disableSimplyTranslate"],
|
["disableSearchEngine", "disableSimplyTranslate", "disableWikipedia"],
|
||||||
(result) => {
|
(result) => {
|
||||||
if (result.disableSearchEngine === undefined) {
|
if (result.disableSearchEngine === undefined) {
|
||||||
browser.storage.sync.set({
|
browser.storage.sync.set({
|
||||||
|
@ -585,6 +651,11 @@ browser.runtime.onInstalled.addListener((details) => {
|
||||||
disableSimplyTranslate: true,
|
disableSimplyTranslate: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (result.disableWikipedia === undefined) {
|
||||||
|
browser.storage.sync.set({
|
||||||
|
disableWikipedia: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (details.reason === "update") {
|
if (details.reason === "update") {
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<h1 data-localise="__MSG_disableSimplyTranslate__" class="new-badge" data-new-badge>SimplyTranslate Redirects</h1>
|
<h1 data-localise="__MSG_disableSimplyTranslate__">SimplyTranslate Redirects</h1>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input
|
<input
|
||||||
|
@ -183,6 +183,25 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
<section class="settings-block">
|
||||||
|
<table class="option" aria-label="Toggle Wikipedia redirects">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<h1 data-localise="__MSG_disableWikipedia__" class="new-badge" data-new-badge>Wikipedia Redirects</h1>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input
|
||||||
|
aria-hidden="true"
|
||||||
|
id="disable-wikipedia"
|
||||||
|
type="checkbox"
|
||||||
|
/>
|
||||||
|
<label for="disable-wikipedia" class="checkbox-label"></label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
<section class="settings-block">
|
<section class="settings-block">
|
||||||
<h1 data-localise="__MSG_nitterInstance__">Nitter Instance</h1>
|
<h1 data-localise="__MSG_nitterInstance__">Nitter Instance</h1>
|
||||||
<div class="autocomplete">
|
<div class="autocomplete">
|
||||||
|
@ -258,6 +277,16 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<section class="settings-block">
|
||||||
|
<h1 data-localise="__MSG_wikipediaInstance__">Wikipedia Instance</h1>
|
||||||
|
<div class="autocomplete">
|
||||||
|
<input
|
||||||
|
id="wikipedia-instance"
|
||||||
|
type="url"
|
||||||
|
placeholder="https://wikiless.org"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section class="settings-block">
|
<section class="settings-block">
|
||||||
<h1 data-localise="__MSG_theme__">Theme</h1>
|
<h1 data-localise="__MSG_theme__">Theme</h1>
|
||||||
<select id="theme">
|
<select id="theme">
|
||||||
|
|
|
@ -8,6 +8,7 @@ import mapsHelper from "../../assets/javascripts/helpers/google-maps.js";
|
||||||
import redditHelper from "../../assets/javascripts/helpers/reddit.js";
|
import redditHelper from "../../assets/javascripts/helpers/reddit.js";
|
||||||
import searchHelper from "../../assets/javascripts/helpers/google-search.js";
|
import searchHelper from "../../assets/javascripts/helpers/google-search.js";
|
||||||
import googleTranslateHelper from "../../assets/javascripts/helpers/google-translate.js";
|
import googleTranslateHelper from "../../assets/javascripts/helpers/google-translate.js";
|
||||||
|
import wikipediaHelper from "../../assets/javascripts/helpers/wikipedia.js";
|
||||||
|
|
||||||
const nitterInstances = twitterHelper.redirects;
|
const nitterInstances = twitterHelper.redirects;
|
||||||
const invidiousInstances = youtubeHelper.redirects;
|
const invidiousInstances = youtubeHelper.redirects;
|
||||||
|
@ -16,6 +17,7 @@ const osmInstances = mapsHelper.redirects;
|
||||||
const redditInstances = redditHelper.redirects;
|
const redditInstances = redditHelper.redirects;
|
||||||
const searchEngineInstances = searchHelper.redirects;
|
const searchEngineInstances = searchHelper.redirects;
|
||||||
const simplyTranslateInstances = googleTranslateHelper.redirects;
|
const simplyTranslateInstances = googleTranslateHelper.redirects;
|
||||||
|
const wikipediaInstances = wikipediaHelper.redirects;
|
||||||
const autocompletes = [
|
const autocompletes = [
|
||||||
{ id: "nitter-instance", instances: nitterInstances },
|
{ id: "nitter-instance", instances: nitterInstances },
|
||||||
{ id: "invidious-instance", instances: invidiousInstances },
|
{ id: "invidious-instance", instances: invidiousInstances },
|
||||||
|
@ -27,6 +29,7 @@ const autocompletes = [
|
||||||
instances: searchEngineInstances.map((instance) => instance.link),
|
instances: searchEngineInstances.map((instance) => instance.link),
|
||||||
},
|
},
|
||||||
{ id: "simply-translate-instance", instances: simplyTranslateInstances },
|
{ id: "simply-translate-instance", instances: simplyTranslateInstances },
|
||||||
|
{ id: "wikipedia-instance", instances: wikipediaInstances },
|
||||||
];
|
];
|
||||||
const domparser = new DOMParser();
|
const domparser = new DOMParser();
|
||||||
|
|
||||||
|
@ -39,6 +42,7 @@ let searchEngineInstance = document.getElementById("search-engine-instance");
|
||||||
let simplyTranslateInstance = document.getElementById(
|
let simplyTranslateInstance = document.getElementById(
|
||||||
"simply-translate-instance"
|
"simply-translate-instance"
|
||||||
);
|
);
|
||||||
|
let wikipediaInstance = document.getElementById("wikipedia-instance");
|
||||||
let disableNitter = document.getElementById("disable-nitter");
|
let disableNitter = document.getElementById("disable-nitter");
|
||||||
let disableInvidious = document.getElementById("disable-invidious");
|
let disableInvidious = document.getElementById("disable-invidious");
|
||||||
let disableBibliogram = document.getElementById("disable-bibliogram");
|
let disableBibliogram = document.getElementById("disable-bibliogram");
|
||||||
|
@ -48,6 +52,7 @@ let disableSearchEngine = document.getElementById("disable-search-engine");
|
||||||
let disableSimplyTranslate = document.getElementById(
|
let disableSimplyTranslate = document.getElementById(
|
||||||
"disable-simply-translate"
|
"disable-simply-translate"
|
||||||
);
|
);
|
||||||
|
let disableWikipedia = document.getElementById("disable-wikipedia");
|
||||||
let alwaysProxy = document.getElementById("always-proxy");
|
let alwaysProxy = document.getElementById("always-proxy");
|
||||||
let onlyEmbeddedVideo = document.getElementById("only-embed");
|
let onlyEmbeddedVideo = document.getElementById("only-embed");
|
||||||
let videoQuality = document.getElementById("video-quality");
|
let videoQuality = document.getElementById("video-quality");
|
||||||
|
@ -100,6 +105,7 @@ browser.storage.sync.get(
|
||||||
"redditInstance",
|
"redditInstance",
|
||||||
"searchEngineInstance",
|
"searchEngineInstance",
|
||||||
"simplyTranslateInstance",
|
"simplyTranslateInstance",
|
||||||
|
"wikipediaInstance",
|
||||||
"disableNitter",
|
"disableNitter",
|
||||||
"disableInvidious",
|
"disableInvidious",
|
||||||
"disableBibliogram",
|
"disableBibliogram",
|
||||||
|
@ -107,6 +113,7 @@ browser.storage.sync.get(
|
||||||
"disableReddit",
|
"disableReddit",
|
||||||
"disableSearchEngine",
|
"disableSearchEngine",
|
||||||
"disableSimplyTranslate",
|
"disableSimplyTranslate",
|
||||||
|
"disableWikipedia",
|
||||||
"alwaysProxy",
|
"alwaysProxy",
|
||||||
"onlyEmbeddedVideo",
|
"onlyEmbeddedVideo",
|
||||||
"videoQuality",
|
"videoQuality",
|
||||||
|
@ -135,6 +142,7 @@ browser.storage.sync.get(
|
||||||
searchEngineInstance.value =
|
searchEngineInstance.value =
|
||||||
(result.searchEngineInstance && result.searchEngineInstance.link) || "";
|
(result.searchEngineInstance && result.searchEngineInstance.link) || "";
|
||||||
simplyTranslateInstance.value = result.simplyTranslateInstance || "";
|
simplyTranslateInstance.value = result.simplyTranslateInstance || "";
|
||||||
|
wikipediaInstance.value = result.wikipediaInstance || "";
|
||||||
disableNitter.checked = !result.disableNitter;
|
disableNitter.checked = !result.disableNitter;
|
||||||
disableInvidious.checked = !result.disableInvidious;
|
disableInvidious.checked = !result.disableInvidious;
|
||||||
disableBibliogram.checked = !result.disableBibliogram;
|
disableBibliogram.checked = !result.disableBibliogram;
|
||||||
|
@ -142,6 +150,7 @@ browser.storage.sync.get(
|
||||||
disableReddit.checked = !result.disableReddit;
|
disableReddit.checked = !result.disableReddit;
|
||||||
disableSearchEngine.checked = !result.disableSearchEngine;
|
disableSearchEngine.checked = !result.disableSearchEngine;
|
||||||
disableSimplyTranslate.checked = !result.disableSimplyTranslate;
|
disableSimplyTranslate.checked = !result.disableSimplyTranslate;
|
||||||
|
disableWikipedia.checked = !result.disableWikipedia;
|
||||||
alwaysProxy.checked = result.alwaysProxy;
|
alwaysProxy.checked = result.alwaysProxy;
|
||||||
onlyEmbeddedVideo.checked = result.onlyEmbeddedVideo;
|
onlyEmbeddedVideo.checked = result.onlyEmbeddedVideo;
|
||||||
videoQuality.value = result.videoQuality || "";
|
videoQuality.value = result.videoQuality || "";
|
||||||
|
@ -328,6 +337,18 @@ simplyTranslateInstance.addEventListener(
|
||||||
simplyTranslateInstanceChange
|
simplyTranslateInstanceChange
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const wikipediaInstanceChange = debounce(() => {
|
||||||
|
if (wikipediaInstance.checkValidity()) {
|
||||||
|
browser.storage.sync.set({
|
||||||
|
wikipediaInstance: parseURL(wikipediaInstance.value),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
|
wikipediaInstance.addEventListener(
|
||||||
|
"input",
|
||||||
|
wikipediaInstanceChange
|
||||||
|
);
|
||||||
|
|
||||||
disableNitter.addEventListener("change", (event) => {
|
disableNitter.addEventListener("change", (event) => {
|
||||||
browser.storage.sync.set({ disableNitter: !event.target.checked });
|
browser.storage.sync.set({ disableNitter: !event.target.checked });
|
||||||
});
|
});
|
||||||
|
@ -356,6 +377,10 @@ disableSimplyTranslate.addEventListener("change", (event) => {
|
||||||
browser.storage.sync.set({ disableSimplyTranslate: !event.target.checked });
|
browser.storage.sync.set({ disableSimplyTranslate: !event.target.checked });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
disableWikipedia.addEventListener("change", (event) => {
|
||||||
|
browser.storage.sync.set({ disableWikipedia: !event.target.checked });
|
||||||
|
});
|
||||||
|
|
||||||
alwaysProxy.addEventListener("change", (event) => {
|
alwaysProxy.addEventListener("change", (event) => {
|
||||||
browser.storage.sync.set({ alwaysProxy: event.target.checked });
|
browser.storage.sync.set({ alwaysProxy: event.target.checked });
|
||||||
});
|
});
|
||||||
|
|
|
@ -165,11 +165,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<h1
|
<h1 data-localise="__MSG_disableSimplyTranslate__">
|
||||||
data-localise="__MSG_disableSimplyTranslate__"
|
|
||||||
class="new-badge"
|
|
||||||
data-new-badge
|
|
||||||
>
|
|
||||||
SimplyTranslate Redirects
|
SimplyTranslate Redirects
|
||||||
</h1>
|
</h1>
|
||||||
</td>
|
</td>
|
||||||
|
@ -189,6 +185,32 @@
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="settings-block">
|
||||||
|
<table class="option" aria-label="Toggle Wikipedia redirects">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<h1
|
||||||
|
data-localise="__MSG_disableWikipedia__"
|
||||||
|
class="new-badge"
|
||||||
|
data-new-badge
|
||||||
|
>
|
||||||
|
Wikipedia Redirects
|
||||||
|
</h1>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input
|
||||||
|
aria-hidden="true"
|
||||||
|
id="disable-wikipedia"
|
||||||
|
type="checkbox"
|
||||||
|
/>
|
||||||
|
<label for="disable-wikipedia" class="checkbox-label"></label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="settings-block"></section>
|
<section class="settings-block"></section>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
|
|
@ -7,6 +7,7 @@ let disableOsm = document.querySelector("#disable-osm");
|
||||||
let disableReddit = document.querySelector("#disable-reddit");
|
let disableReddit = document.querySelector("#disable-reddit");
|
||||||
let disableSearchEngine = document.querySelector("#disable-searchEngine");
|
let disableSearchEngine = document.querySelector("#disable-searchEngine");
|
||||||
let disableSimplyTranslate = document.querySelector("#disable-simplyTranslate");
|
let disableSimplyTranslate = document.querySelector("#disable-simplyTranslate");
|
||||||
|
let disableWikipedia = document.querySelector("#disable-wikipedia");
|
||||||
let version = document.querySelector("#version");
|
let version = document.querySelector("#version");
|
||||||
|
|
||||||
window.browser = window.browser || window.chrome;
|
window.browser = window.browser || window.chrome;
|
||||||
|
@ -20,6 +21,7 @@ browser.storage.sync.get(
|
||||||
"disableReddit",
|
"disableReddit",
|
||||||
"disableSearchEngine",
|
"disableSearchEngine",
|
||||||
"disableSimplyTranslate",
|
"disableSimplyTranslate",
|
||||||
|
"disableWikipedia",
|
||||||
"theme",
|
"theme",
|
||||||
],
|
],
|
||||||
(result) => {
|
(result) => {
|
||||||
|
@ -31,6 +33,7 @@ browser.storage.sync.get(
|
||||||
disableReddit.checked = !result.disableReddit;
|
disableReddit.checked = !result.disableReddit;
|
||||||
disableSearchEngine.checked = !result.disableSearchEngine;
|
disableSearchEngine.checked = !result.disableSearchEngine;
|
||||||
disableSimplyTranslate.checked = !result.disableSimplyTranslate;
|
disableSimplyTranslate.checked = !result.disableSimplyTranslate;
|
||||||
|
disableWikipedia.checked = !result.disableWikipedia;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -64,6 +67,10 @@ disableSimplyTranslate.addEventListener("change", (event) => {
|
||||||
browser.storage.sync.set({ disableSimplyTranslate: !event.target.checked });
|
browser.storage.sync.set({ disableSimplyTranslate: !event.target.checked });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
disableWikipedia.addEventListener("change", (event) => {
|
||||||
|
browser.storage.sync.set({ disableWikipedia: !event.target.checked });
|
||||||
|
});
|
||||||
|
|
||||||
document.querySelector("#more-options").addEventListener("click", () => {
|
document.querySelector("#more-options").addEventListener("click", () => {
|
||||||
browser.runtime.openOptionsPage();
|
browser.runtime.openOptionsPage();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue