Skip to content

Youtube subtitles under video by befreex

Screenshot of Youtube subtitles under video

Details

Authorbefreex

LicenseCC0

Categoryyoutube.com

Created

Updated

Size1.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Shifts youtube subtitles under a video

Notes

Userstyle doesn't have notes.

Source code

// ==UserScript==
// @name            Youtube subtitles under video
// @description     Youtube subtitles under video
// @author          Andrei Balashov
// @namespace       andreib
// @license         CC0
// @version         0.0.1
// ==/UserScript==

@-moz-document url-prefix("https://www.youtube.com/watch") {
/* remove slight darkening when showing player UI */
.ytp-gradient-bottom{
    display: none !important;
}

/* normal */
ytd-watch-flexy[default-layout] ytd-player{
    height: calc(100% + 130px);
}
ytd-watch-flexy[default-layout]  #player{
    margin-bottom: 130px;
}

/* theater mode */
ytd-watch-flexy[theater]:not([fullscreen]) ytd-player{
    height: calc(100% + 150px);
}
ytd-watch-flexy[theater]:not([fullscreen]) #full-bleed-container{
    margin-bottom: 150px;
}

/* fix for theater mode video position */
.html5-video-container > video{
    top: 0px !important;
}

ytd-player{
   background-color: #333;
}


/* TOOLTIP */
ytd-watch-flexy[default-layout] div.ytp-tooltip{
    margin-top: 130px;
}
.ytp-tooltip-title{
    background: #333 !important;
}
.ytp-tooltip-text-wrapper > .ytp-tooltip-text{
    background: #333 !important;
    padding: 0px 10px;
    text-shadow: none !important;
}
}

Reviews

No reviews yet.