jcunews

youtube_search_grid_view.css

Oct 7th, 2020
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @-moz-document url-prefix("https://www.youtube.com/results") {
  2. /*<[YouTube Search Grid View]>*/
  3.  
  4. #primary.ytd-two-column-search-results-renderer {
  5.   max-width: none;
  6. }
  7.  
  8. .ytd-search #contents > ytd-item-section-renderer > #contents > .ytd-item-section-renderer {
  9.   display: inline-block;
  10.   margin-right: 16px;
  11.   vertical-align: top;
  12.   width: 49%;
  13. }
  14.  
  15. .ytd-search #contents > ytd-item-section-renderer > #contents > .ytd-item-section-renderer:nth-child(2n) {
  16.   margin-right: 0;
  17. }
  18.  
  19. .ytd-search #contents > ytd-item-section-renderer > #contents > ytd-playlist-renderer {
  20.   columns: 2;
  21. }
  22.  
  23. }
  24.  
  25. @-moz-document regexp("https://www\\.youtube\\.com/user/[^/]+/search(\\?.*|$)") {
  26. .ytd-two-column-browse-results-renderer > #contents > .ytd-section-list-renderer {
  27.   display: inline-block;
  28.   margin-right: 16px;
  29.   vertical-align: top;
  30.   width: 48%;
  31.   height: 175px;
  32. }
  33.  
  34. }
RAW Paste Data