Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly set http(s) and ".meta.js" for US.o updateUrls.

Refs #1474
  • Loading branch information...
commit a1a47a9966a4d7b0cd56cfeb578b4672b376f053 1 parent ecbde9d
@arantius arantius authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/script.js
View
6 modules/script.js
@@ -177,10 +177,10 @@ function Script_setUpdateURL(url) {
this._updateURL = url;
// US.o gets special treatment for being so large
var usoMatch = url.match(
- /^https?:\/\/userscripts.org\/scripts\/\w+\/(\d+).*\.user\.js/);
+ /^(https?:\/\/)userscripts.org\/scripts\/\w+\/(\d+).*\.user\.js/);
if (usoMatch) {
- this._updateURL = 'http://userscripts.org/scripts/source/'
- + usoMatch[1] + '.user.js';
+ this._updateURL = usoMatch[1] + 'userscripts.org/scripts/source/'
+ + usoMatch[2] + '.meta.js';
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.