First off - thanks for making this extension!
I was previously using the invidious
api key to avoid needing to set up my own one, but noticed that rating bars stopped appearing recently. Looks like this is because the code in background.js
hits invidio.us
: https://github.com/elliotwaite/thumbnail-rating-bar-for-youtube/blob/master/extension/background.js#L17, which according to the project homepage is no longer active.
From the page, it also looks like there are a bunch of mirrors, although it's unclear who runs them. I'm not sure if there's a single canonical replacement, but I tried locally replacing that api call with one to invidious.xyz, and it appears to work:
diff --git a/extension/background.js b/extension/background.js
index afb3c12..5e008a5 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -14,7 +14,7 @@ chrome.runtime.onMessage.addListener(
let promises = []
if (youtubeApiKey === 'invidious') {
for (let videoId of message.videoIds) {
- let promise = fetch(`https://invidio.us/api/v1/videos/${videoId}?fields=likeCount,dislikeCount`)
+ let promise = fetch(`https://invidious.xyz/api/v1/videos/${videoId}?fields=likeCount,dislikeCount`)
.then(response => response.json())
.then(data => {
combined_data.items.push({
If this seems like a suitable fix, I'm happy to create a PR with this diff - but wanted to check here in case someone with more knowledge about these mirrors has a better idea.