Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Greasemonkey script not updating

Tags:

greasemonkey

I have a greasemonkey script with following meta block-

// ==UserScript==
// @name    TDF  Improved Dark Skin
// @namespace   TDF
// @include http://www.digit.in/forum/
// @copyright   harshilsharma63
// @author  harshilsharma63
// @author  harshilsharma63
// @downloadURL https://openuserjs.org/install/harshilsharma63/TDF_Improved_Dark_Skin.user.js
// @updateURL https://openuserjs.org/install/harshilsharma63/TDF_Improved_Dark_Skin.user.js
// @grant none
// @version 0.4
// ==/UserScript==

Even if I update the script on the server and increase the version (e.g. from 0.2 to 0.4), Greasemonkey doesn't update the installed script. Also, in Greasemonkey's user script management page in Firefox, the "find updates" and "forced find updates" are grayed out. What am I doing wrong?

like image 835
Harshil Sharma Avatar asked Jul 20 '14 06:07

Harshil Sharma


2 Answers

You don't need to set @downloadURL or @updateURL to make sure your script updates. All the latest user script managers use a new method to check for updates if those values aren't present. But if you are going to set them at least use the meta url to conserve my bandwidth.

// @updateURL https://openuserjs.org/meta/harshilsharma63/TDF_Improved_Dark_Skin.meta.js

Source: I run OpenUserJS.org and implemented the initial version of the Greasemonkey updater.

like image 80
sizzlemctwizzle Avatar answered Oct 02 '22 04:10

sizzlemctwizzle


This appears to be Greasemonkey Bug #1938. It should be fixed in the next release of Greasemonkey (Version 2.1).


Also, it never hurts to check that extensions.greasemonkey.enableUpdateChecking is not set to false in about:config. (The key may not be present for newer installations of GM+FF.)

like image 23
Brock Adams Avatar answered Oct 02 '22 04:10

Brock Adams