How do I add a userscript installation button to my web page?
问题 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? I tried a simple <a href="user.js">Install Userscript</a> but Chrome and Firefox simply show the file source instead of installing the userscript. 回答1: 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