Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/_locales
Submodule _locales updated 1 files
+3 −0 en/messages.json
16 changes: 15 additions & 1 deletion public/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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">
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ interface SBConfig {
shownDeArrowPromotion: boolean;
showZoomToFillError2: boolean;
cleanPopup: boolean;
hideSegmentCreationInPopup: boolean;

// Used to cache calculated text color info
categoryPillColors: {
Expand Down Expand Up @@ -349,6 +350,7 @@ const syncDefaults = {
shownDeArrowPromotion: false,
showZoomToFillError2: true,
cleanPopup: false,
hideSegmentCreationInPopup: false,

categoryPillColors: {},

Expand Down
2 changes: 1 addition & 1 deletion src/popup/PopupComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const PopupComponent = () => {
}

{
!Config.config.cleanPopup &&
!Config.config.cleanPopup && !Config.config.hideSegmentCreationInPopup &&
<SegmentSubmissionComponent
videoID={videoID || ""}
status={status.status}
Expand Down