Jstris Toggle Clean Sprint

Toggle distracting elements on and off

作者
Garbaz
日安装量
0
总安装量
203
评分
1 0 0
版本
2.0
创建于
2020-08-30
更新于
2021-03-05
大小
4.6 KB
许可证
暂无
适用于

Description:

A simple script that allows you to toggle distracting elements like the menu bar, player boards, etc. off and on with a single button press.

Usage:

The toggle button is, independent of your layout, the one to the left of [1] (On the US layout it's [~], on the German layout it's [^]).

While in "no distraction" mode, the stats (Time, Finesse, PPS, etc) are hidden while playing and are shown between games.

Alternatively you can press the [Tab] key to show the stats.

Configuration:

At the top of the script there are a few const variables which change the behavior of the script.

NEW FEATURE: I added an option to have a background image! Simply change the BACKGROUND_IMAGE_URL variable at the top of the script to some image-URL and that image will be displayed as the background while while the extension is toggled on. Unfortuately the game frame itself has a hard-coded black background, which can't be easily changed from Javascript, so I've opted to make the whole game board black with a bit of a fuzzy edge. To disable this feature, simply set the variable BACKGROUND_IMAGE_URL back to an empty string, so BACKGROUND_IMAGE_URL = '';.

Customization:

The code is for the most part pretty straight forward, so I'm sure if you want to customize something, you will find it not too difficult to do so.