Greasemonkey脚本没有更新

Har*_*rma 7 greasemonkey

我有一个带有以下元块的greasemonkey脚本 -

// ==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==
Run Code Online (Sandbox Code Playgroud)

即使我更新服务器上的脚本并增加版本(例如从0.2到0.4),Greasemonkey也不会更新已安装的脚本.此外,在Firefox中的Greasemonkey用户脚本管理页面中,"查找更新"和"强制查找更新"显示为灰色.我究竟做错了什么?

小智 5

您不需要设置 @downloadURL 或 @updateURL 来确保您的脚本更新。如果这些值不存在,所有最新的用户脚本管理器都使用一种新方法来检查更新。但是如果你要设置它们至少使用元 url 来节省我的带宽。

// @updateURL https://openuserjs.org/meta/harshilsharma63/TDF_Improved_Dark_Skin.meta.js
Run Code Online (Sandbox Code Playgroud)

来源:我运行 OpenUserJS.org 并实现了 Greasemonkey 更新程序的初始版本。


Bro*_*ams 4

这似乎是Greasemonkey Bug #1938。它应该在 Greasemonkey 的下一版本(版本 2.1)中修复。


另外,检查about:configextensions.greasemonkey.enableUpdateChecking是否未设置该值也没有什么坏处。(对于较新安装的 GM+FF,密钥可能不存在。)false