Greasy Fork

Greasy Fork is available in English.

Douyu Cleaner 清爽斗鱼

Douyu Cleaner 清爽斗鱼 脚本样式

当前为 2025-03-30 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name          Douyu Cleaner 清爽斗鱼
// @namespace     http://greasyfork.icu
// @description	  Douyu Cleaner 清爽斗鱼 脚本样式
// @author        Another_Dreams
// @homepage      http://greasyfork.icu/scripts/472972-douyu-cleaner-清爽斗鱼
// @license       MIT
// @match         http*://*.douyu.com/*
// @run-at        document-start
// @version       0.20250330235500
// ==/UserScript==
(function() {var css = "";
if (false || (document.domain == "douyu.com" || document.domain.substring(document.domain.indexOf(".douyu.com") + 1) == "douyu.com"))
	css += [
		"/*====================================================",
		"			Douyu Cleaner 清爽斗鱼",
		"			by Another_Dreams",
		"",
		"			Last updated: 2025/03/30",
		"======================================================*/",
		"/*====================================================",
		"		  基于 Chrome 进行编写,配合ABP或uBlock",
		"		  主要针对登陆后的斗鱼,不登陆时有些细节未调整!!! ",
		"=====================================================*/",
		"/****** 适配新版本 ******/",
		".TurntableLottery,",
		".RewardModal-recommendList,",
		".RewardModal-text,",
		".WeekRank,",
		".Title-roomOtherBottom,",
		".code-box-15b952,",
		".recommendApp-0e23eb,",
		"/*导航*/",
		".EntryNav,",
		".Header-holder,",
		".HeaderBroadcast,",
		".Download > .public-DropMenu,",
		"#header .headerdown-corner,",
		".Download-iconAdd,",
		".video-entry.fl,",
		".funny.fl,",
		".fl.o-broadcast,",
		".fl.o-download {",
		"	display: none !important;",
		"}",
		".Header-wrap.is-darkMode .EntryNav-desc, .Header-wrap.is-darkMode .Header-menu-link>a, .Header-wrap.is-darkMode .public-DropMenu-link, .Header-wrap.is-darkMode {",
		"        color: #666;",
		"}",
		"/*个人*/",
		".Task,",
		".Promotion {",
		"	display: none !important;",
		"}",
		"/*-------直播间------*/",
		".XinghaiAd,",
		".AppFlow,",
		".PaladinWeek,",
		".RoomLevel,",
		".player_h5_adDom,",
		".yearFestival201810Mini,",
		".multiBitRate-da4b60,",
		"/*互动竞猜*/",
		".guessGameContainer.is-normalRoom,",
		"/*弹幕区屏蔽通知提示语*/",
		".BarrageTips--active,",
		"/*亲密互动*/",
		".normalDiv-8b686d {",
		"	display: none !important;",
		"}",
		"/*-------礼物区------*/",
		".ActivityItem:not([data-flag=room_level]) {",
		"	display: none;",
		"}",
		".is-fullScreenPage .ActivityItem {",
		"	display: inline-block;",
		"}",
		"#js-room-activity,",
		".LuckGiftEnter-enter,",
		".LuckGiftEnter,",
		".PlayerToolbar-signCont,",
		".RotaryDraw-enter.JS_RotaryDraw_APP,",
		".PlayerToolbar-Task,",
		".FirstRecharge,",
		".layout-Bottom {",
		"	display: none !important;",
		"}",
		".RewardModule-tips {",
		"	top: 24px!important;",
		"}",
		".is-fullScreenPage .layout-Player-toolbar {",
		"	height: 88px!important;",
		"	margin-top: 0px;",
		"}",
		".is-fullScreenPage .PlayerToolbar {",
		"	padding: 5px!important;",
		"}",
		".layout-Player-toolbar {",
		"	border-top-style: groove!important;",
		"	border-top-width: 1px !important;",
		"	height: 75px!important;",
		"	margin-top: 3px;",
		"}",
		".PlayerToolbar {",
		"	padding: 3px 5px 0 !important;",
		"}",
		".PlayerToolbar-Wealth {",
		"	width: auto!important;",
		"	margin-top: 3px!important;",
		"}",
		"",
		"/*-------标题栏------*/",
		".Title-row:nth-child(3),",
		".Title-impress.clearFix,",
		".YzQualifyingEntry,",
		".YzRankList,",
		".GiftStarIcon,",
		".anchor-pic .anchor-cover-wrap .text,",
		".ComSuperscript,",
		".pk-grading-con,",
		".StarsGathered,",
		".YubaGroup-text,",
		".HugeStarRanking,",
		".Title-anchorPicBack--skin,",
		".Title-followFocus {",
		"	display: none !important;",
		"}",
		".Title {",
		"	height: 66px !important;",
		"	padding-left: 78px !important;",
		"    padding-bottom: 0px;",
		"    padding-top: 0px;",
		"}",
		".Title-anchorPic,",
		".Title--noAnchorImpress .Title-anchorPic,",
		".Title--noAnchorImpress .YubaGroup-anchorCoverWrap {",
		"	width: 65px!important;",
		"	height: 65px!important;",
		"	margin: 0px;",
		"}",
		".Title-anchorInfo {",
		"	float: right!important;",
		"	margin-top: -23px!important;",
		"	margin-right: 5px!important;",
		"}",
		".layout-Player-title {",
		"	min-height: 65px!important;",
		"	margin-bottom: 5px;",
		"}",
		".RewardModal.super {",
		"	min-height: 110px!important;",
		"}",
		".Title-roomOtherTop {",
		"	zoom: 0.7!important;",
		"	-moz-transform: scale(0.7);",
		"	right: 20px!important;",
		"}",
		"/*圆角头像*/",
		".Title-anchorPicBack {",
		"	background: none!important;",
		"}",
		".Title-anchorPicBack img,",
		".Title-anchorPicBack picture {",
		"	border-radius: 50%!important;",
		"	box-shadow: 0 0 2px #00000080;",
		"}",
		"/*---------聊天弹幕区---------*/",
		"/*排行榜*/",
		"/*去酬勤榜*/",
		".fans-rank {",
		"    display: none!important;",
		"    height: 0px!important;",
		"}",
		"/*聊天弹幕*/",
		".PlayerCaseSub-Main .chat-cont {",
		"    top: 0px !important;",
		"    border-radius: 4px 4px 0px 0px;",
		" }",
		".layout-Player-rank,",
		".layout-Player-rankAll,",
        ".layout-Player-announce {",
		"    display: none !important;",
		"}",
    ".ShieldTool-allShield {",
    "    margin-top: -4px;",
    "}",
		"/*聊天弹幕*/",
		".PlayerCaseSub-Main .chat-cont {",
		"	top: 0px !important;",
		"	border-radius: 4px 4px 0px 0px;",
		"}",
		"",
    ".Barrage {",
		"	top: 0px !important;",
		"}",
		"",
		".Medal,",
		".BarrageBanner,",
		".Barrage-icon,",
		".Barrage-userEnter,",
		".FansMedal-name,",
    ".rankMedal,",
		".Motor,",
		".UserLevel,",
    ".js-supreme-icon,",
    ".DiamondsFansBarrage,",
    ".MatchSystemTeamMedal,",
		".Summer_Medal_low,",
		".ChatAchievement-image,",
		".ChatEffect,",
    "a.Baby,",
    ".Barrage-roomVipIcon,",
		".Barrage-message,",
		".Barrage-notice {",
		"	display: none !important;",
		"}",
		".Barrage-noble,",
		".Barrage-nobleImg,",
		".FansMedal {",
		"	width: 0px!important;",
		"	height: 0px!important;",
		"	background-image: none!important;",
		"}",
		".Barrage-listItem {",
		"	margin-bottom: 0px!important;",
		"	margin-top: 0px!important;",
		"}",
		".Barrage-notice--noble {",
		"	padding: 0px!important;",
		"	background: #f8f8f8!important;",
		"	border-top: 1px solid #f8f8f8!important;",
		"	border-bottom: 1px solid #f8f8f8!important;",
		"	background-color: #f8f8f8!important;",
		"}",
    ".Barrage-notice--highEnergyBarrage {",
    "	padding: 0px 10px!important;",
    "   background: none!important; ",
    "   border-style: none!important; ",
    "}",
		".Barrage--paddedBarrage {",
		"	padding: 0px 10px!important;",
		"}",
    ".Barrage-roomVip--super {",
    "	background: none!important;",
		"	cursor: pointer!important;",
		"	display: inline-block!important;",
		"	vertical-align: middle!important;",
		"	border-top: none!important;",
    "	padding: 0px 10px!important;",
		"	border-bottom: none!important;",
		"	}",
		".js-noblefloating-barragecont.Barrage-notice--noble {",
		"	padding-left: 10px!important;",
		"}",
		".layout-Main {",
		"	padding-top: 10px!important;",
		"}",
		"/*---------左侧菜单---------*/",
		"a.AsideUnfold-channelItem.channelGame,",
		"a.AsideFold-listIitem.channelGame {",
		"	display: none!important;",
		"}",
		"/* 滚动条美化 */",
		"/* Let\'s get this party started */",
		"::-webkit-scrollbar {",
		"	width: 8px;",
		"	height: 8px;",
		"}",
		"/* Track */",
		"::-webkit-scrollbar-track {",
		"	/* -webkit-box-shadow: inset 0 0 5px rgba(255, 153, 0, 0.6);*/",
		"	background-color: #F5F5F5;",
		"}",
		"/* Handle */",
		".Barrage-main > div > div:nth-of-type(3) > div {",
		"	border-radius: 4px;",
		"	background-color: #FF9900 !important;",
		"	background-image: -webkit-linear-gradient(45deg,",
		"	rgba(255, 255, 255, .2) 25%,",
		"	transparent 25%,",
		"	transparent 50%,",
		"	rgba(255, 255, 255, .2) 50%,",
		"	rgba(255, 255, 255, .2) 75%,",
		"	transparent 75%,",
		"	transparent);",
		"}",
		"::-webkit-scrollbar-thumb {",
		"	border-radius: 4px;",
		"	background-color: #FF9900 !important;",
		"	background-image: -webkit-linear-gradient(45deg,",
		"	rgba(255, 255, 255, .2) 25%,",
		"	transparent 25%,",
		"	transparent 50%,",
		"	rgba(255, 255, 255, .2) 50%,",
		"	rgba(255, 255, 255, .2) 75%,",
		"	transparent 75%,",
		"	transparent);",
		"}"
	].join("\n");
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();