f is for fullscreen
This commit is contained in:
@@ -4158,7 +4158,21 @@ window.cancelAnimFrame = (function () {
|
|||||||
"d": clickOnNavBinding("#next"),
|
"d": clickOnNavBinding("#next"),
|
||||||
"r": clickOnElementBinding("#random, #nav-random"),
|
"r": clickOnElementBinding("#random, #nav-random"),
|
||||||
"p": clickOnElementBinding("button#a_toggle"),
|
"p": clickOnElementBinding("button#a_toggle"),
|
||||||
"f": clickOnElementBinding("#a_favo"),
|
"f": () => {
|
||||||
|
if (localStorage.getItem('fForFullscreen') === 'true') {
|
||||||
|
const fsBtn = document.querySelector('.v0ck_fs_btn');
|
||||||
|
const imgBtn = document.querySelector('.image-modal-btn');
|
||||||
|
if (fsBtn) {
|
||||||
|
fsBtn.click();
|
||||||
|
} else if (imgBtn) {
|
||||||
|
imgBtn.click();
|
||||||
|
} else {
|
||||||
|
clickOnElementBinding("#a_favo")();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
clickOnElementBinding("#a_favo")();
|
||||||
|
}
|
||||||
|
},
|
||||||
"i": clickOnElementBinding("a#a_addtag"),
|
"i": clickOnElementBinding("a#a_addtag"),
|
||||||
"l": () => window.toggleBackground(),
|
"l": () => window.toggleBackground(),
|
||||||
"y": () => {
|
"y": () => {
|
||||||
|
|||||||
@@ -755,6 +755,14 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fForFullscreenToggle = document.getElementById('f_for_fullscreen_toggle');
|
||||||
|
if (fForFullscreenToggle) {
|
||||||
|
fForFullscreenToggle.checked = localStorage.getItem('fForFullscreen') === 'true';
|
||||||
|
fForFullscreenToggle.addEventListener('change', () => {
|
||||||
|
localStorage.setItem('fForFullscreen', fForFullscreenToggle.checked);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Granular Thumbnail Blur Toggles
|
// Granular Thumbnail Blur Toggles
|
||||||
const blurNsfwToggle = document.getElementById('blur_nsfw_toggle');
|
const blurNsfwToggle = document.getElementById('blur_nsfw_toggle');
|
||||||
if (blurNsfwToggle) {
|
if (blurNsfwToggle) {
|
||||||
|
|||||||
@@ -154,6 +154,8 @@
|
|||||||
"alternative_infobox_hint": "Zeigt einen erweiterten Autor-Block mit Avatar und Bio auf Beitragsseiten",
|
"alternative_infobox_hint": "Zeigt einen erweiterten Autor-Block mit Avatar und Bio auf Beitragsseiten",
|
||||||
"alternative_steuerung": "Icon-Navigationsstil",
|
"alternative_steuerung": "Icon-Navigationsstil",
|
||||||
"alternative_steuerung_hint": "Ersetzt die Text-Navigation (← zurück | Zufall | weiter →) durch kompakte Chevron-Icons",
|
"alternative_steuerung_hint": "Ersetzt die Text-Navigation (← zurück | Zufall | weiter →) durch kompakte Chevron-Icons",
|
||||||
|
"f_for_fullscreen": "F is for Fullscreen",
|
||||||
|
"f_for_fullscreen_hint": "Das Drücken von F schaltet das Vollbild im Videoplayer statt den Beitrag zu favorisieren.",
|
||||||
"disable_autoplay": "Automatische Wiedergabe deaktivieren",
|
"disable_autoplay": "Automatische Wiedergabe deaktivieren",
|
||||||
"disable_autoplay_hint": "Verhindert die automatische Wiedergabe von Videos und Audio",
|
"disable_autoplay_hint": "Verhindert die automatische Wiedergabe von Videos und Audio",
|
||||||
"disable_swiping": "Wischen deaktivieren",
|
"disable_swiping": "Wischen deaktivieren",
|
||||||
|
|||||||
@@ -154,6 +154,8 @@
|
|||||||
"alternative_infobox_hint": "Show a rich author card with avatar and bio on item pages",
|
"alternative_infobox_hint": "Show a rich author card with avatar and bio on item pages",
|
||||||
"alternative_steuerung": "Icon nav style",
|
"alternative_steuerung": "Icon nav style",
|
||||||
"alternative_steuerung_hint": "Replace text navigation (← prev | random | next →) with compact chevron icons",
|
"alternative_steuerung_hint": "Replace text navigation (← prev | random | next →) with compact chevron icons",
|
||||||
|
"f_for_fullscreen": "F is for Fullscreen",
|
||||||
|
"f_for_fullscreen_hint": "Pressing F will toggle fullscreen in the video player instead of favoriting the post.",
|
||||||
"disable_autoplay": "Disable Autoplay",
|
"disable_autoplay": "Disable Autoplay",
|
||||||
"disable_autoplay_hint": "Prevent videos and audio from playing automatically",
|
"disable_autoplay_hint": "Prevent videos and audio from playing automatically",
|
||||||
"disable_swiping": "Disable Swiping",
|
"disable_swiping": "Disable Swiping",
|
||||||
|
|||||||
@@ -154,6 +154,8 @@
|
|||||||
"alternative_infobox_hint": "Toont een uitgebreide auteurkaart met avatar en bio op itempagina's",
|
"alternative_infobox_hint": "Toont een uitgebreide auteurkaart met avatar en bio op itempagina's",
|
||||||
"alternative_steuerung": "Icoon-navigatiestijl",
|
"alternative_steuerung": "Icoon-navigatiestijl",
|
||||||
"alternative_steuerung_hint": "Vervangt tekstnavigatie (← terug | willekeurig | verder →) door compacte chevron-iconen",
|
"alternative_steuerung_hint": "Vervangt tekstnavigatie (← terug | willekeurig | verder →) door compacte chevron-iconen",
|
||||||
|
"f_for_fullscreen": "F is for Fullscreen",
|
||||||
|
"f_for_fullscreen_hint": "Drukken op F schakelt het volledige scherm in de videospeler in plaats van de post te favorieten.",
|
||||||
"disable_autoplay": "Automatisch afspelen uitschakelen",
|
"disable_autoplay": "Automatisch afspelen uitschakelen",
|
||||||
"disable_autoplay_hint": "Voorkomen dat video's en audio automatisch worden afgespeeld",
|
"disable_autoplay_hint": "Voorkomen dat video's en audio automatisch worden afgespeeld",
|
||||||
"disable_swiping": "Swipen uitschakelen",
|
"disable_swiping": "Swipen uitschakelen",
|
||||||
|
|||||||
@@ -154,6 +154,8 @@
|
|||||||
"alternative_infobox_hint": "Zeigt einen erweiterten Autor-Block mit Avatar und Bio auf Beitragsseiten",
|
"alternative_infobox_hint": "Zeigt einen erweiterten Autor-Block mit Avatar und Bio auf Beitragsseiten",
|
||||||
"alternative_steuerung": "Icon-Navigationsstil",
|
"alternative_steuerung": "Icon-Navigationsstil",
|
||||||
"alternative_steuerung_hint": "Ersetzt die Text-Navigation (← zurück | Zufall | weiter →) durch kompakte Chevron-Icons",
|
"alternative_steuerung_hint": "Ersetzt die Text-Navigation (← zurück | Zufall | weiter →) durch kompakte Chevron-Icons",
|
||||||
|
"f_for_fullscreen": "F is for Fullscreen",
|
||||||
|
"f_for_fullscreen_hint": "Das Drücken der F-Taste leitet die Vollbildlichkeit des Abspielers ein, statt den Pfosten zu favorisieren.",
|
||||||
"disable_autoplay": "Automatische Wiedergabe deaktivieren",
|
"disable_autoplay": "Automatische Wiedergabe deaktivieren",
|
||||||
"disable_autoplay_hint": "Vermeiden Sie das automatische Abspielen von Videos und Tondateien",
|
"disable_autoplay_hint": "Vermeiden Sie das automatische Abspielen von Videos und Tondateien",
|
||||||
"disable_swiping": "Wischen deaktivieren",
|
"disable_swiping": "Wischen deaktivieren",
|
||||||
|
|||||||
@@ -222,6 +222,13 @@
|
|||||||
</label>
|
</label>
|
||||||
<small class="text-muted" style="margin-left: 25px;">{{ t('settings.image_expand_on_click_hint') || 'Instead of opening the scroll zoom modal, clicking an image will expand it to full size within the page.' }}</small>
|
<small class="text-muted" style="margin-left: 25px;">{{ t('settings.image_expand_on_click_hint') || 'Instead of opening the scroll zoom modal, clicking an image will expand it to full size within the page.' }}</small>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="setting-item" style="margin-bottom: 15px;">
|
||||||
|
<label for="f_for_fullscreen_toggle" style="cursor: pointer; display: flex; align-items: center; gap: 10px;">
|
||||||
|
<input type="checkbox" id="f_for_fullscreen_toggle">
|
||||||
|
<span>{{ t('settings.f_for_fullscreen') || 'F is for Fullscreen' }}</span>
|
||||||
|
</label>
|
||||||
|
<small class="text-muted" style="margin-left: 25px;">{{ t('settings.f_for_fullscreen_hint') || 'Pressing F will toggle fullscreen in the video player instead of favoriting the post.' }}</small>
|
||||||
|
</div>
|
||||||
<div class="setting-item" style="margin-top: 15px;">
|
<div class="setting-item" style="margin-top: 15px;">
|
||||||
<label for="disable_autoplay_toggle"
|
<label for="disable_autoplay_toggle"
|
||||||
style="cursor: pointer; display: flex; align-items: center; gap: 10px;">
|
style="cursor: pointer; display: flex; align-items: center; gap: 10px;">
|
||||||
|
|||||||
Reference in New Issue
Block a user