From 908b55c17f21f34f7c4e0f0bf12dbabf2e7dd839 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 17 Aug 2015 12:44:01 -0700 Subject: [PATCH] Disable update checking properly in -noupdate userscript. --- src/General/meta/metadata.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/meta/metadata.js b/src/General/meta/metadata.js index b94334d47..b75a582d4 100755 --- a/src/General/meta/metadata.js +++ b/src/General/meta/metadata.js @@ -26,7 +26,7 @@ // @grant GM_openInTab // @grant GM_xmlhttpRequest // @run-at document-start -<% if (channel !== 'dev') { %><% if (channel !== 'noupdate') { %>// @updateURL <%= meta.downloads %><%= name %><%= meta.suffix[channel] %>.meta.js -<% } %>// @downloadURL <%= meta.downloads %><%= name %><%= meta.suffix[channel] %>.user.js +<% if (channel !== 'dev') { %>// @updateURL <%= (channel !== 'noupdate') ? (meta.downloads + name + meta.suffix[channel] + '.meta.js') : 'https://noupdate.invalid/' %> +// @downloadURL <%= (channel !== 'noupdate') ? (meta.downloads + name + meta.suffix[channel] + '.user.js') : 'https://noupdate.invalid/' %> <% } %>// @icon data:image/png;base64,<%= grunt.file.read('src/General/img/icon48.png', {encoding: 'base64'}) %> // ==/UserScript==