Greasy Fork

Greasy Fork is available in English.

搜索结果已点击效果,区别已点击链接

百度、必应、谷歌、搜狗、360搜索、F搜、无追搜索、国搜、Ecosia、Naver、Goobe、DuckDuckGo、Yahoo、Qwant、SearchEncrypt、Startpage、Disroot SearX、Lukol、MetaGer、mojeek 搜索结果页面,【增强已点击链接的对比度】 高亮区别分开,强调强化已点击。

当前为 2024-01-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         搜索结果已点击效果,区别已点击链接
// @description  百度、必应、谷歌、搜狗、360搜索、F搜、无追搜索、国搜、Ecosia、Naver、Goobe、DuckDuckGo、Yahoo、Qwant、SearchEncrypt、Startpage、Disroot SearX、Lukol、MetaGer、mojeek 搜索结果页面,【增强已点击链接的对比度】 高亮区别分开,强调强化已点击。
// @namespace    http://tampermonkey.net/
// @version      1.1.2
// @license      GPL-3.0
// @author       AiniyoMua
// @home-url     http://greasyfork.icu/zh-CN/scripts/436531
// @homepageURL  http://greasyfork.icu/zh-CN/scripts/436531
// @supportURL   http://greasyfork.icu/zh-CN/scripts/436531/feedback
// @grant        GM_addStyle
// @include      *://*.google*/search*
// @match        *://www.baidu.com/s*
// @match        *://ipv6.baidu.com/s*
// @match        *://www1.baidu.com/s*
// @match        *://www1.baidu.com/baidu?*
// @match        *://www.baidu.com/baidu?*
// @match        *://ipv6.baidu.com/baidu?*
// @match        *.bing.com/s*
// @match        *://bing.com/s*
// @match        *://www.sogou.com/web*
// @match        *://sogou.com/web*
// @match        *://search.naver.com/s*
// @match        *://www.wuzhuiso.com/s*
// @match        *://goobe.io/search*
// @match        *://www.ecosia.org/s*
// @match        *://yandex.com/s*
// @match        *://www.yandex.com/s*
// @match        *://duckduckgo.com/?*
// @match        *://www.duckduckgo.com/?*
// @match        *://search.yahoo.com/*
// @match        *://search.yahoo.co.jp/*
// @match        *://www.so.com/s*
// @match        *://fsoufsou.com/s*
// @match        *://www.searchencrypt.com/s*
// @match        *://www.qwant.com/?*
// @match        *://mijisou.com/?*
// @match        *://www.startpage.com/s*
// @match        *://search.disroot.org/s*
// @match        *://metager.de/m*
// @match        *://metager.org/*
// @match        *://infinitysearch.co/r*
// @match        *://www.chinaso.com/*
// @match        *://www.lukol.com/s*
// @match        *://www.mojeek.com/s*
// @run-at       document-start
// @icon         data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJAYW5kcm9pZDpjb2xvci93aGl0ZSIgZD0iTTE1LjUgMTRoLS44bC0uMy0uM2MxLTEuMSAxLjYtMi42IDEuNi00LjJhNi41IDYuNSAwIDEgMC0yLjMgNWwuMy4ydi44bDUgNSAxLjUtMS41LTUtNXptLTYgMGE0LjUgNC41IDAgMSAxIDAtOSA0LjUgNC41IDAgMCAxIDAgOXoiLz48L3N2Zz4=
// ==/UserScript==
(function() {
	// █ 建议设置此脚本的运行时期为 document-start
	// 百度重新搜索内容时,会覆盖掉注入的javascript和css,具体的原因没搞懂
	// 使用【AC-baidu-重定向优化百度搜狗谷歌必应搜索_favicon_双列】脚本解决这个问题
	// http://greasyfork.icu/zh-TW/scripts/14178
	// you.com 弄不了,不知咋回事
	// backdata.net 弄不了,不知咋回事
	// gibiru.com 弄不了,不知咋回事
	// swisscows.com 弄不了,不知咋回事
	// search.becovi.com 弄不了,不知咋回事
	// Gigablast 上不去
	// lookao.com 上不去
	// onelive.fuyeor.com 上不去
	// █ 需要其他颜色的更改下面 #ffc6c6 颜色值即可
	const css1 = `
		a:visited{color: #ffc6c6 !important;}
		a:visited > div{color: #ffc6c6 !important;}
		/* 搜索匹配中的关键词,区别于上面的颜色 */
		a:visited > strong{color: #f75656 !important;}
		a:visited > em{color: #f75656 !important;}
	`;
	GM_addStyle(css1);

	if(document.domain.includes("google")){
        GM_addStyle(`.ynAwRc{color:#ffc6c6 !important}`);
    }else if(document.domain.includes("baidu")){
		const css2 = `
			#head {height:56px !important;box-shadow: 0 1px 6px 0 rgb(32 33 36 / 15%) !important;}
			.s_form {height:56px !important;}
			#searchTag {top:57px !important;z-index: 400 !important;}
			#su {height:39px !important;}
			#form {margin-top:8px !important;}
			#u {margin-top:-3px !important;}
			#result_logo {margin-top:8px !important;}
			#myuser {margin-top:10px !important;}
		`
		// 调整顶栏高度,并添加阴影
		// 调整一个虚框高度,避免挡住下面层级的点击
		// 某些结果会弹出的tag顶栏,也调整高度,并修改z轴
		// 调整百度一下按钮高度
		// 调整输入框按钮高度
		// 调整顶栏右边区域 padd
		// 去掉右边区域的首页
		// 调整logo padd
		// 调整下面那个第三方脚本 注入的“自定义”按钮 padd
		// 调整顶栏下面的 那一栏(网页、图片...) padd
		// 调整第三方【AC-baidu】脚本的 自定义按钮
		// 调整第三方【AC-baidu】脚本的 自定义按钮
		// 调整热点热搜弹幕的高度,使其能显示更多条弹幕
		const css3 = `
			#head {height:43px !important;box-shadow: 0 1px 6px 0 rgb(32 33 36 / 15%) !important;}
			.s_form {height:43px !important;}
			#searchTag {
				top:44px !important;
				z-index: 400 !important;
				padding-top: 0px !important;
				padding-bottom: 3px !important;
			}
			#su {height:37px !important;}
			#form > span {height:34px !important;margin-top: 1px !important;}
			#kw {height:34px !important;}
			#form {margin-top:2px !important;}
			#u {margin-top:-9px !important;}
			.toindex {display:none !important;}
			#content_right{display:none !important;}
			#result_logo {margin-top:4px !important;}
			#myuser {margin-top:10px !important;}
			#s_tab {padding-top: 49px !important;}
			#myuser .myuserconfig:hover {color: #fff !important;}
			.myuserconfig {
				background: #0000 !important;
				color: #222 !important;
				font-weight: 400 !important;
				border: 0px !important;
				font-size: 13px !important;
				margin-top: 6.5px !important;
				box-shadow: none !important;
				font-family: Arial,sans-serif !important;
			}
			#danmakuContainer{height: 680px !important;}
		`

		// 需要顶栏压扁的话,取消注释掉下面这行即可,需要更扁就换成css3
		// GM_addStyle(css3);
	}

})();