button for me Jstris short

2021/07/20

目前為 2021-07-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         button for me Jstris short
// @namespace    http://tampermonkey.net/
// @version      1.32
// @description  2021/07/20
// @author       ore100
// @match        https://*.jstris.jezevec10.com/*
// ==/UserScript==

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

/*
myCanvas.style.marginTop="1.3in";//場地下移
bgLayer.style.marginTop="1.3in";//場地方塊下移
holdCanvas.style.marginTop="1.3in";//保存下移
rstage.style.marginTop="1.3in";//預覽下移
rstage.style.position="absolute";
rstage.style.left="3.6in";


//The following is bigger
//bgLayer.style.transform="scale(1.1,1.1) translate(5px,1in)";myCanvas.style.transform="scale(1.1,1.1) translate(5px,1in)";bgLayer.style.maxHeight="5in";myCanvas.style.maxHeight="5in";


gstats.style.marginTop="-5in";//秒數上移
gstats.style.left="40px";//秒數置中
gstats.style.maxWidth="1.8in";//限制大小
gstats.style.maxHeight="1.4in";//限制大小
gstats.style.position="absolute";
buttonsBox.style.bottom="4.9in";//設置按鈕上移
buttonsBox.style.left="190px";//設置按鈕偏右
buttonsBox.style.maxWidth="1.8in";//限制大小
buttonsBox.style.maxHeight="1.4in";//限制大小
buttonsBox.style.position="absolute";


rInfoBox.style.bottom="5in";//剩餘行數上移
rInfoBox.style.left="-6px";
//rInfoBox.style.transform="translate(-6px,-5in)";
*/

      lrem.style.filter =
"sepia(1) brightness(0.5) hue-rotate(24deg) saturate(5550) brightness(206%)";
      //剩餘行數亮色
      //秒數亮色
        glstats.style.filter =
            "sepia(1) brightness(0.5) hue-rotate(24deg) saturate(5550) brightness(206%)";
loadSkin("https://i.imgur.com/8BwH4ih.png",18);

// The following are custom buttons
//buttons | x:position| y:position| width| length
keys = `
⤓"0"97"1"1.2
↷"-96"10"1"1.2
↶"-96"10"1"1.2
→"0"10"1"1.2
←"0"10"1"1.2
↓"190"-96"1"1
田"0"-155"1"1
⇄"-286"10"1"1
⟳"-190"-86"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
    }
}
});
})();
/*
        //document.getElementById("app").style["background-color"]="#222";
pure bg
Center Ready GO
        var customStyle2=document.createElement("style");
        customStyle2.innerHTML='.gCapt {margin-left: 20px}';
        document.body.appendChild(customStyle2);
*/

QingJ © 2025

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