Move youtube cleanup to usercontent.css
This commit is contained in:
@@ -63,27 +63,10 @@ Tree Style Tab style rules.
|
|||||||
|
|
||||||
* Ublock Origin Filters
|
* Ublock Origin Filters
|
||||||
|
|
||||||
Cleanup YouTube page by disabling the following elements.
|
Block YouTube video player loading
|
||||||
|
|
||||||
#+BEGIN_SRC css
|
#+BEGIN_SRC css
|
||||||
! Youtube video player
|
|
||||||
||googlevideo.com
|
||googlevideo.com
|
||||||
www.youtube.com###player-theater-container
|
|
||||||
! Video suggestions
|
|
||||||
www.youtube.com###secondary
|
|
||||||
! Homepage recommendations
|
|
||||||
www.youtube.com##.ytd-rich-grid-renderer.style-scope
|
|
||||||
www.youtube.com###card.ytd-miniplayer.style-scope
|
|
||||||
! YouTube Sidebar
|
|
||||||
www.youtube.com###guide-content
|
|
||||||
www.youtube.com###guide-icon.ytd-masthead
|
|
||||||
www.youtube.com##ytd-mini-guide-renderer.ytd-app
|
|
||||||
! Topright Buttons (except settings)
|
|
||||||
www.youtube.com###buttons.ytd-masthead > .ytd-masthead:not(:nth-child(3))
|
|
||||||
! Video buttons (like, share, etc)
|
|
||||||
www.youtube.com###menu-container.ytd-video-primary-info-renderer
|
|
||||||
www.youtube.com###subscribe-button.ytd-video-secondary-info-renderer
|
|
||||||
www.youtube.com##ytd-comments-header-renderer > #simple-box
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* User Scripts
|
* User Scripts
|
||||||
|
|||||||
@@ -64,8 +64,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@-moz-document domain("youtube.com") {
|
@-moz-document domain("youtube.com") {
|
||||||
/* Hide video player */
|
/* Center content */
|
||||||
#player-theater-container {
|
#columns {
|
||||||
|
max-width: 65% !important;
|
||||||
|
min-width: 65% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide video player (small and theater size) */
|
||||||
|
#player, #player-theater-container {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,9 +80,41 @@
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Center content */
|
/* Hide homepage recommendations */
|
||||||
#columns {
|
ytd-rich-grid-renderer {
|
||||||
max-width: 65% !important;
|
display: none !important;
|
||||||
min-width: 65% !important;
|
}
|
||||||
|
|
||||||
|
/* Hide buttons in the top-right */
|
||||||
|
#masthead #end #buttons > :not(:nth-child(3)) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide sidebar guide and its icon */
|
||||||
|
#guide-content, #guide-icon {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide collapsed sidebar guide */
|
||||||
|
ytd-mini-guide-renderer {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide miniplayer */
|
||||||
|
ytd-miniplayer {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide video buttons (like, share, etc) */
|
||||||
|
#menu-container.ytd-video-primary-info-renderer
|
||||||
|
{ display: none !important; }
|
||||||
|
#subscribe-button.ytd-video-secondary-info-renderer
|
||||||
|
{ display: none !important; }
|
||||||
|
ytd-comments-header-renderer > #simple-box
|
||||||
|
{ display: none !important; }
|
||||||
|
|
||||||
|
/* Move first comment up a bit */
|
||||||
|
#comments > #sections > #contents > :first-child {
|
||||||
|
margin-top: -30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user