How to enable the Greaseemonkey "Find Updates" context menu

First Greasemonkey script I'm a writer , so there might be something really simple that I am missing. Ruined, but simply could not find it ...

My script metadata:

// ==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 tags @updateUrl and @downloadUrl should do the trick. But the "Find Updates" context menu in GM is not enabled for the script (this is for the others that I installed):

enter image description here

What I did wrong?

+4
source share
1 answer

At first it looked like a mistake, but it wasn’t quite so.

The script in your question uses:

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

He doesn't talk about this in the documentation , but Greasemonkey directives are case sensitive!

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

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


When I fixed the case in your code, the menu item Find Updates became active. You may need to remove the script, make changes, and then reinstall.


In my opinion, this is a bad design for Greasemonkey. This is, of course, an important flaw in the documentation. You can record a function request to capture this case sensitivity. Perhaps the lead developer will agree with this.

+5
source

All Articles