Skip to content

Commit

Permalink
Release v1.2.4
Browse files Browse the repository at this point in the history
- Fixed layout issues in Home and Subscriptions on desktop when videos are hidden (due to YouTube's new grid implementation)
- Removed the fillGaps option for desktop, as it's no longer needed with YouTube's new grid implementation

hideSuggestedSections:
- Fixed Shorts being hidden on Home
- Fixed Recommended playlists not bieng hidden when viewing a Playlist
  • Loading branch information
insin committed Aug 5, 2024
1 parent 3538d04 commit 594d7ec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// @match https://www.youtube.com/*
// @match https://m.youtube.com/*
// @exclude https://www.youtube.com/embed/*
// @version 7
// @version 8
// ==/UserScript==
let debug = false
let debugManualHiding = false
Expand Down Expand Up @@ -833,7 +833,7 @@ const configureCss = (() => {
if (desktop) {
hideCssSelectors.push(
// Shelves in Home
'ytd-browse[page-subtype="home"] ytd-rich-section-renderer',
'ytd-browse[page-subtype="home"] ytd-rich-section-renderer:not(:has(> #content > ytd-rich-shelf-renderer[is-shorts]))',
// Looking for something different? tile in Home
'ytd-browse[page-subtype="home"] ytd-rich-item-renderer:has(> #content > ytd-feed-nudge-renderer)',
// Suggested content shelves in Search
Expand All @@ -843,7 +843,7 @@ const configureCss = (() => {
// Recommended videos in a Playlist
'ytd-browse[page-subtype="playlist"] ytd-item-section-renderer[is-playlist-video-container]',
// Recommended playlists in a Playlist
'ytd-browse[page-subtype="playlist"] ytd-item-section-renderer[is-playlist-shelf]',
'ytd-browse[page-subtype="playlist"] ytd-item-section-renderer[is-playlist-video-container] + ytd-item-section-renderer',
)
}
if (mobile) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.mv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://jbscript.dev/control-panel-for-youtube",
"version": "1.2.3",
"version": "1.2.4",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest.mv3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://jbscript.dev/control-panel-for-youtube",
"version": "1.2.3",
"version": "1.2.4",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
Expand Down
2 changes: 1 addition & 1 deletion options.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
<p id="debugManualHidingNote">Highlights elements instead of hiding them</p>
</section>
</section>
<div id="version">v1.2.3<span id="debugCountdown"></span></div>
<div id="version">v1.2.4<span id="debugCountdown"></span></div>
</form>
<script src="options.js"></script>
</body>
Expand Down
16 changes: 8 additions & 8 deletions safari/Control Panel for YouTube.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -662,7 +662,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -705,7 +705,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
Expand All @@ -720,7 +720,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -793,7 +793,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 2RDKJDLNY8;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
Expand All @@ -809,7 +809,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.4;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -832,7 +832,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 2RDKJDLNY8;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
Expand All @@ -848,7 +848,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.4;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand Down
2 changes: 1 addition & 1 deletion safari/Shared (Extension)/Resources/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://jbscript.dev/control-panel-for-youtube",
"version": "1.2.3",
"version": "1.2.4",
"icons": {
"48": "icon48.png",
"96": "icon96.png",
Expand Down

0 comments on commit 594d7ec

Please sign in to comment.