mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into add-invidious
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ ignored
|
|||||||
.idea/
|
.idea/
|
||||||
node_modules
|
node_modules
|
||||||
web-ext-artifacts
|
web-ext-artifacts
|
||||||
|
.vscode/
|
||||||
|
|||||||
@@ -83,6 +83,12 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.profilepiccircle {
|
||||||
|
vertical-align: middle;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<div option-type="toggle" toggle-type="reverse" sync-option="disableAutoSkip">
|
<div option-type="toggle" toggle-type="reverse" sync-option="disableAutoSkip">
|
||||||
<label class="switch-container" label-name="__MSG_autoSkip__">
|
<label class="switch-container" label-name="__MSG_autoSkip__">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox">
|
<input type="checkbox" checked>
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
</label>
|
</label>
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
<div option-type="toggle" toggle-type="reverse" sync-option="hideVideoPlayerControls">
|
<div option-type="toggle" toggle-type="reverse" sync-option="hideVideoPlayerControls">
|
||||||
<label class="switch-container" label-name="__MSG_showButtons__">
|
<label class="switch-container" label-name="__MSG_showButtons__">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox">
|
<input type="checkbox" checked>
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
</label>
|
</label>
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
<div option-type="toggle" toggle-type="reverse" sync-option="hideInfoButtonPlayerControls">
|
<div option-type="toggle" toggle-type="reverse" sync-option="hideInfoButtonPlayerControls">
|
||||||
<label class="switch-container" label-name="__MSG_showInfoButton__">
|
<label class="switch-container" label-name="__MSG_showInfoButton__">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox">
|
<input type="checkbox" checked>
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
</label>
|
</label>
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
<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-name="__MSG_showDeleteButton__">
|
<label class="switch-container" label-name="__MSG_showDeleteButton__">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox">
|
<input type="checkbox" checked>
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
</label>
|
</label>
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div option-type="text-change" sync-option="userID">
|
<div option-type="text-change" sync-option="userID" confirm-message="userIDChangeWarning">
|
||||||
<div class="option-button trigger-button">
|
<div class="option-button trigger-button">
|
||||||
__MSG_changeUserID__
|
__MSG_changeUserID__
|
||||||
</div>
|
</div>
|
||||||
@@ -231,7 +231,7 @@
|
|||||||
<div option-type="toggle" toggle-type="reverse" sync-option="dontShowNotice">
|
<div option-type="toggle" toggle-type="reverse" sync-option="dontShowNotice">
|
||||||
<label class="switch-container" label-name="__MSG_showSkipNotice__">
|
<label class="switch-container" label-name="__MSG_showSkipNotice__">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox">
|
<input type="checkbox" checked>
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -311,7 +311,13 @@ function activateTextChange(element) {
|
|||||||
textBox.value = SB.config[option];
|
textBox.value = SB.config[option];
|
||||||
|
|
||||||
let setButton = element.querySelector(".text-change-set");
|
let setButton = element.querySelector(".text-change-set");
|
||||||
setButton.addEventListener("click", () => {SB.config[option] = textBox.value});
|
setButton.addEventListener("click", () => {
|
||||||
|
let confirmMessage = element.getAttribute("confirm-message");
|
||||||
|
|
||||||
|
if (confirmMessage === null || confirm(chrome.i18n.getMessage(confirmMessage))) {
|
||||||
|
SB.config[option] = textBox.value;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
element.querySelector(".option-hidden-section").classList.remove("hidden");
|
element.querySelector(".option-hidden-section").classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user