[Pkg-mozext-commits] [greasemonkey] 01/12: Remove two more references to us.o.
David Prévot
taffit at moszumanska.debian.org
Wed Jun 11 21:36:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit d0765bec8f734ceb5722cf273aa7b277c66d6b6b
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Wed May 28 16:03:46 2014 -0400
Remove two more references to us.o.
Refs #1884
---
content/addons4-overlay.js | 2 +-
modules/script.js | 10 ++--------
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/content/addons4-overlay.js b/content/addons4-overlay.js
index 196b3cf..6571c33 100644
--- a/content/addons4-overlay.js
+++ b/content/addons4-overlay.js
@@ -295,5 +295,5 @@ function unload() {
function GM_openUserscriptsOrg() {
var chromeWin = GM_util.getBrowserWindow();
chromeWin.gBrowser.selectedTab = chromeWin.gBrowser.addTab(
- 'http://userscripts.org');
+ 'http://wiki.greasespot.net/User_Script_Hosting');
}
diff --git a/modules/script.js b/modules/script.js
index c41e1e2..7e443c3 100644
--- a/modules/script.js
+++ b/modules/script.js
@@ -26,12 +26,6 @@ AddonManager.getAddonByID(GM_GUID, function(addon) {
});
-function usoFix(aUrl) {
- return aUrl && aUrl.replace(
- 'http://userscripts.org/', 'https://userscripts.org/');
-}
-
-
function Script(configNode) {
this._observers = [];
@@ -148,7 +142,7 @@ function Script_getDescription() { return this._description; });
Script.prototype.__defineGetter__('downloadURL',
function Script_getDownloadUrl() { return this._downloadURL; });
Script.prototype.__defineSetter__('downloadURL',
-function Script_setDownloadUrl(aVal) { this._downloadURL = usoFix(aVal); });
+function Script_setDownloadUrl(aVal) { this._downloadURL = '' + aVal; });
Script.prototype.__defineGetter__('uuid',
function Script_getUuid() { return this._uuid; });
@@ -218,7 +212,7 @@ function Script_getFile() {
Script.prototype.__defineGetter__('updateURL',
function Script_getUpdateURL() { return this._updateURL || this.downloadURL; });
Script.prototype.__defineSetter__('updateURL',
-function Script_setUpdateURL(url) { this._updateURL = usoFix(url); });
+function Script_setUpdateURL(url) { this._updateURL = '' + url; });
Script.prototype.__defineGetter__('updateIsSecure',
function Script_getUpdateIsSecure() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list