🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Google Search Display URL

Display URLs for each search result as before.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

/* ==UserStyle==
@name           Google Search Display URL
@name:ja        Google検索 URLを表示
@description    Display URLs for each search result as before.
@description:ja 以前のように各検索結果へURLを表示します。
@namespace      https://greasyfork.org/users/137
@version        2.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.org/scripts/395307
==/UserStyle== */

/*
【動作確認用】
サイトリンク付き
https://www.google.com/search?q=Greasy+Fork
https://www.google.com/search?q=Twitter
動画再生フォーム
https://www.google.com/search?q=%E5%A5%BD%E3%81%8D!%E9%9B%AA!%E6%9C%AC%E6%B0%97%E3%83%9E%E3%82%B8%E3%83%83%E3%82%AF
電卓
https://www.google.com/search?q=1-1
翻訳フォーム
https://www.google.com/search?q=test
乱数生成フォーム / このページを訳す
https://www.google.com/search?q=random+number
*/

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

@-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)(?:$|.*)).*") {
	.yuRUbf > div,
	[data-async-context^="query:"] div[data-hveid][data-ved]:not([id]):not([data-md]) h3  a {
		--url-color: #4D5156;
		--icon-size: 26px;
		--icon-margin-right: 12px;

		display: grid;
		grid-template:
			" icon  site  site"
			" icon  url   option"
			" title title title"
			/ calc(var(--icon-size) + var(--icon-margin-right)) min-content auto;
	}
	
	table h3 a {
		/* サイトリンク */
		display: block !important;
	}

	[data-async-context^="query:"] :is(
		div[data-hveid][data-ved]:not([id]):not([data-md]):not([class*="wholepage"])
	 ) cite {
		display: none;
	}

	.yuRUbf > div > span,
	.yuRUbf > div > span > a {
		display: contents;
	}

	:is(
		.yuRUbf > div,
		[data-async-context^="query:"] g-section-with-header g-link
	 ) h3 {
		grid-area: title;
		white-space: nowrap;
		transform: unset !important;
	}

	.yuRUbf > div h3 ~ div,
	.yuRUbf > div h3 ~ div > div {
		display: contents !important;
	}

	.yuRUbf > div h3 ~ div > div > span {
		 grid-area: icon;
		 align-self: center;
	}

	.yuRUbf > div h3 ~ div > div > div {
		 grid-area: site;
	}

	:is(
		.yuRUbf > div > a,
		.yuRUbf > div > span > a
	)::after {
		grid-area: url;
		content: attr(href);
		color: var(--url-color);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	table a::after {
		/* サイトリンク */
		content: unset !important;
	}

	.yuRUbf > div > div {
		grid-area: option;
		position: unset;
		width: 18px;
	}

	.yuRUbf > div > div > div:first-of-type {
		display: none;
	}

	.yuRUbf > div > div > div:nth-of-type(2) {
		margin-top: unset;
	}
}