aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-03-17 23:41:59 -0400
committerAjay <[email protected]>2023-03-17 23:41:59 -0400
commit2374f4d31b7df6ada17aeb02e9037dc9df95a544 (patch)
tree4b867307e5bb9d4bc4ac6687984eb640fb0f468f
parent52f58b8ea481af92360c7fb783b7f44023600fdc (diff)
downloadSponsorBlock-2374f4d31b7df6ada17aeb02e9037dc9df95a544.tar.gz
SponsorBlock-2374f4d31b7df6ada17aeb02e9037dc9df95a544.zip
Fix invidious support for thumbnail labels
-rw-r--r--package-lock.json14
-rw-r--r--package.json2
-rw-r--r--public/content.css1
-rw-r--r--src/utils/thumbnails.ts2
4 files changed, 10 insertions, 9 deletions
diff --git a/package-lock.json b/package-lock.json
index 5901c0df..b0a7b007 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27,7 +27,7 @@
],
"license": "LGPL-3.0-or-later",
"dependencies": {
- "@ajayyy/maze-utils": "^1.1.9",
+ "@ajayyy/maze-utils": "^1.1.10",
"content-scripts-register-polyfill": "^4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
@@ -67,9 +67,9 @@
}
},
"node_modules/@ajayyy/maze-utils": {
- "version": "1.1.9",
- "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.9.tgz",
- "integrity": "sha512-fU85QRrSBAP31ppFs+Gzfm9vHx+4wFFDr8pSoT747+w6L6cMPlubWG0lFquRTjffStfZlw33kGJOSuwXNiYbAA==",
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.10.tgz",
+ "integrity": "sha512-JjiPEloeq5WjvjAWIpVEI+5g/pjKEJNtx/uM2ujp9oiT05+c9wKJGqIEC1kb8UeoXSkqrIaKy6b5RMabdy/dRQ==",
"funding": [
{
"type": "individual",
@@ -13858,9 +13858,9 @@
},
"dependencies": {
"@ajayyy/maze-utils": {
- "version": "1.1.9",
- "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.9.tgz",
- "integrity": "sha512-fU85QRrSBAP31ppFs+Gzfm9vHx+4wFFDr8pSoT747+w6L6cMPlubWG0lFquRTjffStfZlw33kGJOSuwXNiYbAA=="
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.10.tgz",
+ "integrity": "sha512-JjiPEloeq5WjvjAWIpVEI+5g/pjKEJNtx/uM2ujp9oiT05+c9wKJGqIEC1kb8UeoXSkqrIaKy6b5RMabdy/dRQ=="
},
"@ampproject/remapping": {
"version": "2.2.0",
diff --git a/package.json b/package.json
index 555a0e4c..eb3f9e14 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "",
"main": "background.js",
"dependencies": {
- "@ajayyy/maze-utils": "^1.1.9",
+ "@ajayyy/maze-utils": "^1.1.10",
"content-scripts-register-polyfill": "^4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
diff --git a/public/content.css b/public/content.css
index c0a6f3ff..bea78b17 100644
--- a/public/content.css
+++ b/public/content.css
@@ -817,6 +817,7 @@ input::-webkit-inner-spin-button {
background-color: var(--category-color, #000);
opacity: 0.7;
box-shadow: 0 0 8px 2px #333;
+ font-size: 10px;
}
.sponsorThumbnailLabel.sponsorThumbnailLabelVisible {
diff --git a/src/utils/thumbnails.ts b/src/utils/thumbnails.ts
index 4aec8d39..e78eb9c5 100644
--- a/src/utils/thumbnails.ts
+++ b/src/utils/thumbnails.ts
@@ -114,7 +114,7 @@ export function setupThumbnailPageLoadListener(): void {
insertSBIconDefinition();
// Label thumbnails on load if on Invidious (wait for variable initialization before checking)
- waitFor(() => isOnInvidious() !== undefined).then(() => {
+ waitFor(() => isOnInvidious() !== null).then(() => {
if (isOnInvidious()) newThumbnails();
});
};