Reposition replay stats script

moves replay stats to the left

اعتبارا من 10-07-2019. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Reposition replay stats script
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  moves replay stats to the left
// @author       Oki
// @match        https://*.jstris.jezevec10.com/*
// @grant        none
// ==/UserScript==

/******************************
Reposition replay stats script
******************************/

(function() {
    'use strict';

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

var website = "jstris.jezevec10.com"
var url = window.location.href
var parts = url.split("/")

if(parts[3]=="replay" && parts[2].endsWith(website) && parts.length>4){

    if(parts[4]!="1v1"){


var stat1 = document.querySelector("#stats table")
var stat2 = document.querySelector(".moreStats")

var wrapper = document.createElement('div');
wrapper.id = "bothStats"

stat1.parentNode.insertBefore(wrapper, stat1);
stat2.parentNode.insertBefore(wrapper, stat2);
wrapper.appendChild(stat1);
wrapper.appendChild(stat2);

var vertPos = -200
var horPos =  400

bothStats.style.position = "absolute"
bothStats.style.left = horPos + "px"
bothStats.style.top = vertPos + "px"



    }
}


    });
})();