-
+
diff --git a/StaticSiteOld/index.html b/StaticSiteOld/index.html
index 23836cd..48a185d 100644
--- a/StaticSiteOld/index.html
+++ b/StaticSiteOld/index.html
@@ -171,7 +171,7 @@
extension users to derive actual dislike count on a video
- Youtube has removed dislike statistics. Since this was a very
+ YouTube has removed dislike statistics. Since this was a very
usefull feature - this extension aims to return this functionality
to users.
@@ -181,7 +181,7 @@
We're considering integration with
- Youtube Vanced mobile app, if
+ YouTube Vanced mobile app, if
the devs will want to utilize our API
Browser extension and an API that show you dislikes on youtube
@@ -15,7 +15,7 @@
mdi-github
- Github
+ GitHub
diff --git a/Website/pages/links.vue b/Website/pages/links.vue
index a5042df..d8ac074 100644
--- a/Website/pages/links.vue
+++ b/Website/pages/links.vue
@@ -9,7 +9,7 @@
mdi-github
- Github
+ GitHub
@@ -47,4 +47,4 @@ export default {
}
}
}
-
\ No newline at end of file
+
--
cgit v1.2.3
From ae1072ac675ec65beba882a096009c7f9f715712 Mon Sep 17 00:00:00 2001
From: DARKDRAGON532 <69623818+DARKDRAGON532@users.noreply.github.com>
Date: Tue, 30 Nov 2021 21:16:00 +0530
Subject: fixed userscript
---
.../UserScript/Return Youtube Dislike.user.js | 83 ++++++----------------
1 file changed, 20 insertions(+), 63 deletions(-)
diff --git a/Extensions/UserScript/Return Youtube Dislike.user.js b/Extensions/UserScript/Return Youtube Dislike.user.js
index 18b6094..6a23354 100644
--- a/Extensions/UserScript/Return Youtube Dislike.user.js
+++ b/Extensions/UserScript/Return Youtube Dislike.user.js
@@ -19,40 +19,6 @@ function cLog(text, subtext = "") {
console.log(`[Return Youtube Dislikes] ${text} ${subtext}`);
}
-function doXHR(opts) {
- if (typeof GM_xmlhttpRequest === "function") {
- return GM_xmlhttpRequest(opts);
- }
- if (typeof GM !== "undefined") {
- /*This will prevent from throwing "Uncaught ReferenceError: GM is not defined"*/ if (
- typeof GM.xmlHttpRequest === "function"
- ) {
- return GM.xmlHttpRequest(opts);
- }
- }
-
- console.warn(
- "Unable to detect UserScript plugin, falling back to native XHR."
- );
-
- const xhr = new XMLHttpRequest();
-
- xhr.open(opts.method, opts.url, true);
- if (opts.responseType === "text") {
- xhr.onload = () =>
- opts.onload({
- response: xhr.responseText,
- });
- } else {
- xhr.onload = () =>
- opts.onload({
- response: JSON.parse(xhr.responseText),
- });
- }
- xhr.onerror = (err) => console.error("XHR Failed", err);
- xhr.send();
-}
-
function getButtons() {
if (document.getElementById("menu-container").offsetParent === null) {
return document.querySelector("ytd-menu-renderer.ytd-watch-metadata > div");
@@ -154,42 +120,33 @@ function createRateBar(likes, dislikes) {
function setState() {
cLog("Fetching votes...");
let statsSet = false;
- doXHR({
- method: "GET",
- responseType: "text",
- url: `https://www.youtube.com/watch?v=${getVideoId()}`,
- onload: function (xhr) {
- if (xhr) {
- let result = getDislikesFromYoutubeResponse(xhr.response);
- if (result) {
- cLog("response from youtube:");
- cLog(JSON.stringify(result));
- if (result.likes || result.dislikes) {
- const formattedDislike = numberFormat(result.dislikes);
- setDislikes(formattedDislike);
- createRateBar(result.likes, result.dislikes);
- statsSet = true;
- }
+
+ fetch(`https://www.youtube.com/watch?v=${getVideoId()}`).then(response => {
+ response.text().then(text => {
+ let result = getDislikesFromYoutubeResponse(text)
+ if (result) {
+ cLog("response from youtube:");
+ cLog(JSON.stringify(result));
+ if (result.likes || result.dislikes) {
+ const formattedDislike = numberFormat(result.dislikes);
+ setDislikes(formattedDislike);
+ createRateBar(result.likes, result.dislikes);
+ statsSet = true;
}
}
- },
- });
+ })
+ })
- doXHR({
- method: "GET",
- responseType: "json",
- url:
- "https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=" +
- getVideoId(),
- onload: function (xhr) {
- if (xhr != undefined && !statsSet) {
- const { dislikes, likes } = xhr.response;
+ fetch(`https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=${getVideoId()}`).then(response => {
+ response.json().then(json => {
+ if (json && !statsSet) {
+ const { dislikes, likes } = json;
cLog(`Received count: ${dislikes}`);
setDislikes(numberFormat(dislikes));
createRateBar(likes, dislikes);
}
- },
- });
+ })
+ })
}
function likeClicked() {
--
cgit v1.2.3
From cdb784e387f592bdbf06f5a9c261dc77c5654ef1 Mon Sep 17 00:00:00 2001
From: DARKDRAGON532 <69623818+DARKDRAGON532@users.noreply.github.com>
Date: Tue, 30 Nov 2021 21:16:30 +0530
Subject: formatted with prettier
---
Extensions/UserScript/Return Youtube Dislike.user.js | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/Extensions/UserScript/Return Youtube Dislike.user.js b/Extensions/UserScript/Return Youtube Dislike.user.js
index 6a23354..1a2d744 100644
--- a/Extensions/UserScript/Return Youtube Dislike.user.js
+++ b/Extensions/UserScript/Return Youtube Dislike.user.js
@@ -121,9 +121,9 @@ function setState() {
cLog("Fetching votes...");
let statsSet = false;
- fetch(`https://www.youtube.com/watch?v=${getVideoId()}`).then(response => {
- response.text().then(text => {
- let result = getDislikesFromYoutubeResponse(text)
+ fetch(`https://www.youtube.com/watch?v=${getVideoId()}`).then((response) => {
+ response.text().then((text) => {
+ let result = getDislikesFromYoutubeResponse(text);
if (result) {
cLog("response from youtube:");
cLog(JSON.stringify(result));
@@ -134,19 +134,21 @@ function setState() {
statsSet = true;
}
}
- })
- })
+ });
+ });
- fetch(`https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=${getVideoId()}`).then(response => {
- response.json().then(json => {
+ fetch(
+ `https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=${getVideoId()}`
+ ).then((response) => {
+ response.json().then((json) => {
if (json && !statsSet) {
const { dislikes, likes } = json;
cLog(`Received count: ${dislikes}`);
setDislikes(numberFormat(dislikes));
createRateBar(likes, dislikes);
}
- })
- })
+ });
+ });
}
function likeClicked() {
--
cgit v1.2.3
From f1c4029075ea1461c6d32102361b789197a6d0c2 Mon Sep 17 00:00:00 2001
From: Henry Wilkinson
Date: Tue, 30 Nov 2021 11:46:52 -0500
Subject: Improves FAQ wording
Some minor grammar fixes and sentence improvements.
---
Website/pages/faq.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Website/pages/faq.vue b/Website/pages/faq.vue
index 375462a..5e40638 100644
--- a/Website/pages/faq.vue
+++ b/Website/pages/faq.vue
@@ -21,23 +21,23 @@
data: () => ({
items: [
{
- question: "Where does extension get data?",
- answer: "Combination of GoogleAPI data and scraped data. We save all available data to our DB for it to be available after google shuts down dislike counts in their API."
+ question: "Where does the extension get its data?",
+ answer: "A combination of Google's API data and scraped data. We save all available data to our DB so it can be made available after Google removes dislike counts from their API."
},
{
- question: "Video dislike count doesn't update",
- answer: "Right now video dislikes are cached, and arent updated very frequenly. Once in 2-3 days, not more often Yeah, it's not ideal, but it is what it is. Working on improving how often we can update them"
+ question: "Why isn't the dislike count updating?",
+ answer: "Right now video dislikes are cached and they arent updated very frequenly. Currently this is set to update once every 2–3 days. This isn't ideal and we are working on improving how often we can update them"
},
{
question: "How does this work?",
- answer: "The extension collects the video id of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then stores the data in a database for caching (cached for around 2-3 days) and archiving purposes and returns it to you. The extension then displays the dislikes to you."
+ answer: "The extension collects the video ID of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then store it in the database for caching (cached for around 2-3 days) and archiving purposes, and returns it to you. The extension then displays the dislike count and ratio on the page."
},
{
question: "What will happen after the YouTube API stops returning the dislike count?",
- answer: "The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives."
+ answer: "The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data, and estimates based on view/like ratios for videos whose dislikes weren't archived as well as outdated dislike count archives."
},
],
}),
}
-
\ No newline at end of file
+
--
cgit v1.2.3
From cecb46abd1014505c85d4c7a438fb8c0232ffe26 Mon Sep 17 00:00:00 2001
From: Danny Hendrix
Date: Tue, 30 Nov 2021 11:21:11 -0800
Subject: Use path for key
---
Website/layouts/default.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue
index 4d1769d..ac84a9c 100644
--- a/Website/layouts/default.vue
+++ b/Website/layouts/default.vue
@@ -3,7 +3,7 @@
-
+
{{ link.name }}
--
cgit v1.2.3
From 542648025c695160966b49141d67b3e3ca9fb5a9 Mon Sep 17 00:00:00 2001
From: SuperStormer <41648788+SuperStormer@users.noreply.github.com>
Date: Tue, 30 Nov 2021 15:36:02 -0500
Subject: oops
---
Extensions/UserScript/Return Youtube Dislike.user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Extensions/UserScript/Return Youtube Dislike.user.js b/Extensions/UserScript/Return Youtube Dislike.user.js
index d41f36e..03278a7 100644
--- a/Extensions/UserScript/Return Youtube Dislike.user.js
+++ b/Extensions/UserScript/Return Youtube Dislike.user.js
@@ -4,7 +4,7 @@
// @version 0.5
// @description Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/
// @author Anarios & JRWR
-// @match *://*.youtube.com/watch*
+// @match *://*.youtube.com/*
// @compatible chrome
// @compatible firefox
// @compatible opera
--
cgit v1.2.3
From 58e62622617e4607a2cbb79789eabb62a4906620 Mon Sep 17 00:00:00 2001
From: mattphelps-8451
Date: Wed, 1 Dec 2021 01:11:52 -0600
Subject: Include Edge and Opera (Chromium browsers) links to compatible Chrome
web store extension
---
Website/pages/install.vue | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Website/pages/install.vue b/Website/pages/install.vue
index 2cb9ffb..c702a36 100644
--- a/Website/pages/install.vue
+++ b/Website/pages/install.vue
@@ -13,10 +13,20 @@
Chrome
+
+ mdi-microsoft-edge
+ Edge
+
+
+
+ mdi-opera
+ Opera
+ mdi-firefox
Firefox
+