diff options
author | Teddy Wing | 2020-03-22 14:08:27 +0100 |
---|---|---|
committer | Teddy Wing | 2020-03-22 14:08:27 +0100 |
commit | 4c9c33f634077f20a38f71cddf393813ce423273 (patch) | |
tree | 320b9e9362ca755f2a9ae29bf2c256710f9a35be | |
download | godoc-links-4c9c33f634077f20a38f71cddf393813ce423273.tar.bz2 |
Add a link to the source code on godoc.org
Makes the `import "..."` line a link to the package's source code.
-rw-r--r-- | godoc-links.user.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/godoc-links.user.js b/godoc-links.user.js new file mode 100644 index 0000000..3a202ee --- /dev/null +++ b/godoc-links.user.js @@ -0,0 +1 @@ +document.body.innerHTML = document.body.innerHTML.replace(/import "([^"]+)"/, 'import "<a href="https://$1">$1</a>"') |