diff --git a/javascript/Solanabeach-RedirectToSolscan.js b/javascript/Solanabeach-RedirectToSolscan.js new file mode 100644 index 0000000..e14f078 --- /dev/null +++ b/javascript/Solanabeach-RedirectToSolscan.js @@ -0,0 +1,19 @@ +// ==UserScript== +// @name Redirect TX to Solscan +// @namespace http://tampermonkey.net/ +// @version 1.0 +// @description Redirects to solscan, the better site +// @author WTMike24 +// @match https://solanabeach.io/transaction/* +// @icon https://www.google.com/s2/favicons?domain=solanabeach.io +// @grant none +// ==/UserScript== + +(function() { + 'use strict'; + + // Your code here... + var addr=window.location.toString() + addr=addr.replace("solanabeach","solscan").replace("transaction","tx") + window.location = addr +})();