/* ==UserStyle== @name YT評論排序按鈕 @namespace https://greasyfork.org/zh-TW/users/4839 @version 1.7.6 @description [排列留言順序]下拉選單改按鈕 @author CY Fung @license MIT @preprocessor stylus @var range header_height "排序欄位高度" [20, 0, 50, 5, 'px'] @var range css_right "css_right右間距" [0, 0, 360, 10, 'px'] @var range css_top "css_top上間距" [0, 0, 360, 10, 'px'] @downloadURL https://update.greasyfork.icu/scripts/551669/YT%E8%A9%95%E8%AB%96%E6%8E%92%E5%BA%8F%E6%8C%89%E9%88%95.user.css @updateURL https://update.greasyfork.icu/scripts/551669/YT%E8%A9%95%E8%AB%96%E6%8E%92%E5%BA%8F%E6%8C%89%E9%88%95.meta.css ==/UserStyle== */ /*原作者腳本https://greasyfork.org/zh-TW/scripts/457530*/ @-moz-document url-prefix("https://www.youtube.com/watch") { yt-dropdown-menu.yt-sort-filter-sub-menu-renderer { //[重點+全體聊天]文字顯示 #trigger, tp-yt-paper-button { display:none; } tp-yt-iron-dropdown#dropdown { opacity: 0.6; display: block !important; padding: 0; margin: 0; } //按鈕位置 .dropdown-content.style-scope.tp-yt-paper-menu-button { //margin: -10px; position: fixed; right:css_right; top:css_top; border-radius: 0; } tp-yt-paper-listbox#menu { padding: 0; border-radius: 0 !important; display: flex; } a.yt-simple-endpoint.style-scope.yt-dropdown-menu { display: inline-flex; z-index: 1; width: 100px; height: header_height; border: 1px solid; justify-content: center; align-items: center; } a.yt-simple-endpoint.style-scope.yt-dropdown-menu::before { content: ''; font-family: 'Roboto'; font-weight:bold; font-size: 2rem; //width: 50px; //display: flex; //justify-content: center; //align-items: center; opacity: 0.9; //transform: scale(120%, 100%); } a.yt-simple-endpoint.style-scope.yt-dropdown-menu > .yt-dropdown-menu { //display: none !important; //visibility:hidden; } a.yt-simple-endpoint.style-scope.yt-dropdown-menu + a.yt-simple-endpoint.style-scope.yt-dropdown-menu::before { content: ''; } a.yt-simple-endpoint.style-scope.yt-dropdown-menu { opacity: 0.3; } a.yt-simple-endpoint.style-scope.yt-dropdown-menu.iron-selected:not(:hover) { opacity: 0.9; } a.yt-simple-endpoint.style-scope.yt-dropdown-menu:hover { opacity: 1; background-color: rgba(255, 0, 0, 1); } } //修正間距 #comments *:not(#button):not(paper-button):not(ytd-button-renderer):not(#header):not(button):not(#tooltip):not(paper-item),#meta *:not(#upload-info):not(paper-button){ //font-size: comment_size!important; //padding:0px !important; margin-top: 0px ; //margin-bottom: 0px !important; } }