From aee36b0ff6c2ea62bad8a6a15f2681446aed8df7 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sat, 4 Dec 2021 00:19:22 +0530 Subject: [PATCH] Add donation links to Firefox extensions Added donation links to Firefox extensions --- Extensions/firefox/popup.html | 6 ++++++ Extensions/firefox/popup.js | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Extensions/firefox/popup.html b/Extensions/firefox/popup.html index 2a9648e..6ac7bed 100644 --- a/Extensions/firefox/popup.html +++ b/Extensions/firefox/popup.html @@ -20,6 +20,12 @@ +

+

Donate

+ + +
+

diff --git a/Extensions/firefox/popup.js b/Extensions/firefox/popup.js index 9cde399..849de1b 100644 --- a/Extensions/firefox/popup.js +++ b/Extensions/firefox/popup.js @@ -7,7 +7,9 @@ const config = { links: { website: 'https://returnyoutubedislike.com', github: 'https://github.com/Anarios/return-youtube-dislike', - discord: 'https://discord.gg/mYnESY4Md5' + discord: 'https://discord.gg/mYnESY4Md5', + patreon: 'https://www.patreon.com/returnyoutubedislike', + yoomoney: 'https://returnyoutubedislike.com/pay/yoomoney' }, }; @@ -24,6 +26,15 @@ document.getElementById('link_discord').addEventListener('click', () => { chrome.tabs.create({url: config.links.discord}); }); +document.getElementById('link_patreon').addEventListener('click', () => { + chrome.tabs.create({url: config.links.patreon}); +}); + +document.getElementById('link_yoomoney').addEventListener('click', () => { + chrome.tabs.create({url: config.links.yoomoney}); +}); + + /* Advanced Toggle */ const advancedToggle = document.getElementById('advancedToggle'); advancedToggle.addEventListener('click', () => {