From 5a9a846a27afb212cf878cd76ce65b3477dd530e Mon Sep 17 00:00:00 2001 From: Lavisha Gupta Date: Thu, 29 Jan 2026 23:12:05 +0530 Subject: [PATCH] Move the "Upload Date" field in the search filter to far --- .../www.youtube.com/general/general.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/js&css/extension/www.youtube.com/general/general.css b/js&css/extension/www.youtube.com/general/general.css index d18e89b6d..475369c9f 100644 --- a/js&css/extension/www.youtube.com/general/general.css +++ b/js&css/extension/www.youtube.com/general/general.css @@ -481,3 +481,22 @@ html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(4) > h3:active { background-color: var(--yt-spec-10-percent-layer); } +/*-------------------------------------------------------------- +# REORDER SEARCH FILTER CHIPS - MOVE UPLOAD DATE TO FAR LEFT +--------------------------------------------------------------*/ +/* Enable flexbox layout for the chips container */ +ytd-feed-filter-chip-bar-renderer #chips-wrapper, +yt-chip-cloud-renderer#chips { + display: flex !important; +} + +/* Move "Upload Date" chip to the far left (first position) */ +/* Target the Upload Date chip by its text content */ +yt-chip-cloud-chip-renderer:has(yt-formatted-string:is([title*="Upload"], [title*="upload"], [aria-label*="Upload"], [aria-label*="upload"])) { + order: -100 !important; +} + +/* Ensure all other chips have default order */ +yt-chip-cloud-chip-renderer { + order: 0 !important; +} \ No newline at end of file