From bd4ddcdde35924b4b0ac59beccef8d8fecb1ded8 Mon Sep 17 00:00:00 2001 From: WhatTheMike Date: Sat, 19 Feb 2022 12:49:35 -0500 Subject: [PATCH] Added solanabeach redirect script. --- javascript/Solanabeach-RedirectToSolscan.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 javascript/Solanabeach-RedirectToSolscan.js 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 +})();