Skip to content

Feature request: Add alternating background color for grouping erc20 transfers per tx #22

@Philx0

Description

@Philx0

Navigating erc-20 transfers can be quite tedious, I would propose adding background colors to group erc-20 transfers accord to tx hash.

chrome_21h15_16-03-24-(151)

The paths that can benefit from this:

https://etherscan.io/tokentxns?a=*
https://etherscan.io/token/*
https://etherscan.io/address/*

I've made userscripts for it some years ago for use with eg tampermonkey, so don't judge the quality please 😄
For instance, for the https://etherscan.io/address/* path:

// ==UserScript==
// @name         color txs /adress/
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  color txs /adress/
// @author       Philx0
// @match        https://etherscan.io/address/*
// @match        https://bscscan.com/address/*
// @match        https://ftmscan.com/address/*
// @match        https://arbiscan.io/address/*
// @match        https://snowtrace.io/address/*

// @grant        none
// ==/UserScript==

(function() {
    'use strict';

function color(){
    try{
        let lastTx = "" ;
        var iframe = document.getElementById("tokenpageiframe");
        let rows= iframe.contentWindow.document.getElementsByClassName("table table-hover")[0].children[1].children
        let lastColor = false

        for(var i = 0; i<rows.length;i++){
            let tx=rows[i].children[1].innerText
            if(lastTx != tx){
                lastColor = !lastColor
            }
            rows[i].style.backgroundColor = lastColor ? "#e0e0d1" : "white"
            lastTx=tx
        }
    }catch(Exception){
        console.log("trying color again")
        setTimeout(color, 1500)
    }
}
color()
})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions