Previews Script

adjust the amount of previews shown

目前为 2019-10-13 提交的版本。查看 最新版本

// ==UserScript==
// @name         Previews Script
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  adjust the amount of previews shown
// @author       Oki
// @match        https://*.jstris.jezevec10.com/*
// @grant        none
// ==/UserScript==

/**************************
    Previews Script        
**************************/

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

var previewOption = document.createElement("tr");
previewOption.innerHTML = '<td>Previews:</td><td style="width:100px"><input id="previewControl" oninput="previewSetting.innerHTML=previewControl.value;queueCanvas.style.clipPath=`inset(0px 0px ${360-72*previewControl.value}px 0px)`" type="range" min="0" max="5" value="5" step="1" style="width:100px;display:inline-block;padding-top:9px">&nbsp;&nbsp;<span id="previewSetting">5</span></td>'
tab_settings.children[1].appendChild(previewOption);


    });
})();