Show garbage in invisible

shows normal and solid garbage in invisible 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         Show garbage in invisible
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  shows normal and solid garbage in invisible mode
// @author       Oki
// @match        https://*.jstris.jezevec10.com/*
// @grant        none
// ==/UserScript==

/**************************
  Show garbage in invisible
**************************/

(function() {
    window.addEventListener('load', function(){

if(typeof trim != "function"){var trim=a=>{a=a.slice(0,-1);a=a.substr(a.indexOf("{")+1);return a}}

var types = [Ctx2DView['prototype']['redrawMatrix'].toString(), WebGLView['prototype']['redrawMatrix'].toString()]
drawnMino = types[0].substr(types[0].lastIndexOf("this"),types[0].substr(types[0].lastIndexOf("this")).indexOf(")"))
isInvisible = types[0].split("if(")[1].substr(0,types[0].split("if(")[1].indexOf(")"))
invisCondition = "if (!("+isInvisible+" && "+drawnMino+" < 8)) {"

for (var i = 0; i < types.length; i++) {
	types[i] = types[i].replace("return", "")
	types[i] = types[i].replace("++){this", "++){" + invisCondition + "this")
	types[i] += "}"
}

Ctx2DView['prototype']['redrawMatrix'] = new Function(trim(types[0]));
WebGLView['prototype']['redrawMatrix'] = new Function(trim(types[1]));

    });
})();