add Sponsor button

This commit is contained in:
qcrao
2023-10-20 11:33:13 +08:00
parent 1f236564d6
commit f0d9878a94
4 changed files with 58 additions and 11 deletions

5
background.js Normal file
View File

@@ -0,0 +1,5 @@
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message.action === "openTab") {
chrome.tabs.create({url: message.url});
}
});