diff --git a/package-lock.json b/package-lock.json index 02765509..891e1389 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.7", + "@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.7", - "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.7.tgz", - "integrity": "sha512-qmakLnRnNJ/CAyDO9ey0ihn71YWoyZfRFxF78ylofA5A+ghBXg4cVVY92iKDN3pivtT2kouLiKDRWgazYKqrOQ==", + "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.7", - "resolved": "https://registry.npmjs.org/@ajayyy/maze-utils/-/maze-utils-1.1.7.tgz", - "integrity": "sha512-qmakLnRnNJ/CAyDO9ey0ihn71YWoyZfRFxF78ylofA5A+ghBXg4cVVY92iKDN3pivtT2kouLiKDRWgazYKqrOQ==" + "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 355ff258..5d126a9b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "background.js", "dependencies": { - "@ajayyy/maze-utils": "1.1.7", + "@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/_locales/en/messages.json b/public/_locales/en/messages.json index 9a31e87a..77d68cb7 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -797,6 +797,10 @@ "message": "Show an icon when a video is entirely an advertisement", "description": "Referring to the category pill that is now shown on videos that are entirely sponsor or entirely selfpromo" }, + "fullVideoLabelsOnThumbnails": { + "message": "Show labels on video thumbnails as well", + "description": "Referring to the category pill that is shown on videos that are entirely sponsor or entirely selfpromo on recommended videos, in searches or on the homepage." + }, "previewColor": { "message": "Unsubmitted Color", "description": "Referring to submissions that have not been sent to the server yet." diff --git a/public/content.css b/public/content.css index 415d5f43..bea78b17 100644 --- a/public/content.css +++ b/public/content.css @@ -803,3 +803,44 @@ input::-webkit-inner-spin-button { color: #fff; opacity: .7; } + +/* full video labels on thumbnails */ +.sponsorThumbnailLabel { + display: none; + position: absolute; + top: 0; + left: 0; + padding: 0.5em; + margin: 0.5em; + border-radius: 2em; + z-index: 1000; + background-color: var(--category-color, #000); + opacity: 0.7; + box-shadow: 0 0 8px 2px #333; + font-size: 10px; +} + +.sponsorThumbnailLabel.sponsorThumbnailLabelVisible { + display: flex; +} + +.sponsorThumbnailLabel svg { + height: 2em; + fill: var(--category-text-color, #fff); +} + +.sponsorThumbnailLabel span { + display: none; + padding-left: 0.25em; + font-size: 1.5em; + color: var(--category-text-color, #fff); +} + +.sponsorThumbnailLabel:hover { + border-radius: 0.25em; + opacity: 1; +} + +.sponsorThumbnailLabel:hover span { + display: inline; +} \ No newline at end of file diff --git a/public/options/options.css b/public/options/options.css index 00035cd0..0ec58be6 100644 --- a/public/options/options.css +++ b/public/options/options.css @@ -696,4 +696,9 @@ svg { .upsellButton { cursor: pointer; vertical-align: middle; +} + +.no-bottom-border { + border: none !important; + padding: 20px 0px 0px 0px !important; } \ No newline at end of file diff --git a/public/options/options.html b/public/options/options.html index cd584374..dfaf7856 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -78,7 +78,7 @@ -
+
+
+
+ + +
+
+