Change credits link to help.

More detailed credits are at the bottom of help.
This commit is contained in:
Ajay Ramachandran
2020-10-14 22:50:59 -04:00
parent 7a6f65803e
commit a67c972e03
3 changed files with 10 additions and 1 deletions

View File

@@ -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"
} }
} }

View File

@@ -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 -->

View File

@@ -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