Chess Com Actual Focus Mode

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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 );