Greasy Fork镜像 is available in English.

Google Search Tools to Sidebar

Always expands the search tool and moves it back to the left side (legacy feature).

Od 22.03.2025.. Pogledajte najnovija verzija.

/* ==UserStyle==
@name           Google Search Tools to Sidebar
@name:ja        Google 検索ツールをサイドバーへ
@description    Always expands the search tool and moves it back to the left side (legacy feature).
@description:ja 検索ツールを常に展開し、以前のようにサイドバーから利用できるようにします。
@namespace      https://greasyfork.dpdns.org/users/137
@version        7.0.0
@license        MPL-2.0
@contributionURL https://github.com/sponsors/esperecyan
@compatible     Edge
@compatible     Firefox 推奨 (Recommended)
@compatible     Opera
@compatible     Chrome
@author         100の人
@homepageURL    https://greasyfork.dpdns.org/scripts/412326
==/UserStyle== */

@namespace url(http://www.w3.org/1999/xhtml);

/* デバッグ用URL
YouTube Music
https://www.google.co.jp/search?q=%E3%81%BE%E3%81%BE%E3%81%94%E3%81%A8+%E5%80%89%E6%A9%8B%E3%83%A8%E3%82%A8%E3%82%B3
歌詞
https://www.google.co.jp/search?q=trick+and+treat+%E6%AD%8C%E8%A9%9E
アニメなど
https://www.google.com/search?q=%E5%A4%A2%E3%81%AE%E3%82%AF%E3%83%AC%E3%83%A8%E3%83%B3%E7%8E%8B%E5%9B%BD
「摂氏」「華氏」のサイドバー
https://www.google.co.jp/search?q=%E6%91%82%E6%B0%8F
*/

@-moz-document url("https://www.google.com/search?q=Greasy%20Fork"), url("https://www.google.co.jp/search?q=Greasy%20Fork"), /* Greasy Fork镜像の適用サイト用 */
	regexp("https?://www\\.google\\.(?:com|(?:com?\\.)?[a-z][a-z])/(?!(?:webhp$|$)|maps(?:$|.*)|search\\?(.*&)?(?:tbm=lcl|tbs=lrf|udm=2)(?:$|.*)).*") {
	@media (min-width: 1590px) {
		/*------------------------------------
			検索ツール全体
		*/
		#top_nav {
			position: absolute;
			z-index: 1;
			padding-left: 0.5em;
		}

		#top_nav #hdtbMenus {
			display: unset;
			position: unset;
		}

		#top_nav #hdtbMenus > div {
			display: revert;
		}

		#top_nav #hdtbMenus > div > [id] {
			flex-direction: column;
		}

		[id^="tools_"], /* 「ツール」ボタン */
		#appbar { /* 元々の検索ツールの表示領域 */
			display: none;
		}

		/*------------------------------------
			各項目の見出し
		*/
		#top_nav #hdtbMenus g-popup > [role="button"] {
			display: none;
		}

		/* 日付けで期間が指定されているとき */
		#top_nav #hdtbMenus g-popup:has(g-dialog) > [role="button"]:has(> div > [class*=" "]) {
			display: block;
		}
		#top_nav #hdtbMenus g-popup:has(g-dialog) > [role="button"]:has(> div > [class*=" "]) * {
			padding: unset;
			line-height: unset;
			white-space: wrap;
		}
		#top_nav #hdtbMenus g-popup:has(g-dialog) [role="button"] > div > [class*=" "] > span {
			/* ▼ */
			display: none;
		}

		/*------------------------------------
			各項目の選択肢一覧
		*/
		#top_nav #hdtbMenus [jsname][style*="display:none"]:not([aria-hidden]) {
			display: block !important;
			position: unset;
			box-shadow: unset;
			/* 日付けで期間が指定されているときに、表示されている期間をクリックしたとき */
			min-width: unset !important;
		}

		/*------------------------------------
			検索ツールの各項目の選択肢
		*/
		#top_nav #hdtbMenus g-popup > [role="button"],
		#top_nav #hdtbMenus g-menu-item {
			background: unset;
		}

		#top_nav #hdtbMenus g-menu-item:hover {
			text-decoration: underline;
		}

		#top_nav #hdtbMenus g-menu-item [aria-checked="true"],
		#top_nav #hdtbMenus g-popup:has(g-dialog) > [role="button"] > div > [class*=" "] /* 日付けで期間が指定されているとき */ {
			/* 選択されている選択肢 */
			color: #DD4B39;
			font-weight: bold;
		}

		#top_nav #hdtbMenus g-menu-item > * > * {
			padding: unset;
		}
	}
}
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元