Last active
December 18, 2023 01:42
-
-
Save jbryson3/daabe54f25c4f71d6dee to your computer and use it in GitHub Desktop.
This is an example showing Gist capability and how to auto update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name EXAMPLE SCRIPT | |
// @version 0.8 | |
// @description This is an example showing Gist capability and how to auto update | |
// @author jbryson3 | |
// @include https://www.google.com | |
// @grant none | |
// @updateURL https://gist.github.com/jbryson3/daabe54f25c4f71d6dee/raw/example.user.js | |
// @downloadURL https://gist.github.com/jbryson3/daabe54f25c4f71d6dee/raw/example.user.js | |
// ==/UserScript== | |
//////////////////////////////////// | |
// TO MAKE THE SCRIPT AUTO-UPDATE // | |
//////////////////////////////////// | |
// The format for the updateURL and download URL links above is as follows: | |
// https://gist.github.com/<USER_NAME>/<GIST_ID>/raw/<GIST_FILE_NAME> | |
// Get the GIST_ID from the URL of the main gist page for this gist (not the raw link page) | |
// This is just to show when the script has updated. | |
alert('you are running version ' + GM_info.script.version); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment