Greasy Fork is available in English.

Previews Script

adjust the amount of previews shown

  1. // ==UserScript==
  2. // @name Previews Script
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description adjust the amount of previews shown
  6. // @author Oki
  7. // @match https://*.jstris.jezevec10.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. /**************************
  12. Previews Script
  13. **************************/
  14.  
  15. (function() {
  16. window.addEventListener('load', function(){
  17.  
  18. var previewOption = document.createElement("tr");
  19. 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>'
  20. tab_settings.children[1].appendChild(previewOption);
  21.  
  22. window.refreshPreviews = function() {
  23. previewSetting.innerHTML=previewControl.value;
  24. queueCanvas.style.clipPath=`inset(0px 0px ${360-72*previewControl.value}px 0px)`
  25. split = document.getElementsByClassName("queueCopy");
  26. for (x of split) {
  27. x.style.visibility = x.id[9] < previewControl.value ? "visible" : "hidden"
  28. }
  29. }
  30.  
  31.  
  32.  
  33.  
  34. });
  35. })();