Extending the dashboard
Adding custom CSS/JS using a browser extension
1. Making the flags clickable (view IP geolocation info)
function makeFlagsClickable() {
const IPchips = document.querySelectorAll('.MuiTableRow-root td:nth-child(3)');
for(node of IPchips) {
const IP = node.getAttribute('value');
const a = node.querySelector('a');
const flag = a.previousSibling;
flag.style.cursor = 'pointer'
flag.style.outline = '2px dashed lightblue';
const geoIPURL = 'https://whatismyipaddress.com/ip/' + IP;
flag.title = geoIPURL;
flag.onclick = function() {
window.open(geoIPURL, '_blank').focus();
}
}
}
setInterval(makeFlagsClickable, 2000);
Last updated