mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-28 08:57:56 +01:00
Old extensions removed, sponsors added to website
This commit is contained in:
1 parent
2b7ef364ff
commit
3cb09e6fd2
25 files changed
+39
-1551
No files matched your search
@@ -135,29 +135,6 @@ function RYD() {
|
||||
? LIKED_STATE
|
||||
: NEUTRAL_STATE;
|
||||
let statsSet = false;
|
||||
RYDTools.getBrowser().runtime.sendMessage(
|
||||
{
|
||||
message: "fetch_from_youtube",
|
||||
videoId: getVideoId(window.location.href),
|
||||
},
|
||||
function (response) {
|
||||
if (response !== undefined) {
|
||||
cLog("response from youtube:");
|
||||
cLog(JSON.stringify(response));
|
||||
try {
|
||||
if (
|
||||
"likes" in response &&
|
||||
"dislikes" in response &&
|
||||
response.dislikes !== null &&
|
||||
!Number.isNaN(response.dislikes)
|
||||
) {
|
||||
processResponse(response);
|
||||
statsSet = true;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
RYDTools.getBrowser().runtime.sendMessage(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user