Etherscan EasyRead

change timestamp on etherscan, make it easier to be analysised.

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         Etherscan EasyRead
// @namespace    http://tampermonkey.net/
// @version      0.6
// @description  change timestamp on etherscan, make it easier to be analysised.
// @author       verazuo
// @match        https://etherscan.io/address/*
// @match        https://etherscan.io/txs?*
// @match        https://etherscan.io/txsInternal?*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var t;
    if (window.location.href.match("https://etherscan.io/address/")){
        t = document.getElementById("transactions");
    } else if (window.location.href.match("https://etherscan.io/txsInternal?")){
        t = document.getElementsByClassName("card-body")[0];
    } else if (window.location.href.match("https://etherscan.io/txs?")){
        t = document.getElementById("ContentPlaceHolder1_mainrow");
    }

    var trs = t.getElementsByTagName('tr');

	for (var i=1;i<trs.length;i++)
	{
		var tr = trs[i].getElementsByTagName("td");
        if(tr.length < 3){
            continue;
        }
        var span;
        if (window.location.href.match("https://etherscan.io/txsInternal?")){
			span = tr[1].getElementsByTagName("span")[0];
        } else {
        	span = tr[2].getElementsByTagName("span")[0];
        }
        if (span === undefined){
 			continue;
        }
        var date = new Date(span.title);
        var myDate = date.getFullYear() + "-" + ("0" + (date.getMonth() + 1)).slice(-2) + "-" + ("0" + date.getDate()).slice(-2) + " " + ("0" + date.getHours()).slice(-2) + ":" + ("0" + date.getMinutes()).slice(-2)+ ":" + ("0" + date.getSeconds()).slice(-2);
        span.innerHTML=myDate;
    }
})();