Skip to content

tg只显示github by 13422797310

Details

Author13422797310

LicenseNo License

Categorytg

Created

Updated

Code size1.8 kB

Code checksume1d4b5ce

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

A new userstyle

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           tg只显示github
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */

@-moz-document domain("web.telegram.org") {
	/* 不是github 链接不显示	 */
	.text-entity-link:not([title^="https://github.com/"]),
	.text-entity-link:not([title^="https://github.com/"]),
	.text-entity-link[title^="www.aliyundrive.com/"],
	.text-entity-link.word-break-all:not([title^="https://github.com/"]),
	.text-entity-link.word-break-all:not([title^="https://github.com/"]),
	.text-entity-link.word-break-all:not([title^="https://github.com/"]),
	.WebPage-text.WebPage-text_interactive .site-name:not([title^="https://github.com/"]),
	.WebPage-text.WebPage-text_interactive .site-name:not([title^="https://github.com/"]),
	.WebPage-text.WebPage-text_interactive .site-name:not([title^="https://github.com/"]),
	a:not([title^="https://github.com/"]){
		display: none !important;
	}
	.media-inner.interactive,
	.media-inner.square-image,
	.File.interactive,
	.message-title,
	.Reactions,
	.CommentButton,
	.Poll,
	.ActionMessage,
	.emoji,
	br,
	.InlineButtons,
	.message-action-buttons,
	.Audio.inline{
		display: none !important;
	}
	/* 争议性元素隐藏 */
	.text-entity-code.clickable,
	.WebPage,
	.media-inner,
	.message-subheader,
	.Avatar,
	.Album{
		display: none !important;
	}
	/**/
	.text-content{
		color: #212121 !important;
	}
	.WebPage-text p{
		display: none !important;
	}
	.WebPage,
	.WebPage.no-article,
	.WebPage.no-article::before,
	.WebPage.without-media::before{
		background-color: #212121 !important;
	}
	.text-content.clearfix *{
		display: none !important;
	}
	.text-content.clearfix a[title*="https://github.com"]{
		display: block !important;
	}

}

Reviews

No reviews yet.