brianonn
4/27/2015 - 10:36 PM

This is an example showing Gist capability and how to auto update

This is an example showing Gist capability and how to auto update

// ==UserScript==
// @name         EXAMPLE SCRIPT
// @version      0.5
// @description  This is an example showing Gist capability and how to auto update
// @author       ballparts
// @include      http://*.koalabeast.com*
// @include      http://*.jukejuice.com*
// @include      http://*.newcompte.fr*
// @grant        none
// @updateURL    https://gist.github.com/ballparts/2665c9ed01b265289c11/raw/example.meta.js
// @downloadURL  https://gist.github.com/ballparts/2665c9ed01b265289c11/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);



// ==UserScript==
// @name         EXAMPLE SCRIPT
// @version      0.5
// @description  This is an example showing Gist capability and how to auto update
// @author       ballparts
// @include      http://*.koalabeast.com*
// @include      http://*.jukejuice.com*
// @include      http://*.newcompte.fr*
// @grant        none
// @updateURL    https://gist.github.com/ballparts/2665c9ed01b265289c11/raw/example.meta.js
// @downloadURL  https://gist.github.com/ballparts/2665c9ed01b265289c11/raw/example.user.js
// ==/UserScript==