mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 19:01:21 +01:00
🔴 Chrome Extension Popup Redesign
This commit is contained in:
1 parent
471940b06f
commit
0d0d46e598
3 files changed
+72
-24
No files matched your search
@@ -1,4 +1,28 @@
|
||||
/* popup-script.js */
|
||||
/* Config */
|
||||
const config = {
|
||||
links: {
|
||||
website: 'https://returnyoutubedislike.com',
|
||||
github: 'https://github.com/Anarios/return-youtube-dislike',
|
||||
discord: 'https://discord.gg/mYnESY4Md5'
|
||||
}
|
||||
};
|
||||
|
||||
/* Links */
|
||||
document.getElementById('link_website').addEventListener('click', () => {
|
||||
chrome.tabs.create({url: config.links.website});
|
||||
});
|
||||
|
||||
document.getElementById('link_github').addEventListener('click', () => {
|
||||
chrome.tabs.create({url: config.links.github});
|
||||
});
|
||||
|
||||
document.getElementById('link_discord').addEventListener('click', () => {
|
||||
chrome.tabs.create({url: config.links.discord});
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* popup-script.js
|
||||
document.querySelector('#login')
|
||||
.addEventListener('click', function () {
|
||||
chrome.runtime.sendMessage({ message: 'get_auth_token' });
|
||||
@@ -7,3 +31,4 @@ document.querySelector('#login')
|
||||
document.querySelector("#log_off").addEventListener("click", function () {
|
||||
chrome.runtime.sendMessage({ message: "log_off" });
|
||||
});
|
||||
*/
|
||||
Reference in new issue
Block a user