From f94e360d94315fdc2d38c190c61bbe3abb963a1a Mon Sep 17 00:00:00 2001 From: AndrewUnderscore <71723495+UnderscoreX5@users.noreply.github.com> Date: Mon, 20 Dec 2021 15:39:02 +0100 Subject: [PATCH 01/10] add link to redirect to security faq on website Makes the security faq more accessible to people that don't really know much about github. Wording needs to be yet decided --- Website/pages/faq.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Website/pages/faq.vue b/Website/pages/faq.vue index 71d2080..c247d16 100644 --- a/Website/pages/faq.vue +++ b/Website/pages/faq.vue @@ -54,6 +54,12 @@ export default { 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.", }, + { + question: + "What data do you collect and how is it treated?", + answer: + "to be added + link", + }, ], }), }; From 03239e5380c36e6c4b0fa79ffdeee5fe4dc09263 Mon Sep 17 00:00:00 2001 From: AndrewUnderscore <71723495+UnderscoreX5@users.noreply.github.com> Date: Wed, 22 Dec 2021 14:21:14 +0100 Subject: [PATCH 02/10] added answer --- Website/pages/faq.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/pages/faq.vue b/Website/pages/faq.vue index c247d16..4f50ae3 100644 --- a/Website/pages/faq.vue +++ b/Website/pages/faq.vue @@ -58,7 +58,7 @@ export default { question: "What data do you collect and how is it treated?", answer: - "to be added + link", + "The extension only collects data that is strictly necessary for it to function properly, such as IP address or ID of the video you're watching. None of your data will ever be sold to 3rd parties. If you would like to know more about how we handle security and privacy check out our [add link here to security-faq.md]", }, ], }), From 6b71339b77422cf9cea8a6fa419bc6ba5edbb118 Mon Sep 17 00:00:00 2001 From: Camille Scholtz Date: Sat, 15 Jan 2022 00:38:02 +0100 Subject: [PATCH 03/10] Debug file does not exist, remove from webpack --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index c694aac..2e6d80f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,7 @@ const path = require("path"); const CopyPlugin = require("copy-webpack-plugin"); const FileManagerPlugin = require("filemanager-webpack-plugin"); -const entries = ['ryd.content-script', 'ryd.background', 'popup', 'debug']; +const entries = ['ryd.content-script', 'ryd.background', 'popup']; const ignorePatterns = [ "**/manifest-**", From 728680f84b06ac0ed5bca3440f75b7bad6bcd1de Mon Sep 17 00:00:00 2001 From: mphelp Date: Sat, 15 Jan 2022 11:39:52 -0600 Subject: [PATCH 04/10] Fix Clips functionality --- Extensions/UserScript/Return Youtube Dislike.user.js | 12 ++++-------- Extensions/combined/manifest-chrome.json | 6 +----- Extensions/combined/manifest-firefox.json | 2 +- Extensions/combined/ryd.content-script.js | 4 +--- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/Extensions/UserScript/Return Youtube Dislike.user.js b/Extensions/UserScript/Return Youtube Dislike.user.js index 71e926d..88fbe4b 100644 --- a/Extensions/UserScript/Return Youtube Dislike.user.js +++ b/Extensions/UserScript/Return Youtube Dislike.user.js @@ -7,7 +7,8 @@ // @description Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/ // @icon https://github.com/Anarios/return-youtube-dislike/raw/main/Icons/Return%20Youtube%20Dislike%20-%20Transparent.png // @author Anarios & JRWR -// @match *://*.youtube.com/* +// @match *://*.youtube.com/watch* +// @match *://*.youtube.com/clip* // @exclude *://music.youtube.com/* // @exclude *://*.music.youtube.com/* // @compatible chrome @@ -348,13 +349,8 @@ function setEventListeners(evt) { } } - if ( - window.location.href.indexOf("watch?") >= 0 || - (isMobile && evt?.indexOf("watch?") >= 0) - ) { - cLog("Setting up..."); - jsInitChecktimer = setInterval(checkForJS_Finish, 111); - } + cLog("Setting up..."); + jsInitChecktimer = setInterval(checkForJS_Finish, 111); } (function () { diff --git a/Extensions/combined/manifest-chrome.json b/Extensions/combined/manifest-chrome.json index e0a0785..c8edb98 100644 --- a/Extensions/combined/manifest-chrome.json +++ b/Extensions/combined/manifest-chrome.json @@ -19,11 +19,7 @@ }, "content_scripts": [ { - "matches": [ - "*://youtube.com/*", - "*://www.youtube.com/*", - "*://m.youtube.com/*" - ], + "matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"], "exclude_matches": ["*://*.music.youtube.com/*"], "js": ["ryd.content-script.js"], "css": ["content-style.css"] diff --git a/Extensions/combined/manifest-firefox.json b/Extensions/combined/manifest-firefox.json index c60a8aa..63629a3 100644 --- a/Extensions/combined/manifest-firefox.json +++ b/Extensions/combined/manifest-firefox.json @@ -16,7 +16,7 @@ }, "content_scripts": [ { - "matches": ["*://*.youtube.com/*"], + "matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"], "exclude_matches": ["*://*.music.youtube.com/*"], "run_at": "document_idle", "css": ["content-style.css"], diff --git a/Extensions/combined/ryd.content-script.js b/Extensions/combined/ryd.content-script.js index 3614fe3..880d25c 100644 --- a/Extensions/combined/ryd.content-script.js +++ b/Extensions/combined/ryd.content-script.js @@ -44,9 +44,7 @@ function setEventListeners(evt) { } } - if (window.location.href.indexOf("watch?") >= 0) { - jsInitChecktimer = setInterval(checkForJS_Finish, 111); - } + jsInitChecktimer = setInterval(checkForJS_Finish, 111); } setEventListeners(); From a0b8ad03281a0bba93f9429eeb8e33551bc482f3 Mon Sep 17 00:00:00 2001 From: mphelp Date: Sun, 16 Jan 2022 15:24:43 -0600 Subject: [PATCH 05/10] Keep existing generic url matching scheme --- Extensions/UserScript/Return Youtube Dislike.user.js | 3 +-- Extensions/combined/manifest-chrome.json | 6 +++++- Extensions/combined/manifest-firefox.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Extensions/UserScript/Return Youtube Dislike.user.js b/Extensions/UserScript/Return Youtube Dislike.user.js index 88fbe4b..733c744 100644 --- a/Extensions/UserScript/Return Youtube Dislike.user.js +++ b/Extensions/UserScript/Return Youtube Dislike.user.js @@ -7,8 +7,7 @@ // @description Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/ // @icon https://github.com/Anarios/return-youtube-dislike/raw/main/Icons/Return%20Youtube%20Dislike%20-%20Transparent.png // @author Anarios & JRWR -// @match *://*.youtube.com/watch* -// @match *://*.youtube.com/clip* +// @match *://*.youtube.com/* // @exclude *://music.youtube.com/* // @exclude *://*.music.youtube.com/* // @compatible chrome diff --git a/Extensions/combined/manifest-chrome.json b/Extensions/combined/manifest-chrome.json index c8edb98..e0a0785 100644 --- a/Extensions/combined/manifest-chrome.json +++ b/Extensions/combined/manifest-chrome.json @@ -19,7 +19,11 @@ }, "content_scripts": [ { - "matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"], + "matches": [ + "*://youtube.com/*", + "*://www.youtube.com/*", + "*://m.youtube.com/*" + ], "exclude_matches": ["*://*.music.youtube.com/*"], "js": ["ryd.content-script.js"], "css": ["content-style.css"] diff --git a/Extensions/combined/manifest-firefox.json b/Extensions/combined/manifest-firefox.json index 63629a3..c60a8aa 100644 --- a/Extensions/combined/manifest-firefox.json +++ b/Extensions/combined/manifest-firefox.json @@ -16,7 +16,7 @@ }, "content_scripts": [ { - "matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"], + "matches": ["*://*.youtube.com/*"], "exclude_matches": ["*://*.music.youtube.com/*"], "run_at": "document_idle", "css": ["content-style.css"], From 2261806e4f697bc276abff1368f1b4a081edda53 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Mon, 17 Jan 2022 11:30:17 +0000 Subject: [PATCH 06/10] Ask for steps to reproduce in while reporting --- .github/ISSUE_TEMPLATE/bug.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index f889936..2bf949b 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -47,3 +47,12 @@ body: value: "A bug happened!" validations: required: true +- type: textarea + attributes: + label: How to reproduce/recreate? + description: Detailed steps to reproduce/recreate it. + placeholder: "We need to be able to reproduce/recreate that bug/event in order to fix it. Please write the steps in detail." + value: "Tell us how it happened with detailed steps for us." + validations: + required: true + From 268b1f2ded59712de0277c2f938a3cb669747f0f Mon Sep 17 00:00:00 2001 From: Joel Date: Sun, 23 Jan 2022 00:36:04 -0500 Subject: [PATCH 07/10] bring OG text in line with current project status --- Website/nuxt.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/nuxt.config.js b/Website/nuxt.config.js index c5b200d..a3550fb 100644 --- a/Website/nuxt.config.js +++ b/Website/nuxt.config.js @@ -16,7 +16,7 @@ export default { hid: "description", name: "description", content: - "An extension that returns dislike statistics to YouTube. For now, it only works if a video had public display of dislikes enabled before YouTube removed dislike stats. ", + "An extension that returns dislike statistics to YouTube using a combination of scraped dislike stats and estimates extrapolated from extension user data.", }, { hid: "og:image", name: "og:image", content: "/logo.png" }, { hid: "theme-color", name: "theme-color", content: "#ff0000" }, From d87f077c768d795c05c886f00dab02e6c715c80f Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 29 Jan 2022 10:48:28 -0700 Subject: [PATCH 08/10] add way to get dislikes manually from website --- Website/pages/index.vue | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Website/pages/index.vue b/Website/pages/index.vue index cde2381..93f3b96 100644 --- a/Website/pages/index.vue +++ b/Website/pages/index.vue @@ -54,6 +54,11 @@ +
+ Get dislikes manually: +

