button for me Jstris short

2020/8/11

目前為 2020-08-20 提交的版本,檢視 最新版本

 // ==UserScript==
// @name         button for me Jstris short
// @namespace    http://tampermonkey.net/
// @version      1.30
// @description  2020/8/11
// @author       ore100
// @match        https://*.jstris.jezevec10.com/*
// @grant        none
// ==/UserScript==

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


loadSkin("https://i.imgur.com/8BwH4ih.png",18);
//pure bg
        //document.getElementById("app").style["background-color"]="#222";
//Center 10-wide
        //myCanvas.style.marginLeft = "20px"
        //bgLayer.style.marginLeft = "20px"
//Center Ready GO
        //var customStyle2=document.createElement("style");
        //customStyle2.innerHTML='.gCapt {margin-left: 20px}';
        //document.body.appendChild(customStyle2);
//buttons position x,y,width,length
keys = `
⤓"4"97"1.1"1.2
↷"-96"10"1"1.2
↶"-96"10"1"1.2
→"0"10"1"1.2
←"-4"10"1.1"1.2
↓"190"-106"1"1
田"0"-122"1"1
⇄"-286"0"1"1
⟳"-190"-106"1"1
`
lines = keys.split("\n")
ids = ["", "tc-hd", "tc-c", "tc-cc", "tc-r", "tc-l", "tc-d", "tc-vs", "tc-h", "tc-dr"]

for (var i = 0; i < lines.length; i++) {
    if(lines[i]){
        pos = lines[i].split("\"")
        style = "scale(" + pos[3] + "," + pos[4] + ") translate(" + pos[1] + "px," + pos[2] + "px)"
        document.getElementById(ids[i]).style.transform=style
    }
}
});
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址