diff --git a/Extensions/chrome/popup.css b/Extensions/chrome/popup.css
index d8baca6..2f54c1d 100644
--- a/Extensions/chrome/popup.css
+++ b/Extensions/chrome/popup.css
@@ -1,15 +1,44 @@
+/* Variables */
+:root {
+ --background: #111;
+ --primary: #ff4444;
+ --secondary: #272727;
+ --white: #fff;
+}
+
+/* Window Styling */
+html,body {
+ background-color: var(--background);
+ color: var(--white);
+ min-width: 300px;
+ padding: 0.5em;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 14px;
+}
+
+h1 {
+ font-size: 26px;
+}
+
button {
- height: 30px;
- width: 30px;
- outline: none;
- margin: 10px;
+ color: var(--white);
+ background: var(--secondary);
+ cursor: pointer;
+ padding: 5px 16px;
border: none;
- border-radius: 2px;
+ border-radius: 4px;
+ font-weight: 500;
+ box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
}
-button.current {
- box-shadow: 0 0 0 2px white,
- 0 0 0 4px black;
+#advancedToggle {
+ margin-top: 1em;
+ margin-bottom: 2em;
}
-
+#advancedSettings {
+ display: none;
+ border: 2px solid var(--secondary);
+ border-radius: 4px;
+ padding: 0.5em;
+}
\ No newline at end of file
diff --git a/Extensions/chrome/popup.html b/Extensions/chrome/popup.html
index 0c17331..218814e 100644
--- a/Extensions/chrome/popup.html
+++ b/Extensions/chrome/popup.html
@@ -1,12 +1,32 @@
-
-
-
-
-
-
-
-
-Returns ability to see dislikes
-
+
+
+
+ Return Youtube Dislike
+
+
+
+
+
+
+
+ Return Youtube Dislike
+ by Dmitrii Selivanov & Community
+
+ Website
+ Github
+ Discord
+
+
+ Show Advanced
+
+
+
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo laboriosam, veritatis sint dolores assumenda harum quidem molestiae ad repellendus aliquid?
+
+
+
+
+
diff --git a/Extensions/chrome/popup.js b/Extensions/chrome/popup.js
index 0507499..0d3c991 100644
--- a/Extensions/chrome/popup.js
+++ b/Extensions/chrome/popup.js
@@ -1,4 +1,47 @@
-/* popup-script.js */
+/* Config */
+const config = {
+ advanced: false,
+ showAdvancedMessage: "Show Advanced",
+ hideAdvancedMessage: "Hide Advanced",
+
+ 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});
+});
+
+/* Advanced Toggle */
+const advancedToggle = document.getElementById('advancedToggle');
+advancedToggle.addEventListener('click', () => {
+ const adv = document.getElementById('advancedSettings');
+ if (config.advanced) {
+ adv.style.display = "none";
+ advancedToggle.innerHTML = config.showAdvancedMessage;
+ config.advanced = false;
+ } else {
+ adv.style.display = "block";
+ advancedToggle.innerHTML = config.hideAdvancedMessage;
+ config.advanced = true;
+ }
+});
+
+
+
+/* popup-script.js
document.querySelector('#login')
.addEventListener('click', function () {
chrome.runtime.sendMessage({ message: 'get_auth_token' });
@@ -7,3 +50,4 @@ document.querySelector('#login')
document.querySelector("#log_off").addEventListener("click", function () {
chrome.runtime.sendMessage({ message: "log_off" });
});
+*/
diff --git a/Extensions/chrome/return-youtube-dislike.content-script.zip b/Extensions/chrome/return-youtube-dislike.content-script.zip
deleted file mode 100644
index a22e607..0000000
Binary files a/Extensions/chrome/return-youtube-dislike.content-script.zip and /dev/null differ
diff --git a/Extensions/firefox/packed.zip b/Extensions/firefox/packed.zip
deleted file mode 100644
index 74e0d60..0000000
Binary files a/Extensions/firefox/packed.zip and /dev/null differ
diff --git a/Extensions/firefox/popup.css b/Extensions/firefox/popup.css
index 1a2f9b0..a9b86ad 100644
--- a/Extensions/firefox/popup.css
+++ b/Extensions/firefox/popup.css
@@ -1,13 +1,45 @@
-button {
- height: 30px;
- width: 30px;
- outline: none;
- margin: 10px;
- border: none;
- border-radius: 2px;
+/* Variables */
+:root {
+ --background: #111;
+ --primary: #ff4444;
+ --secondary: #272727;
+ --white: #fff;
}
-button.current {
- box-shadow: 0 0 0 2px white,
- 0 0 0 4px black;
+/* Window Styling */
+html,body {
+ background-color: var(--background);
+ color: var(--white);
+ width: 300px;
+ padding: 0.5em;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 14px;
}
+
+h1 {
+ font-size: 26px;
+}
+
+button {
+ color: var(--white);
+ background: var(--secondary);
+ cursor: pointer;
+ padding: 5px 16px;
+ border: none;
+ border-radius: 4px;
+ font-weight: 500;
+ box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
+}
+
+#advancedToggle {
+ margin-top: 1em;
+ margin-bottom: 2em;
+}
+
+#advancedSettings {
+ display: none;
+ border: 2px solid var(--secondary);
+ border-radius: 4px;
+ padding: 0.5em;
+ margin-right: 1em; /* FIREFOX ONLY */
+}
\ No newline at end of file
diff --git a/Extensions/firefox/popup.html b/Extensions/firefox/popup.html
index 0c17331..218814e 100644
--- a/Extensions/firefox/popup.html
+++ b/Extensions/firefox/popup.html
@@ -1,12 +1,32 @@
-
-
-
-
-
-
-
-
-Returns ability to see dislikes
-
+
+
+
+ Return Youtube Dislike
+
+
+
+
+
+
+
+ Return Youtube Dislike
+ by Dmitrii Selivanov & Community
+
+ Website
+ Github
+ Discord
+
+
+ Show Advanced
+
+
+
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo laboriosam, veritatis sint dolores assumenda harum quidem molestiae ad repellendus aliquid?
+
+
+
+
+
diff --git a/Extensions/firefox/popup.js b/Extensions/firefox/popup.js
index 9dbdffb..0d3c991 100644
--- a/Extensions/firefox/popup.js
+++ b/Extensions/firefox/popup.js
@@ -1,10 +1,53 @@
-/* popup-script.js */
+/* Config */
+const config = {
+ advanced: false,
+ showAdvancedMessage: "Show Advanced",
+ hideAdvancedMessage: "Hide Advanced",
+
+ 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});
+});
+
+/* Advanced Toggle */
+const advancedToggle = document.getElementById('advancedToggle');
+advancedToggle.addEventListener('click', () => {
+ const adv = document.getElementById('advancedSettings');
+ if (config.advanced) {
+ adv.style.display = "none";
+ advancedToggle.innerHTML = config.showAdvancedMessage;
+ config.advanced = false;
+ } else {
+ adv.style.display = "block";
+ advancedToggle.innerHTML = config.hideAdvancedMessage;
+ config.advanced = true;
+ }
+});
+
+
+
+/* popup-script.js
document.querySelector('#login')
.addEventListener('click', function () {
chrome.runtime.sendMessage({ message: 'get_auth_token' });
});
-document.querySelector('#log_off')
-.addEventListener('click', function () {
- chrome.runtime.sendMessage({ message: 'log_off' });
+document.querySelector("#log_off").addEventListener("click", function () {
+ chrome.runtime.sendMessage({ message: "log_off" });
});
+*/