-
Notifications
You must be signed in to change notification settings - Fork 50
lukaw3d explorer bookmarklets
Luka Jeran edited this page Jan 22, 2026
·
3 revisions
switch to nexus.prd API
javascript:
if (!(['http://localhost:1234', 'https://explorer.oasis.io', 'https://explorer.stg.oasis.io', 'https://explorer.dev.oasis.io'].includes(location.origin) || location.origin.endsWith('.oasis-explorer.pages.dev'))) throw 'must click while on e.g. https://explorer.oasis.io';
newTab = window.open(location.href, '_blank');
origOpen = newTab.XMLHttpRequest.prototype.open;
newTab.XMLHttpRequest.prototype.open = function () {
arguments[1] = arguments[1]
.replace('https://nexus.oasis.io/v1/', 'https://nexus.prd.oasis.io/v1/')
.replace('https://testnet.nexus.oasis.io/v1/', 'https://testnet.nexus.prd.oasis.io/v1/');
return origOpen.apply(this, arguments);
};switch dev/local
javascript:;if (location.origin !== 'https://explorer.dev.oasis.io') open(location.href.replace(location.origin, 'https://explorer.dev.oasis.io'), '_blank');if (location.origin !== 'http://localhost:1234') open(location.href.replace(location.origin, 'http://localhost:1234'), '_blank');undefined;tile frontend dev/local
javascript:/*%20http://localhost:1234/%20*/;tab1=open(location.href.replace(location.origin,%20'https://explorer.dev.oasis.io').replace(location.hash,%20'')%20+%20'#root',%20'_blank',%20'left=100,top=100,width=500,height=1000');tab2=open(location.href.replace(location.origin,%20'http://localhost:1234').replace(location.hash,%20'')%20+%20'#root',%20'_blank',%20'left=600,top=100,width=500,height=1000');if%20(location.origin.includes('oasis-explorer.pages.dev'))%20tab3=open(location.href.replace(location.hash,%20'')%20+%20'#root',%20'_blank',%20'left=1100,top=100,width=500,height=1000');undefined;tile backend prd stg blue
javascript:/*%20http://localhost:1234/%20*/;/*%20https://nexus.prd.oasis.io/v1/sapphire/events?limit=1000&type=evm.log%20*/;if%20(location.origin.includes(%27nexus%27))%20{%20%20tab1%20=%20open(location.href.replace(location.origin,%20location.origin.includes(%27testnet%27)%20?%20%27https://testnet.nexus.prd.oasis.io%27%20:%20%27https://nexus.prd.oasis.io%27),%20%27_blank%27,%20%27left=100,top=100,width=500,height=1000%27);%20%20tab2%20=%20open(location.href.replace(location.origin,%20location.origin.includes(%27testnet%27)%20?%20%27https://testnet.nexus.stg.oasis.io%27%20:%20%27https://nexus.stg.oasis.io%27),%20%27_blank%27,%20%27left=600,top=100,width=500,height=1000%27);%20%20tab3%20=%20open(location.href.replace(location.origin,%20location.origin.includes(%27testnet%27)%20?%20%27https://nexus-blue-testnet.prd0-gke.oasis.io%27%20:%20%27https://nexus-blue-mainnet.prd0-gke.oasis.io%27),%20%27_blank%27,%20%27left=1100,top=100,width=500,height=1000%27);%20%20throw%20%27api%27;};;tab1%20=%20open(location.href.replace(location.hash,%20%27%27)%20+%20%27#prd',%20'_blank',%20'left=100,top=100,width=500,height=1000');tab2%20=%20open(location.href.replace(location.hash,%20'')%20+%20'#stg',%20'_blank',%20'left=600,top=100,width=500,height=1000');tab3%20=%20open(location.href.replace(location.hash,%20'')%20+%20'#blue',%20'_blank',%20'left=1100,top=100,width=500,height=1000');;origOpen1%20=%20tab1.XMLHttpRequest.prototype.open;tab1.XMLHttpRequest.prototype.open%20=%20function%20()%20{;%20%20arguments[1]%20=%20arguments[1].replace('https://nexus.oasis.io/v1/',%20'https://nexus.prd.oasis.io/v1/');%20%20arguments[1]%20=%20arguments[1].replace('https://testnet.nexus.oasis.io/v1/',%20'https://testnet.nexus.prd.oasis.io/v1/');%20%20return%20origOpen1.apply(this,%20arguments);};;origOpen2%20=%20tab2.XMLHttpRequest.prototype.open;tab2.XMLHttpRequest.prototype.open%20=%20function%20()%20{;%20%20arguments[1]%20=%20arguments[1].replace('https://nexus.oasis.io/v1/',%20'https://nexus.stg.oasis.io/v1/');%20%20arguments[1]%20=%20arguments[1].replace('https://testnet.nexus.oasis.io/v1/',%20'https://testnet.nexus.stg.oasis.io/v1/');%20%20return%20origOpen2.apply(this,%20arguments);};;origOpen3%20=%20tab3.XMLHttpRequest.prototype.open;tab3.XMLHttpRequest.prototype.open%20=%20function%20()%20{;%20%20arguments[1]%20=%20arguments[1].replace('https://nexus.oasis.io/v1/',%20'https://nexus-blue-mainnet.prd0-gke.oasis.io/v1/');%20%20arguments[1]%20=%20arguments[1].replace('https://testnet.nexus.oasis.io/v1/',%20'https://nexus-blue-testnet.prd0-gke.oasis.io/v1/');%20%20return%20origOpen3.apply(this,%20arguments);};undefined;decode 4bytes
javascript:/*%20use%20on%20https://explorer.dev.oasis.io/mainnet/sapphire/tx/0x7f870fa081a644c29fb1afbb7ec5d7446b71eac5ac19929a34734fd5bd2338a0%20*/;sig%20=%20[...document.querySelectorAll('dt')].find(a%20=%3E%20a.textContent%20===%20'Raw%20Data').nextElementSibling.textContent.substring(0,%2010);open('https://www.4byte.directory/signatures/?bytes4_signature=%27+sig,%20%27_blank%27);open(%27https://www.etherface.io/hash?q=%27+sig,%20%27_blank%27);try to verify contract with contained metadata (bytecode sometimes links to ipfs with everything needed to submit to sourcify)
javascript:open('https://lukaw3d.github.io/sourcify-submit-ipfs/?address=%27+location.href.match(/0x[a-zA-Z0-9]{40}/)[0],%20%27_blank%27)