Moving touch buttons in tetr.js

title

目前为 2020-02-02 提交的版本。查看 最新版本

// ==UserScript==
// @name         Moving touch buttons in tetr.js
// @namespace    http://tampermonkey.net/
// @version      0.6
// @author       Oki
// @description  title
// @match        http://farter.cn/tetr.js/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

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


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

function onTouchPressed() {
    //execute stuff after placing block
    alert("test");
}

var placeBlockFunc = window.touchButtonsLayout.toString()
placeBlockFunc =  trim(onTouchPressed.toString()) + trim(placeBlockFunc)
window.touchButtonsLayout = new Function(placeBlockFunc);
*/
touchLeft.style.height = "1.5in"



    });
})();