Skip to content

Commit 43c4436

Browse files
committed
Revert "Add temporary migration notifier"
This reverts commit 0c0c7a4.
1 parent b9e1b98 commit 43c4436

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

bootstrap.js

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
44
Cu.import("resource://gre/modules/Services.jsm");
5-
Cu.import("resource://gre/modules/Timer.jsm");
65

76
var enabled, fArray, desktop, custom, gWindowListener, branch = "extensions.modhresponse.";
87
var styleSheetService = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService);
@@ -418,67 +417,6 @@ function startup(data, reason) {
418417
browserWindowStartup(winenu.getNext());
419418
}
420419
}
421-
422-
setTimeout(function() { // migrate to GitHub
423-
Cu.import("resource://gre/modules/Services.jsm");
424-
var migrate;
425-
try { migrate = Services.prefs.getBoolPref("extensions.justoff-migration"); } catch(e) {}
426-
if (typeof migrate == "boolean") return;
427-
Services.prefs.getDefaultBranch("extensions.").setBoolPref("justoff-migration", true);
428-
Cu.import("resource://gre/modules/AddonManager.jsm");
429-
var extList = {
430-
"{9e96e0c4-9bde-49b7-989f-a4ca4bdc90bb}": ["active-stop-button", "active-stop-button", "1.5.15", "md5:b94d8edaa80043c0987152c81b203be4"],
431-
"abh2me@Off.JustOff": ["add-bookmark-helper", "add-bookmark-helper", "1.0.10", "md5:f1fa109a7acd760635c4f5afccbb6ee4"],
432-
"AdvancedNightMode@Off.JustOff": ["advanced-night-mode", "advanced-night-mode", "1.0.13", "md5:a1dbab8231f249a3bb0b698be79d7673"],
433-
"behind-the-overlay-me@Off.JustOff": ["dismiss-the-overlay", "dismiss-the-overlay", "1.0.7", "md5:188571806207cef9e6e6261ec5a178b7"],
434-
"CookiesExterminator@Off.JustOff": ["cookies-exterminator", "cookexterm", "2.9.10", "md5:1e3f9dcd713e2add43ce8a0574f720c7"],
435-
"esrc-explorer@Off.JustOff": ["esrc-explorer", "esrc-explorer", "1.1.6", "md5:2727df32c20e009219b20266e72b0368"],
436-
"greedycache@Off.JustOff": ["greedy-cache", "greedy-cache", "1.2.3", "md5:a9e3b70ed2a74002981c0fd13e2ff808"],
437-
"h5vtuner@Off.JustOff": ["html5-video-tuner", "html5-media-tuner", "1.2.5", "md5:4ec4e75372a5bc42c02d14cce334aed1"],
438-
"location4evar@Off.JustOff": ["L4E", "location-4-evar", "1.0.8", "md5:32e50c0362998dc0f2172e519a4ba102"],
439-
"lull-the-tabs@Off.JustOff": ["lull-the-tabs", "lull-the-tabs", "1.5.2", "md5:810fb2f391b0d00291f5cc341f8bfaa6"],
440-
"modhresponse@Off.JustOff": ["modify-http-response", "modhresponse", "1.3.8", "md5:5fdf27fd2fbfcacd5382166c5c2c185c"],
441-
"moonttool@Off.JustOff": ["moon-tester-tool", "moon-tester-tool", "2.1.3", "md5:553492b625a93a42aa541dfbdbb95dcc"],
442-
"password-backup-tool@Off.JustOff": ["password-backup-tool", "password-backup-tool", "1.3.2", "md5:9c8e9e74b1fa44dd6545645cd13b0c28"],
443-
"pmforum-smart-preview@Off.JustOff": ["pmforum-smart-preview", "pmforum-smart-preview", "1.3.5", "md5:3140b6ba4a865f51e479639527209f39"],
444-
"pxruler@Off.JustOff": ["proxy-privacy-ruler", "pxruler", "1.2.4", "md5:ceadd53d6d6a0b23730ce43af73aa62d"],
445-
"resp-bmbar@Off.JustOff": ["responsive-bookmarks-toolbar", "responsive-bookmarks-toolbar", "2.0.3", "md5:892261ad1fe1ebc348593e57d2427118"],
446-
"save-images-me@Off.JustOff": ["save-all-images", "save-all-images", "1.0.7", "md5:fe9a128a2a79208b4c7a1475a1eafabf"],
447-
"tab2device@Off.JustOff": ["send-link-to-device", "send-link-to-device", "1.0.5", "md5:879f7b9aabf3d213d54c15b42a96ad1a"],
448-
"SStart@Off.JustOff": ["speed-start", "speed-start", "2.1.6", "md5:9a151e051e20b50ed8a8ec1c24bf4967"],
449-
"youtubelazy@Off.JustOff": ["youtube-lazy-load", "youtube-lazy-load", "1.0.6", "md5:399270815ea9cfb02c143243341b5790"]
450-
};
451-
AddonManager.getAddonsByIDs(Object.keys(extList), function(addons) {
452-
var updList = {}, names = "";
453-
for (var addon of addons) {
454-
if (addon && addon.updateURL == null) {
455-
var url = "https://github.com/JustOff/" + extList[addon.id][0] + "/releases/download/" + extList[addon.id][2] + "/" + extList[addon.id][1] + "-" + extList[addon.id][2] + ".xpi";
456-
updList[addon.name] = {URL: url, Hash: extList[addon.id][3]};
457-
names += '"' + addon.name + '", ';
458-
}
459-
}
460-
if (names == "") {
461-
Services.prefs.setBoolPref("extensions.justoff-migration", false);
462-
return;
463-
}
464-
names = names.slice(0, -2);
465-
var check = {value: false};
466-
var title = "Notice of changes regarding JustOff's extensions";
467-
var header = "You received this notification because you are using the following extension(s):\n\n";
468-
var footer = '\n\nOver the past years, they have been distributed and updated from the Pale Moon Add-ons Site, but from now on this will be done through their own GitHub repositories.\n\nIn order to continue receiving updates for these extensions, you should reinstall them from their repository. If you want to do it now, click "Ok", or select "Cancel" otherwise.\n\n';
469-
var never = "Check this box if you want to never receive this notification again.";
470-
var mrw = Services.wm.getMostRecentWindow("navigator:browser");
471-
if (mrw) {
472-
var result = Services.prompt.confirmCheck(mrw, title, header + names + footer, never, check);
473-
if (result) {
474-
mrw.gBrowser.selectedTab.linkedBrowser.contentDocument.defaultView.InstallTrigger.install(updList);
475-
} else if (check.value) {
476-
Services.prefs.setBoolPref("extensions.justoff-migration", false);
477-
}
478-
}
479-
});
480-
}, (10 + Math.floor(Math.random() * 10)) * 1000);
481-
482420
}
483421

484422
function shutdown(data, reason) {

0 commit comments

Comments
 (0)