Verified Commit 4d015980 authored by Booteille's avatar Booteille

Add thin mode

parent d8b0b111
......@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Now ask for `webNavigation` permission to be able to make the new copy link `pageAction` work.
- Added option to load comments without javascript. Fix #39.
- Add option to load comments without javascript. Fix #39.
- Add option to enable interface thin mode.
### Changed
- Use `pageAction` to copy cleaned Invidious link.
......
......@@ -121,6 +121,9 @@
"resetSettingsLink": {
"message": "Reset settings"
},
"thinModeLabel": {
"message": "Thin mode"
},
"torWarning": {
"message": "It is not recommended to use clearnet URLs. Fastest and Random instances selection will use Onion URLs."
},
......
......@@ -121,6 +121,9 @@
"resetSettingsLink": {
"message": "Reinitialiser les paramètres"
},
"thinModeLabel": {
"message": "Interface allégée"
},
"torWarning": {
"message": "Il n'est pas recommandé d'utiliser des URLs clearnet. La sélection de l'instance la plus rapide ou d'instance aléatoire utilisera uniquement des URLs Onion."
},
......
......@@ -56,6 +56,7 @@ export const config = {
player_style: "youtube",
quality: "dash",
region: "",
thin_mode: false,
},
},
isEnabled: true,
......
......@@ -24,6 +24,7 @@ export const applySearchParams = async (url: URL) => {
const interfaceSettings = [
"hl",
"dark_mode",
"thin_mode",
];
let cookieSettings = null;
......
......@@ -133,6 +133,15 @@
id="invidious-instanceSettings-dark_mode">
<span class="slider round"></span>
</label>
<label for="invidious-instanceSettings-thin_mode">
<span data-i18n-content="thinModeLabel"></span>
</label>
<label class="switch">
<input type="checkbox" name="invidious-instanceSettings-thin_mode"
id="invidious-instanceSettings-thin_mode">
<span class="slider round"></span>
</label>
</section>
<section>
......@@ -171,6 +180,7 @@
</fieldset>
<fieldset>
<legend data-i18n-content="captionsLabel"></legend>
<select name="invidious-instanceSettings-defaultCaptions1" class="defaultCaptions"
id="invidious-instanceSettings-defaultCaptions1"></select>
<select name="invidious-instanceSettings-defaultCaptions2" class="defaultCaptions"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment