Created
April 4, 2018 00:09
-
-
Save pchw/4af5d9045e4e4cca4ad206a9a09c5654 to your computer and use it in GitHub Desktop.
nta.go.jpのURLをnta-go.comで変換して遷移するようにするブックマークレット
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() {document.querySelectorAll('a').forEach(function(e) {if (e.href) {var h = e.href;if (/https?:\/\/www\.nta\.go\.jp/.test(h)) {e.href = h.replace(/^http/, 'https://api.nta-go.com/redirect?url=http');e.text = '[★]' + e.text;}}});})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment