mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 16:07:06 +03:00
Add option to hide segment creation buttons in the popup
This commit is contained in:
Submodule public/_locales updated: dadf89c0eb...9539893db1
@@ -365,7 +365,7 @@
|
||||
<div class="small-description">__MSG_showTimeWithSkipsDescription__</div>
|
||||
</div>
|
||||
|
||||
<div data-type="toggle" data-sync="cleanPopup" data-no-safari="true">
|
||||
<div data-type="toggle" data-sync="cleanPopup">
|
||||
<div class="switch-container">
|
||||
<label class="switch">
|
||||
<input id="cleanPopup" type="checkbox" checked>
|
||||
@@ -375,6 +375,20 @@
|
||||
__MSG_cleanPopup__
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div data-type="toggle" data-sync="hideSegmentCreationInPopup">
|
||||
<div class="switch-container">
|
||||
<label class="switch">
|
||||
<input id="hideSegmentCreationInPopup" type="checkbox" checked>
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
<label class="switch-label" for="hideSegmentCreationInPopup">
|
||||
__MSG_hideSegmentCreationInPopup__
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-type="toggle" data-sync="darkMode">
|
||||
|
||||
@@ -77,6 +77,7 @@ interface SBConfig {
|
||||
shownDeArrowPromotion: boolean;
|
||||
showZoomToFillError2: boolean;
|
||||
cleanPopup: boolean;
|
||||
hideSegmentCreationInPopup: boolean;
|
||||
|
||||
// Used to cache calculated text color info
|
||||
categoryPillColors: {
|
||||
@@ -349,6 +350,7 @@ const syncDefaults = {
|
||||
shownDeArrowPromotion: false,
|
||||
showZoomToFillError2: true,
|
||||
cleanPopup: false,
|
||||
hideSegmentCreationInPopup: false,
|
||||
|
||||
categoryPillColors: {},
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ export const PopupComponent = () => {
|
||||
}
|
||||
|
||||
{
|
||||
!Config.config.cleanPopup &&
|
||||
!Config.config.cleanPopup && !Config.config.hideSegmentCreationInPopup &&
|
||||
<SegmentSubmissionComponent
|
||||
videoID={videoID || ""}
|
||||
status={status.status}
|
||||
|
||||
Reference in New Issue
Block a user