mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 10:21:22 +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
@@ -48,20 +48,6 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
||||
}
|
||||
toSend = [];
|
||||
}
|
||||
} else if (request.message == "fetch_from_youtube") {
|
||||
fetch(`https://www.youtube.com/watch?v=${request.videoId}`, {
|
||||
method: "GET",
|
||||
})
|
||||
.then((response) => response.text())
|
||||
.then((text) => {
|
||||
let result = getDislikesFromYoutubeResponse(text);
|
||||
sendUserSubmittedStatisticsToApi({
|
||||
...result,
|
||||
videoId: request.videoId,
|
||||
});
|
||||
sendResponse(result);
|
||||
});
|
||||
return true;
|
||||
} else if (request.message == "register") {
|
||||
register();
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user