Reposition replay stats script

moves replay stats to the left

  1. // ==UserScript==
  2. // @name Reposition replay stats script
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.31
  5. // @description moves replay stats to the left
  6. // @author Oki
  7. // @match https://*.jstris.jezevec10.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. /******************************
  12. Reposition replay stats script
  13. ******************************/
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. window.addEventListener('load', function(){
  19.  
  20. var website = "jstris.jezevec10.com"
  21. var url = window.location.href
  22. var parts = url.split("/")
  23.  
  24. if(parts[3]=="replay" && parts[2].endsWith(website) && parts.length>4){
  25.  
  26. if(parts[4]!="1v1"){
  27.  
  28.  
  29. var stat1 = document.querySelector("#statTable")
  30.  
  31. var vertPos = 400
  32. var horPos = -200
  33.  
  34. stat1.style.position = "absolute"
  35. stat1.style.left = horPos + "px"
  36. stat1.style.top = vertPos + "px"
  37.  
  38.  
  39. }
  40. }
  41.  
  42.  
  43. });
  44. })();