+
+
@@ -111,6 +116,18 @@ export default { ], }; }, + mounted() { + const YOUTUBE_REGEX = /(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/)([^&?%#\/\n]*)/; + let lastVideoId = ""; + window.oninput = (e) => { + const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value; + if (videoId !== lastVideoId && videoId.length === 11) { + fetch("https://returnyoutubedislikeapi.com/votes?videoId=" + (lastVideoId = videoId)) + .then(resp => resp.json()) + .then(data => document.getElementById("output").innerText = "Likes=" + data.likes + " Dislikes=" + data.dislikes); + } + }; + }, }; @@ -120,6 +137,10 @@ export default { height: max-content; } +input { + background-color: #999999; +} + @media (max-width: 767px) { .sponsor { margin: 0.5rem; From 8fa68e0c119aa1a5e1e3113b073eb6baf53180d3 Mon Sep 17 00:00:00 2001 From: Dmitrii Selivanov Date: Fri, 4 Feb 2022 21:28:28 +0300 Subject: [PATCH 09/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8179e5b..05b7662 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ You can learn more at our website at: [returnyoutubedislike.com](https://www.ret Third-party use of this open API is allowed with the following restrictions: -- **Attribution**: This project should be clearly attributed with either a link to this repo or a link to [returnyoutubedislike.com](https://returnyoutubedislike.com/). +- **Attribution**: This project should be clearly attributed with either a link to [returnyoutubedislike.com](https://returnyoutubedislike.com/). - **Rate Limiting**: There are per client rate limits in place of 100 per minute and 10'000 per day. This will return a *429* status code indicating that your application should back off. The API is accessible over the following base URL: From 4b218640796c5639916edfb0476b4a1355a782af Mon Sep 17 00:00:00 2001 From: Dmitrii Selivanov Date: Fri, 4 Feb 2022 21:28:47 +0300 Subject: [PATCH 10/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05b7662..369af4e 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ You can learn more at our website at: [returnyoutubedislike.com](https://www.ret Third-party use of this open API is allowed with the following restrictions: -- **Attribution**: This project should be clearly attributed with either a link to [returnyoutubedislike.com](https://returnyoutubedislike.com/). +- **Attribution**: This project should be clearly attributed with a link to [returnyoutubedislike.com](https://returnyoutubedislike.com/). - **Rate Limiting**: There are per client rate limits in place of 100 per minute and 10'000 per day. This will return a *429* status code indicating that your application should back off. The API is accessible over the following base URL: