mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
Add matrix link and fix help button
This commit is contained in:
@@ -127,8 +127,10 @@
|
|||||||
<footer id="sbFooter">
|
<footer id="sbFooter">
|
||||||
<a href="https://sponsor.ajay.app" target="_blank" rel="noopener">Website</a> |
|
<a href="https://sponsor.ajay.app" target="_blank" rel="noopener">Website</a> |
|
||||||
<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>
|
||||||
|
<br/>
|
||||||
<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://matrix.to/#/+sponsorblock:ajay.app" target="_blank" rel="noopener">Matrix</a> |
|
||||||
<a id="helpButton" href="#">__MSG_help__</a>
|
<a id="helpButton" href="#">__MSG_help__</a>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) {
|
|||||||
case "openConfig":
|
case "openConfig":
|
||||||
chrome.runtime.openOptionsPage();
|
chrome.runtime.openOptionsPage();
|
||||||
return;
|
return;
|
||||||
|
case "openHelp":
|
||||||
|
window.open(chrome.runtime.getURL('help/index_en.html'));
|
||||||
|
return;
|
||||||
case "sendRequest":
|
case "sendRequest":
|
||||||
sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => {
|
sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => {
|
||||||
callback({
|
callback({
|
||||||
|
|||||||
@@ -830,7 +830,7 @@ async function runThePopup(messageListener?: MessageListener) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function openHelp() {
|
function openHelp() {
|
||||||
window.open(chrome.runtime.getURL('help/index_en.html'));
|
chrome.runtime.sendMessage({"message": "openHelp"});
|
||||||
}
|
}
|
||||||
|
|
||||||
//make the options username setting option visible
|
//make the options username setting option visible
|
||||||
|
|||||||
Reference in New Issue
Block a user