mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
Firefox updated to 0.0.0.6
This commit is contained in:
1 parent
62759efb04
commit
5c85cfc425
7 files changed
+209
-73
No files matched your search
@@ -59,7 +59,10 @@ chrome.runtime.onMessageExternal.addListener(
|
||||
.then((response) => response.text())
|
||||
.then((text) => {
|
||||
var result = getDislikesFromYoutubeResponse(text);
|
||||
sendUserSubmittedStatisticsToApi({...result, videoId: request.videoId});
|
||||
sendUserSubmittedStatisticsToApi({
|
||||
...result,
|
||||
videoId: request.videoId,
|
||||
});
|
||||
sendResponse(result);
|
||||
});
|
||||
}
|
||||
@@ -95,7 +98,7 @@ function getDislikesFromYoutubeResponse(htmlResponse) {
|
||||
likes,
|
||||
dislikes: Math.round(dislikes),
|
||||
rating,
|
||||
viewCount: +jsonResult.viewCount
|
||||
viewCount: +jsonResult.viewCount,
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user