You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
626 B
JavaScript

( function () {
/* Remove start screen (or press some button ) */
const button = document.getElementById( 'startButton' );
if ( button ) button.click();
/* Remove gui and fonts */
const style = document.createElement( 'style' );
style.type = 'text/css';
style.innerHTML = '#info, button, input, body > div.lil-gui, body > div.lbl { display: none !important; }';
document.querySelector( 'head' ).appendChild( style );
/* Remove Stats.js */
for ( const element of document.querySelectorAll( 'div' ) ) {
if ( getComputedStyle( element ).zIndex === '10000' ) {
element.remove();
break;
}
}
}() );