mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Compact button options and add option for skip to highlight button
This commit is contained in:
@@ -182,15 +182,15 @@
|
|||||||
"hideButtonsDescription": {
|
"hideButtonsDescription": {
|
||||||
"message": "This hides the buttons that appear on the YouTube player to submit skip segments."
|
"message": "This hides the buttons that appear on the YouTube player to submit skip segments."
|
||||||
},
|
},
|
||||||
|
"showSkipButton": {
|
||||||
|
"message": "Keep Skip to Highlight Button on Player"
|
||||||
|
},
|
||||||
"showInfoButton": {
|
"showInfoButton": {
|
||||||
"message": "Show Info Button On YouTube Player"
|
"message": "Show Info Button On YouTube Player"
|
||||||
},
|
},
|
||||||
"hideInfoButton": {
|
"hideInfoButton": {
|
||||||
"message": "Hide Info Button On YouTube Player"
|
"message": "Hide Info Button On YouTube Player"
|
||||||
},
|
},
|
||||||
"whatInfoButton": {
|
|
||||||
"message": "This is the button that opens up a popup in the YouTube page."
|
|
||||||
},
|
|
||||||
"autoHideInfoButton": {
|
"autoHideInfoButton": {
|
||||||
"message": "Auto-hide Info Button"
|
"message": "Auto-hide Info Button"
|
||||||
},
|
},
|
||||||
@@ -200,9 +200,6 @@
|
|||||||
"showDeleteButton": {
|
"showDeleteButton": {
|
||||||
"message": "Show Delete Button On YouTube Player"
|
"message": "Show Delete Button On YouTube Player"
|
||||||
},
|
},
|
||||||
"whatDeleteButton": {
|
|
||||||
"message": "This is the button on the YouTube player that will clear all your un-submitted segments for the current video."
|
|
||||||
},
|
|
||||||
"enableViewTracking": {
|
"enableViewTracking": {
|
||||||
"message": "Enable Skip Count Tracking"
|
"message": "Enable Skip Count Tracking"
|
||||||
},
|
},
|
||||||
@@ -442,9 +439,6 @@
|
|||||||
"showUploadButton": {
|
"showUploadButton": {
|
||||||
"message": "Show Upload Button"
|
"message": "Show Upload Button"
|
||||||
},
|
},
|
||||||
"whatUploadButton": {
|
|
||||||
"message": "This button appears on the YouTube player after you have selected a timestamp and are ready to submit."
|
|
||||||
},
|
|
||||||
"customServerAddress": {
|
"customServerAddress": {
|
||||||
"message": "SponsorBlock Server Address"
|
"message": "SponsorBlock Server Address"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -287,7 +287,22 @@
|
|||||||
|
|
||||||
<div class="small-description">__MSG_hideButtonsDescription__</div>
|
<div class="small-description">__MSG_hideButtonsDescription__</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<div option-type="toggle" toggle-type="reverse" sync-option="hideSkipButtonPlayerControls">
|
||||||
|
<label class="switch-container">
|
||||||
|
<label class="switch">
|
||||||
|
<input type="checkbox" checked>
|
||||||
|
<span class="slider round"></span>
|
||||||
|
</label>
|
||||||
|
<div class="switch-label">
|
||||||
|
__MSG_showSkipButton__
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
@@ -301,14 +316,9 @@
|
|||||||
__MSG_showInfoButton__
|
__MSG_showInfoButton__
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<div class="small-description">__MSG_whatInfoButton__</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
@@ -322,13 +332,11 @@
|
|||||||
__MSG_autoHideInfoButton__
|
__MSG_autoHideInfoButton__
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
|
||||||
<div option-type="toggle" toggle-type="reverse" sync-option="hideDeleteButtonPlayerControls">
|
<div option-type="toggle" toggle-type="reverse" sync-option="hideDeleteButtonPlayerControls">
|
||||||
<label class="switch-container">
|
<label class="switch-container">
|
||||||
@@ -340,14 +348,9 @@
|
|||||||
__MSG_showDeleteButton__
|
__MSG_showDeleteButton__
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<div class="small-description">__MSG_whatDeleteButton__</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
@@ -361,14 +364,10 @@
|
|||||||
__MSG_showUploadButton__
|
__MSG_showUploadButton__
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<div class="small-description">__MSG_whatUploadButton__</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ interface SBConfig {
|
|||||||
hideInfoButtonPlayerControls: boolean,
|
hideInfoButtonPlayerControls: boolean,
|
||||||
hideDeleteButtonPlayerControls: boolean,
|
hideDeleteButtonPlayerControls: boolean,
|
||||||
hideUploadButtonPlayerControls: boolean,
|
hideUploadButtonPlayerControls: boolean,
|
||||||
|
hideSkipButtonPlayerControls: boolean,
|
||||||
hideDiscordLaunches: number,
|
hideDiscordLaunches: number,
|
||||||
hideDiscordLink: boolean,
|
hideDiscordLink: boolean,
|
||||||
invidiousInstances: string[],
|
invidiousInstances: string[],
|
||||||
@@ -172,6 +173,7 @@ const Config: SBObject = {
|
|||||||
hideInfoButtonPlayerControls: false,
|
hideInfoButtonPlayerControls: false,
|
||||||
hideDeleteButtonPlayerControls: false,
|
hideDeleteButtonPlayerControls: false,
|
||||||
hideUploadButtonPlayerControls: false,
|
hideUploadButtonPlayerControls: false,
|
||||||
|
hideSkipButtonPlayerControls: false,
|
||||||
hideDiscordLaunches: 0,
|
hideDiscordLaunches: 0,
|
||||||
hideDiscordLink: false,
|
hideDiscordLink: false,
|
||||||
invidiousInstances: ["invidious.snopyta.org"],
|
invidiousInstances: ["invidious.snopyta.org"],
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export class SkipButtonControlBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disableText(): void {
|
disableText(): void {
|
||||||
if (Config.config.hideVideoPlayerControls) {
|
if (Config.config.hideVideoPlayerControls || Config.config.hideSkipButtonPlayerControls) {
|
||||||
this.disable();
|
this.disable();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user