Chess Com Actual Focus Mode

Hides Useless Bull Shit from Chess.com UI in 'focus' Mode

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name          Chess Com Actual Focus Mode
// @namespace     http://userstyles.org
// @description   Hides Useless Bull Shit from Chess.com UI in 'focus' Mode
// @author        707433
// @include       *://*chess.com/live
// @include       *://*chess.com/events/*
// @run-at        document-start
// @version       0.3
// ==/UserScript==

function hide_stuff() {
	var sheet = window.document.styleSheets[ 0 ];
	sheet.insertRule( "div.new-game-component { display: none; !important }" , sheet.cssRules.length );
	sheet.insertRule( "span.focus-mode-icon-badge { display: none; !important }" , sheet.cssRules.length );
	sheet.insertRule( "div[data-clock] { visibility: hidden; !important }" , sheet.cssRules.length );
	sheet.insertRule( "img.user-avatar-img { visibility: hidden; !important }" , sheet.cssRules.length );
	sheet.insertRule( "div.cbChatMessage { visibility: hidden; !important }" , sheet.cssRules.length );
	sheet.insertRule( "a.placeholder-ad-link { visibility: hidden; !important }" , sheet.cssRules.length );
	sheet.insertRule( "span.icon-font-chess.minimize.focus-mode-icon-icon { visibility: hidden; !important }" , sheet.cssRules.length );
	sheet.insertRule( "div.toaster-component.toaster-alert { visibility: hidden; !important }" , sheet.cssRules.length );
	/*
	for ( var i = 0; i < 100; ++i ) {
		sheet.insertRule( "div#cbChatPanelBody" + i.toString() + " { display: none; !important }" , sheet.cssRules.length );
	}
	*/
}
window.addEventListener ( "load" , hide_stuff );