From cec0745a4cccfc6065078eddd242c6515c896e5d Mon Sep 17 00:00:00 2001 From: Journey Date: Sun, 19 Mar 2023 03:31:33 -0500 Subject: [PATCH] Youtube Tweaks 1.2.13 release ## v1.2.13 ... (19 MARCH 23) ### Additions: `+` Add code to fix the blank spot on the home page when an adblocker is active. --- CHANGELOG.md | 5 ++++ css/theme/theme.css | 20 +++++++++++++- css/usercss-template.css | 2 +- sass/partials/_version.scss | 2 +- .../theme/_fix-blankspot-from-adblock.scss | 27 +++++++++++++++++++ sass/theme.scss | 1 + style.user.css | 24 +++++++++++++++-- 7 files changed, 76 insertions(+), 5 deletions(-) create mode 100644 sass/partials/theme/_fix-blankspot-from-adblock.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e221b2..edfffde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # YouTube Tweaks Changelog +## v1.2.13 ... (19 MARCH 23) + +### Additions: +`+` Add code to fix the blank spot on the home page when an adblocker is active. + ## v1.2.12 ... (29 AUGUST 22) ### Fixes: diff --git a/css/theme/theme.css b/css/theme/theme.css index e0bb78f..604dcd0 100644 --- a/css/theme/theme.css +++ b/css/theme/theme.css @@ -1,6 +1,6 @@ #copyright div::after { white-space: pre; - content: "\aYoutube Tweaks - Version 1.2.12"; + content: "\aYoutube Tweaks - Version 1.2.13"; } ::-webkit-scrollbar { @@ -36,4 +36,22 @@ ytd-video-renderer[use-prominent-thumbs] #channel-info.ytd-video-renderer { ytd-search[center-results] ytd-two-column-search-results-renderer.ytd-search { padding-right: 150px; +} + +[page-subtype=home] ytd-rich-grid-renderer #contents ytd-rich-grid-row { + display: contents; +} +[page-subtype=home] ytd-rich-grid-renderer #contents ytd-rich-grid-row #contents { + display: contents; +} +[page-subtype=home] ytd-rich-grid-renderer #contents #contents > ytd-rich-item-renderer { + margin: 0 4px 24px !important; +} + +ytd-rich-section-renderer { + display: none; +} + +.ghost-grid.ytd-ghost-grid-renderer { + display: none; } \ No newline at end of file diff --git a/css/usercss-template.css b/css/usercss-template.css index a3e925a..3955a30 100644 --- a/css/usercss-template.css +++ b/css/usercss-template.css @@ -1,6 +1,6 @@ /* ==UserStyle== @name Youtube Tweaks -@version 1.2.12 +@version 1.2.13 @description Expands videos to fill all free space inside browser window. @namespace https://github.com/StylusThemes @author StylusThemes diff --git a/sass/partials/_version.scss b/sass/partials/_version.scss index af6b7c9..b627991 100644 --- a/sass/partials/_version.scss +++ b/sass/partials/_version.scss @@ -3,7 +3,7 @@ div { &::after { white-space: pre; - content: "\A Youtube Tweaks - Version 1.2.12"; + content: "\A Youtube Tweaks - Version 1.2.13"; } } } diff --git a/sass/partials/theme/_fix-blankspot-from-adblock.scss b/sass/partials/theme/_fix-blankspot-from-adblock.scss new file mode 100644 index 0000000..a5a6258 --- /dev/null +++ b/sass/partials/theme/_fix-blankspot-from-adblock.scss @@ -0,0 +1,27 @@ +[page-subtype="home"] { + ytd-rich-grid-renderer { + #contents { + ytd-rich-grid-row { + display: contents; + + #contents { + display: contents; + } + } + + #contents { + > ytd-rich-item-renderer { + margin: 0 4px 24px !important; + } + } + } + } +} + +ytd-rich-section-renderer { + display: none; +} + +.ghost-grid.ytd-ghost-grid-renderer { + display: none; +} diff --git a/sass/theme.scss b/sass/theme.scss index 349bb04..127ef8e 100644 --- a/sass/theme.scss +++ b/sass/theme.scss @@ -3,3 +3,4 @@ // theme @import 'partials/theme/scrollbar'; @import 'partials/theme/small-thumbnails-on-search'; +@import 'partials/theme/fix-blankspot-from-adblock'; diff --git a/style.user.css b/style.user.css index 27c9a2c..6cd4d91 100644 --- a/style.user.css +++ b/style.user.css @@ -1,6 +1,6 @@ /* ==UserStyle== @name Youtube Tweaks -@version 1.2.12 +@version 1.2.13 @description Expands videos to fill all free space inside browser window. @namespace https://github.com/StylusThemes @author StylusThemes @@ -61,7 +61,7 @@ RemovePTSFBY "Yes" <<ytd-rich-item-renderer { + margin: 0 4px 24px !important; + } + + ytd-rich-section-renderer { + display: none; + } + + .ghost-grid.ytd-ghost-grid-renderer { + display: none; + } + /*[[WatchedBadge]]*/ /*[[WVC]]*/ /*[[FadePPComp]]*/