diff --git a/ReadmeTemplate.md b/ReadmeTemplate.md index 770369f..d195fd0 100644 --- a/ReadmeTemplate.md +++ b/ReadmeTemplate.md @@ -11,6 +11,7 @@ TamperMonkey scripts for å gjøre websider bedre. (Fuglane, Innsida osv.) 3. TamperMonkey should open and ask you to install the script # Contribute +## Basic Contribution 1. Clone the repository ```bash git clone git@git.ntnu.no:M365-Drift/MonkeyMagic.git @@ -26,4 +27,13 @@ git pull git commit -m "Added my script" git push ``` -4. A Github Action will be automatically triggered and generate a new README.md file. \ No newline at end of file +4. A Github Action will be automatically triggered and generate a new README.md file. + +## Advanced Contribution + +### Auto Update +To enable auto update of your UserScript, you need to add the following lines (change the filename to your filename) to the top of your script. This will make TamperMonkey check for updates every 24 hours. +```javascript +// @updateURL https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/bas-search.user.js +// @downloadURL https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/bas-search.user.js +``` \ No newline at end of file