draw.io

Deletes annoying bars in draw.io sites

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

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 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        draw.io
// @namespace   Test
// @include     *draw.io/*
// @version     1.1
// @grant       none
// @description Deletes annoying bars in draw.io sites
// @icon https://www.draw.io/images/apple-touch-icon-ipad.png
// ==/UserScript==
function removeFooter ()
{
	// Element anhand des Css-Namens finden
	var footer = document.getElementsByClassName ('geFooterContainer')[0];
	// Element entfernen
	if (footer != null)
	{
		footer.outerHTML = '';
	}
	// Den Abstand der Bearbeitungsfläche zum Boden der Website auf 0 setzen

	var diagram = document.getElementsByClassName('geDiagramContainer')[0];
	if (diagram != null)
	{
	    diagram.style.bottom = '0px';
	}

	var sidebar1 = document.getElementsByClassName ('geSidebarContainer')[1];
	// Element entfernen
	if (sidebar1 != null)
	{
	    sidebar1.outerHTML = '';
	}

	var sidebar2 = document.getElementsByClassName ('geSidebarContainer')[0];
	if (sidebar2 != null)
	{
		sidebar2.style.bottom = '0px';
	}
}

//window.setInterval (function () { removeFooter (); }, 1000);
// geFooterContainer

window.addEventListener("load", removeFooter, false);