mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Change credits link to help.
More detailed credits are at the bottom of help.
This commit is contained in:
@@ -634,5 +634,8 @@
|
|||||||
},
|
},
|
||||||
"unsubmittedWarningDescription": {
|
"unsubmittedWarningDescription": {
|
||||||
"message": "Send a notification when you leave a video with segments that are not uploaded"
|
"message": "Send a notification when you leave a video with segments that are not uploaded"
|
||||||
|
},
|
||||||
|
"help": {
|
||||||
|
"message": "Help"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
<a href="https://sponsor.ajay.app/stats" target="_blank" rel="noopener">__MSG_viewLeaderboard__</a> |
|
<a href="https://sponsor.ajay.app/stats" target="_blank" rel="noopener">__MSG_viewLeaderboard__</a> |
|
||||||
<a href="https://github.com/ajayyy/SponsorBlock" target="_blank" rel="noopener">GitHub</a> |
|
<a href="https://github.com/ajayyy/SponsorBlock" target="_blank" rel="noopener">GitHub</a> |
|
||||||
<a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> |
|
<a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> |
|
||||||
<a href="https://github.com/ajayyy/SponsorBlock/graphs/contributors" target="_blank" rel="noopener">Credits</a>
|
<a id="helpButton" href="#">__MSG_help__</a>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<!-- Scripts that need to load after the html -->
|
<!-- Scripts that need to load after the html -->
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ async function runThePopup(messageListener?: MessageListener) {
|
|||||||
// Options
|
// Options
|
||||||
//"showNoticeAgain",
|
//"showNoticeAgain",
|
||||||
"optionsButton",
|
"optionsButton",
|
||||||
|
"helpButton",
|
||||||
// More controls
|
// More controls
|
||||||
"submitTimes",
|
"submitTimes",
|
||||||
//"reportAnIssue",
|
//"reportAnIssue",
|
||||||
@@ -130,6 +131,7 @@ async function runThePopup(messageListener?: MessageListener) {
|
|||||||
PageElements.setUsernameButton.addEventListener("click", setUsernameButton);
|
PageElements.setUsernameButton.addEventListener("click", setUsernameButton);
|
||||||
PageElements.submitUsername.addEventListener("click", submitUsername);
|
PageElements.submitUsername.addEventListener("click", submitUsername);
|
||||||
PageElements.optionsButton.addEventListener("click", openOptions);
|
PageElements.optionsButton.addEventListener("click", openOptions);
|
||||||
|
PageElements.helpButton.addEventListener("click", openHelp);
|
||||||
//PageElements.reportAnIssue.addEventListener("click", reportAnIssue);
|
//PageElements.reportAnIssue.addEventListener("click", reportAnIssue);
|
||||||
//PageElements.hideDiscordButton.addEventListener("click", hideDiscordButton);
|
//PageElements.hideDiscordButton.addEventListener("click", hideDiscordButton);
|
||||||
|
|
||||||
@@ -826,6 +828,10 @@ async function runThePopup(messageListener?: MessageListener) {
|
|||||||
chrome.runtime.sendMessage({"message": "openConfig"});
|
chrome.runtime.sendMessage({"message": "openConfig"});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openHelp() {
|
||||||
|
window.open(chrome.runtime.getURL('help/index_en.html'));
|
||||||
|
}
|
||||||
|
|
||||||
//make the options username setting option visible
|
//make the options username setting option visible
|
||||||
function setUsernameButton() {
|
function setUsernameButton() {
|
||||||
//get username from the server
|
//get username from the server
|
||||||
|
|||||||
Reference in New Issue
Block a user