Greasy Fork

Greasy Fork is available in English.

方便S1爬楼

缩短帖子高度

当前为 2024-09-25 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name         方便S1爬楼
@version      1.3
@description  缩短帖子高度
@author       Ts8zs
@license      GPL
@namespace http://greasyfork.icu/users/207890
==/UserStyle== */
@-moz-document regexp("https://bbs.saraba1st.com/2b/thread-.*.html") {
	/* Hide content after the avatar element */
	.favatar *:nth-child(n+4) {
		display: none;
	}
	.favatar:hover *:nth-child(n+4) {
		display: block;
	}
	.favatar :has(.avatar) {
		display: block;
	}

	.favatar *:nth-child(3) img:nth-child(2) {
		display: none;
	}
	.favatar img[title="已绑定手机"] {
		display: none;
	}
	.t_fsz {
		min-height: 0;
	}

	.t_f img {
		max-height: 500px;
		max-width: 100%;
		height: auto;
		width: auto;
	}
	.avatar img {
		height: 30px;
		width: auto !important;
	}
	.pls .avtm {
		background: none;
		box-shadow: none;
		border: none;
	}
	.pls .avatar {
		margin: 15px 0 0 15px;
	}
}