button for me jstris short

2020/7/27

目前為 2020-07-30 提交的版本,檢視 最新版本

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

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

//png bg
        //document.head.getElementsByTagName("style")[0].innerHTML="";
        //document.body.style.backgroundImage="url('https://i.imgur.com/4cgoabE.png')";
        //document.body.style.backgroundSize="100%";
        //document.getElementById("app").style.backgroundColor="rgba(0, 0, 0, 0)";
        //document.getElementById("app").style.height="1000px";
//pure bg
        //document.getElementById("app").style["background-color"]="#222";
        //loadSkin("https://i.imgur.com/8BwH4ih.png",18);
//center
        //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
settings = `
⤓    "0"   97"   1"   1.2
↷  "-96"  10"   1"   1.2
↶  "-92" -10"   1"   1.2
→    "7"  10"   1"   1.2
←    "7"  10"   1"   1.2
↓  "190"-100"   1"   1
田   "0"-122"   1"   1
⇄"-285"   0"   1"   1
⟳"-190"-106"   1"   1
`
lines = settings.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或关注我们的公众号极客氢云获取最新地址