Marcelo
Marcelo

Reputation: 4608

How to enable Greasemonkey's "Find Updates" context menu

First Greasemonkey script I'm writing, so there may be something really simple that I'm missing. Googled around but just can't find it...

The metadata of my script:

// ==UserScript==
// @name            Ordens de Batalha - MoD eBrasileiro
// @namespace       http://md-ebrasil.appspot.com/
// @description     Plugin para divulgação das ordens de batalha oficiais do eBrasil
// @include         http://www.erepublik.com/*
// @version         0.3.2
// @updateUrl       https://userscripts.org/scripts/source/153869.meta.js
// @downloadUrl     https://userscripts.org/scripts/source/153869.user.js
// @grant           GM_wait
// @grant           GM_xmlhttpRequest
// ==/UserScript==

According to the documentation, adding the @updateUrl and @downloadUrl tags should do the trick. But the "Find Updates" context menu in GM isn't enabled for the script (it is for others that I have installed):

enter image description here

What have I done wrong?

Upvotes: 4

Views: 1273

Answers (1)

Brock Adams
Brock Adams

Reputation: 93473

At first this looked like a bug, but it's not exactly.

The script in your question uses:

// @updateUrl       https ...
// @downloadUrl     https ...

It doesn't say it in the documentation, but Greasemonkey directives are case-sensitive!

So, in order for those values to be recognized, you must use:

// @updateURL       https ...
// @downloadURL     https ...


When I corrected the case in your code, the Find Updates menu item became active. You may need to uninstall the script, make the change, then reinstall.


To my mind, this is a poor design choice for Greasemonkey. It certainly is an important documentation omission. You can file a feature request to have this case-sensitivity fixed. Maybe the lead developer will agree it's a problem.

Upvotes: 5

Related Questions