Auto Updater for UserJS

Forums » Opera for Windows/Mac/Linux » Desktop wish-list

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

3. May 2010, 07:48:19

QuHno

read a book!

Posts: 1037

Auto Updater for UserJS

Several website enhancement scripts need updates on a regular basis because some websites often change their code. At the moment there are some script based solutions for this but it would be fine, if this functionality could be integrated into the browser itself like it is for the browser.js

Suggestion:
Adding the following lines to the standard head of a UserJS should trigger Opera to look for an update at the specified address after the specified time and ask the user if the script should be updated, if hash or version are changed.

// ==UserScript==
...
// @version (mandatory, may be a hash value)
// @updater (true|false, defaults to false if not present)
// @updateUrl (here goes the URL, mandatory if updater == true)
// @interval (seconds, mandatory if updater == true)
...
// ==/UserScript==[/url]
Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

Forums » Opera for Windows/Mac/Linux » Desktop wish-list