Fix invidious support for thumbnail labels

This commit is contained in:
Ajay
2023-03-17 23:41:59 -04:00
parent 52f58b8ea4
commit 2374f4d31b
4 changed files with 10 additions and 9 deletions

14
package-lock.json generated
View File

@@ -27,7 +27,7 @@
], ],
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
"dependencies": { "dependencies": {
"@ajayyy/maze-utils": "^1.1.9", "@ajayyy/maze-utils": "^1.1.10",
"content-scripts-register-polyfill": "^4.0.2", "content-scripts-register-polyfill": "^4.0.2",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0" "react-dom": "^18.2.0"
@@ -67,9 +67,9 @@
} }
}, },
"node_modules/@ajayyy/maze-utils": { "node_modules/@ajayyy/maze-utils": {
"version": "1.1.9", "version": "1.1.10",
"resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.9.tgz", "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.10.tgz",
"integrity": "sha512-fU85QRrSBAP31ppFs+Gzfm9vHx+4wFFDr8pSoT747+w6L6cMPlubWG0lFquRTjffStfZlw33kGJOSuwXNiYbAA==", "integrity": "sha512-JjiPEloeq5WjvjAWIpVEI+5g/pjKEJNtx/uM2ujp9oiT05+c9wKJGqIEC1kb8UeoXSkqrIaKy6b5RMabdy/dRQ==",
"funding": [ "funding": [
{ {
"type": "individual", "type": "individual",
@@ -13858,9 +13858,9 @@
}, },
"dependencies": { "dependencies": {
"@ajayyy/maze-utils": { "@ajayyy/maze-utils": {
"version": "1.1.9", "version": "1.1.10",
"resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.9.tgz", "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.10.tgz",
"integrity": "sha512-fU85QRrSBAP31ppFs+Gzfm9vHx+4wFFDr8pSoT747+w6L6cMPlubWG0lFquRTjffStfZlw33kGJOSuwXNiYbAA==" "integrity": "sha512-JjiPEloeq5WjvjAWIpVEI+5g/pjKEJNtx/uM2ujp9oiT05+c9wKJGqIEC1kb8UeoXSkqrIaKy6b5RMabdy/dRQ=="
}, },
"@ampproject/remapping": { "@ampproject/remapping": {
"version": "2.2.0", "version": "2.2.0",

View File

@@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "background.js", "main": "background.js",
"dependencies": { "dependencies": {
"@ajayyy/maze-utils": "^1.1.9", "@ajayyy/maze-utils": "^1.1.10",
"content-scripts-register-polyfill": "^4.0.2", "content-scripts-register-polyfill": "^4.0.2",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0" "react-dom": "^18.2.0"

View File

@@ -817,6 +817,7 @@ input::-webkit-inner-spin-button {
background-color: var(--category-color, #000); background-color: var(--category-color, #000);
opacity: 0.7; opacity: 0.7;
box-shadow: 0 0 8px 2px #333; box-shadow: 0 0 8px 2px #333;
font-size: 10px;
} }
.sponsorThumbnailLabel.sponsorThumbnailLabelVisible { .sponsorThumbnailLabel.sponsorThumbnailLabelVisible {

View File

@@ -114,7 +114,7 @@ export function setupThumbnailPageLoadListener(): void {
insertSBIconDefinition(); insertSBIconDefinition();
// Label thumbnails on load if on Invidious (wait for variable initialization before checking) // Label thumbnails on load if on Invidious (wait for variable initialization before checking)
waitFor(() => isOnInvidious() !== undefined).then(() => { waitFor(() => isOnInvidious() !== null).then(() => {
if (isOnInvidious()) newThumbnails(); if (isOnInvidious()) newThumbnails();
}); });
}; };