Skip to content

bilibili禁用动态点击跳转 by library545

Details

Authorlibrary545

LicenseNo License

Categorybilibili

Created

Updated

Size2.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

禁用bilibili动态点击文字时的跳转

Notes

注:禁用后,可通过点击发布日期进行正常跳转,转发的原动态使用“跳转详情”进行跳转

如果发现任何问题,欢迎随时写Review反馈,最好附带上出现问题的动态详情页链接,会在收到反馈的第一时间处理

Source code

/* ==UserStyle==
@name		bilibili禁用动态点击跳转
@version	20240127.22.54
@namespace	userstyles.world/user/library545
@description	禁用bilibili动态点击文字时的跳转
@author		library545
@license	No License
==/UserStyle== */
@-moz-document regexp("https:\\/\\/t\\.bilibili\\.com\\/([\\?#].*|)"),
url-prefix("https://space.bilibili.com/"), url-prefix("https://www.bilibili.com/v/topic/") {
	/* 动态页/空间动态页 */
	.bili-dyn-content > .bili-dyn-content__orig > .bili-dyn-content__orig__desc,
	.bili-dyn-content > .bili-dyn-content__orig > .bili-dyn-content__orig__major:not(.suit-video-card),
	.bili-dyn-content > .bili-dyn-content__orig > .bili-dyn-content__orig__major.suit-video-card > .dyn-card-opus,
	.bili-dyn-content > .bili-dyn-content__forw__desc,
	/* 空间动态搜索结果页 */
	.card-content .p-rel.description {
		pointer-events: none;
	}

	/* 动态页/空间动态页 */
	.dyn-card-opus__pics,
	.bili-album,
	.bili-dyn-card-video,
	.bili-dyn-card-live,
	.bili-rich-text__action,
	.bili-rich-text-link,
	.bili-rich-text-topic,
	.bili-rich-text-module.at,
	.bili-rich-text-module.lottery,
	.bili-rich-text-module.goods,
	.bili-rich-text-module.vote,
	/* 空间动态搜索结果页 */
	.card-content .btns,
	.card-content .dynamic-link-hover-bg,
	.dyn-card-opus__summary.jump .bili-rich-text__content:not(.folded) {
		pointer-events: all;
	}

	/* 动态页/空间动态页 */
	.bili-dyn-time::after,
	.bili-dyn-content > .bili-dyn-content__orig.reference > .bili-dyn-content__orig__desc::after,
	.bili-dyn-content > .bili-dyn-content__orig.reference > .bili-dyn-content__orig__major > .dyn-card-opus > .dyn-card-opus__summary::after,
	/* 空间动态搜索结果页 */
	.card-content .repost .original-card-content .content::after {
		content: '· 跳转详情▸';
		color: var(--text3);
		font-size: 13px;
		line-height: 18px;
		pointer-events: all;
	}
	/* 话题详情页 */
	.bili-dyn-time:not(.fs-small)::after {
		font-size: 12px;
		color: #99a2aa
	}

	/* 动态页/空间动态页 */
	.bili-dyn-time:hover::after,
	.bili-dyn-content > .bili-dyn-content__orig.reference > .bili-dyn-content__orig__desc:hover::after,
	.bili-dyn-content > .bili-dyn-content__orig.reference > .bili-dyn-content__orig__major > .dyn-card-opus > .dyn-card-opus__summary:hover::after,
	/* 空间动态搜索结果页 */
	.card-content .repost .original-card-content .content:hover::after {
		color: var(--text_hover)
	}
	/* 话题详情页 */
	.bili-dyn-time:not(.fs-small):hover::after {
		color: #fb7299
	}
}

Reviews

No reviews yet.