-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Navigating erc-20 transfers can be quite tedious, I would propose adding background colors to group erc-20 transfers accord to tx hash.
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()
})();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
