Previews Script

adjust the amount of previews shown

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Previews Script
// @namespace    http://tampermonkey.net/
// @version      0.3
// @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="refreshPreviews()" 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);

window.refreshPreviews = function() {
	previewSetting.innerHTML=previewControl.value;
	queueCanvas.style.clipPath=`inset(0px 0px ${360-72*previewControl.value}px 0px)`
	split = document.getElementsByClassName("queueCopy");
	for (x of split) {
		x.style.visibility = x.id[9] < previewControl.value ? "visible" : "hidden"
	}
}




    });
})();