YouTube specific fix #36
MasterInQuestion
started this conversation in
uBlock Origin
Replies: 1 comment 1 reply
-
During my observation: Change unrolled: --_w: 0.025em; --_c: #000;
text-shadow:
var(--_w) 0 0 var(--_c),
calc( -1 * var(--_w) ) 0 0 var(--_c),
0 var(--_w) 0 var(--_c),
0 calc( -1 * var(--_w) ) 0 var(--_c) !important; ]] Workaround derived from: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Fix to several problems for viewing videos on YouTube web page (desktop):
www.youtube.com##:matches-path(/^\/+watch\?/i) [target-id="engagement-panel-searchable-transcript"]:style( max-height: none !important; height: 60vh !important; )
www.youtube.com##:matches-path(/^\/+watch\?/i) ytd-transcript-segment-list-renderer:style( height: auto !important; )
www.youtube.com##.player-container, .ytp-player-minimized, ytd-miniplayer, ytd-player, ytd-player video, #thumbnail, #thumbnail-container, yt-img-shadow, yt-image-banner-view-model, .image-wrapper, img:style( border-radius: 0 !important; )
www.youtube.com##.ytp-caption-segment:style( display: inline !important; background-color: rgba( 0, 0, 0, 0.3 ) !important; --_w: 0.025em; --_c: #000; text-shadow: var(--_w) 0 0 var(--_c), calc( -1 * var(--_w) ) 0 0 var(--_c), 0 var(--_w) 0 var(--_c), 0 calc( -1 * var(--_w) ) 0 var(--_c) !important; )
www.youtube.com##.ytp-caption-segment:-moz-only-whitespace
|1| [
"Transcript" area optimized utilization of screen-space:
Adapt "60vh" to else if it doesn't fit.
Further help: https://developer.mozilla.org/en-US/search?q=vh ]
|2| Remove the artificial round-corner artifact casted on video.
|3| Reduce inconsiderate caption blockage of using "background-color" with "display: inline-block"; also empty caption (as in 1:58 below).
Test video: https://www.youtube.com/watch?v=7y_htm0sw-I&t=220

Further optimization note on captions:
Due to the infeasibility of dropping "white-space: pre-wrap":
[ ^ Refer WebVTT implementation details. ]
Apply both leading/trailing whitespace trimming for each line should be desirable.
Beta Was this translation helpful? Give feedback.
All reactions