aboutsummaryrefslogtreecommitdiffstats
path: root/godoc-links.user.js
diff options
context:
space:
mode:
authorTeddy Wing2020-03-22 16:29:27 +0100
committerTeddy Wing2020-03-22 16:29:27 +0100
commit024fcf1a943b403c3d25c636f1a379c5bc3d28c8 (patch)
tree39c584db925d632b84c0833f6c6005fe346347fe /godoc-links.user.js
parentb4ce866006e835e55f91426e2957d1ec24b72e91 (diff)
downloadgodoc-links-024fcf1a943b403c3d25c636f1a379c5bc3d28c8.tar.bz2
Add a UserScript header
Diffstat (limited to 'godoc-links.user.js')
-rw-r--r--godoc-links.user.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/godoc-links.user.js b/godoc-links.user.js
index 0543fc4..8f92fc5 100644
--- a/godoc-links.user.js
+++ b/godoc-links.user.js
@@ -1,3 +1,12 @@
+// ==UserScript==
+// @name GoDoc Links
+// @description Add GoDoc documentation links to relevant pages
+// @namespace com.teddywing
+// @match https://godoc.org/*
+// @match https://pkg.go.dev/*
+// @match https://github.com/*
+// ==/UserScript==
+
function init () {
switch (window.location.hostname) {
case 'godoc.org':