diff --git a/Extensions/chrome/manifest.json b/Extensions/chrome/manifest.json
index c405b31..c67c22c 100644
--- a/Extensions/chrome/manifest.json
+++ b/Extensions/chrome/manifest.json
@@ -1,7 +1,7 @@
{
"name": "Return YouTube Dislike",
"description": "Returns ability to see dislikes",
- "version": "0.0.0.9",
+ "version": "1.0.0.2",
"manifest_version": 3,
"background": {
"service_worker": "return-youtube-dislike.background.js"
diff --git a/Extensions/chrome/popup.html b/Extensions/chrome/popup.html
index e6734a3..e5aa87e 100644
--- a/Extensions/chrome/popup.html
+++ b/Extensions/chrome/popup.html
@@ -18,7 +18,7 @@
-
+
diff --git a/Extensions/chrome/return-youtube-dislike.background.js b/Extensions/chrome/return-youtube-dislike.background.js
index 7fab216..e03be5b 100644
--- a/Extensions/chrome/return-youtube-dislike.background.js
+++ b/Extensions/chrome/return-youtube-dislike.background.js
@@ -1,4 +1,4 @@
-const apiUrl = "https://return-youtube-dislike-api.azurewebsites.net";
+const apiUrl = "https://returnyoutubedislikeapi.com";
// Security token causes issues if extension is reloaded/updated while several tabs are open
// const securityToken = Math.random().toString(36).substring(2, 15);
diff --git a/Extensions/firefox/manifest.json b/Extensions/firefox/manifest.json
index f01886e..cb35138 100644
--- a/Extensions/firefox/manifest.json
+++ b/Extensions/firefox/manifest.json
@@ -1,7 +1,7 @@
{
"name": "Return YouTube Dislike",
"description": "Returns ability to see dislikes",
- "version": "0.0.0.9",
+ "version": "1.0.0.2",
"manifest_version": 2,
"background": {
"scripts": ["return-youtube-dislike.background.js"]
diff --git a/Extensions/firefox/popup.html b/Extensions/firefox/popup.html
index e6734a3..e5aa87e 100644
--- a/Extensions/firefox/popup.html
+++ b/Extensions/firefox/popup.html
@@ -18,7 +18,7 @@
-
+
diff --git a/Extensions/firefox/return-youtube-dislike.background.js b/Extensions/firefox/return-youtube-dislike.background.js
index 57d3ab4..315f890 100644
--- a/Extensions/firefox/return-youtube-dislike.background.js
+++ b/Extensions/firefox/return-youtube-dislike.background.js
@@ -1,4 +1,4 @@
-const apiUrl = "https://return-youtube-dislike-api.azurewebsites.net";
+const apiUrl = "https://returnyoutubedislikeapi.com";
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.message === "get_auth_token") {
diff --git a/Extensions/firefox/return-youtube-dislike.script.js b/Extensions/firefox/return-youtube-dislike.script.js
index 293388b..b7a7cf6 100644
--- a/Extensions/firefox/return-youtube-dislike.script.js
+++ b/Extensions/firefox/return-youtube-dislike.script.js
@@ -236,37 +236,26 @@ function createRateBar(likes, dislikes) {
}
}
-// function sendVideoIds() {
-// const ids = Array.from(
-// document.getElementsByClassName(
-// "yt-simple-endpoint ytd-compact-video-renderer"
-// )
-// )
-// .concat(
-// Array.from(
-// document.getElementsByClassName("yt-simple-endpoint ytd-thumbnail")
-// )
-// )
-// .filter((x) => x.href && x.href.indexOf("/watch?v=") > 0)
-// .map((x) => getVideoId(x.href));
-// browser.runtime.sendMessage({
-// message: "send_links",
-// videoIds: ids,
-// });
-// }
+function sendVideoIds() {
+ const ids = Array.from(
+ document.getElementsByClassName(
+ "yt-simple-endpoint ytd-compact-video-renderer"
+ )
+ )
+ .concat(
+ Array.from(
+ document.getElementsByClassName("yt-simple-endpoint ytd-thumbnail")
+ )
+ )
+ .filter((x) => x.href && x.href.indexOf("/watch?v=") > 0)
+ .map((x) => getVideoId(x.href));
+ browser.runtime.sendMessage({
+ message: "send_links",
+ videoIds: ids,
+ });
+}
setEventListeners();
-// document.addEventListener("yt-navigate-finish", function (event) {
-// if (jsInitChecktimer !== null) clearInterval(jsInitChecktimer);
-// window.returnDislikeButtonlistenersSet = false;
-// setEventListeners();
-// });
+setTimeout(() => sendVideoIds(), 1500);
-// window.onscrollend = () => {
-// sendVideoIds();
-// };
-//
-// setTimeout(() => sendVideoIds(), 1500);
-
-//window.addEventListener("hashchange", setEventListeners, false);