I need to host a userscript on an internal company website. How do I build the href
so that Greasemonkey will install the userscript when the link is clicked?
Your link should look like:
<a href="https://example.com/your_script.user.js">Click to install script X</a>
<small>(A userscript engine, like Tampermonkey, is required.)</small>
In order for your install link to work, the following conditions must be met:
.user.js
. Example: stack_exchange_edit_reasoner.user.js
Also, if you wish for automatic updates to work, the script should be served via an https
link (or it gets complicated).