mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 07:57:09 +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 class="small-description">__MSG_showTimeWithSkipsDescription__</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-type="toggle" data-sync="cleanPopup" data-no-safari="true">
|
<div data-type="toggle" data-sync="cleanPopup">
|
||||||
<div class="switch-container">
|
<div class="switch-container">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input id="cleanPopup" type="checkbox" checked>
|
<input id="cleanPopup" type="checkbox" checked>
|
||||||
@@ -375,6 +375,20 @@
|
|||||||
__MSG_cleanPopup__
|
__MSG_cleanPopup__
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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>
|
||||||
|
|
||||||
<div data-type="toggle" data-sync="darkMode">
|
<div data-type="toggle" data-sync="darkMode">
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ interface SBConfig {
|
|||||||
shownDeArrowPromotion: boolean;
|
shownDeArrowPromotion: boolean;
|
||||||
showZoomToFillError2: boolean;
|
showZoomToFillError2: boolean;
|
||||||
cleanPopup: boolean;
|
cleanPopup: boolean;
|
||||||
|
hideSegmentCreationInPopup: boolean;
|
||||||
|
|
||||||
// Used to cache calculated text color info
|
// Used to cache calculated text color info
|
||||||
categoryPillColors: {
|
categoryPillColors: {
|
||||||
@@ -349,6 +350,7 @@ const syncDefaults = {
|
|||||||
shownDeArrowPromotion: false,
|
shownDeArrowPromotion: false,
|
||||||
showZoomToFillError2: true,
|
showZoomToFillError2: true,
|
||||||
cleanPopup: false,
|
cleanPopup: false,
|
||||||
|
hideSegmentCreationInPopup: false,
|
||||||
|
|
||||||
categoryPillColors: {},
|
categoryPillColors: {},
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ export const PopupComponent = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
!Config.config.cleanPopup &&
|
!Config.config.cleanPopup && !Config.config.hideSegmentCreationInPopup &&
|
||||||
<SegmentSubmissionComponent
|
<SegmentSubmissionComponent
|
||||||
videoID={videoID || ""}
|
videoID={videoID || ""}
|
||||||
status={status.status}
|
status={status.status}
|
||||||
|
|||||||
Reference in New Issue
Block a user