Previews Script

adjust the amount of previews shown

Stan na 18-09-2020. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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"
	}
}




    });
})();