xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
1.06k stars 88 forks source link

Extensions Update Checker stopped working recently #307

Closed nollinvoyd closed 5 months ago

nollinvoyd commented 5 months ago

That's about it. Just stopped reporting updates about a week ago. I have the latest version.

https://github.com/xiaoxiaoflood/firefox-scripts?tab=readme-ov-file

dimdamin commented 5 months ago
-    const { AddonManager, BrowserOpenAddonsMgr } = Services.wm.getMostRecentBrowserWindow();
+    const { AddonManager, BrowserAddonUI } = Services.wm.getMostRecentBrowserWindow();

-      BrowserOpenAddonsMgr('addons://updates/available');
+      BrowserAddonUI.openAddonsMgr('addons://updates/available');

tested in 128b4

nollinvoyd commented 5 months ago

Like this?

observe: async function () { const { AddonManager, BrowserAddonUI } = Services.wm.getMostRecentBrowserWindow(); let addons = await AddonManager.getAllAddons(); if (addons.some(addon => addon.updateInstall && !this.ignoreList.includes(addon.name))) BrowserAddonUI.openAddonsMgr('addons://updates/available'); }, ``

nollinvoyd commented 5 months ago

Like this?

observe: async function () { const { AddonManager, BrowserAddonUI } = Services.wm.getMostRecentBrowserWindow(); let addons = await AddonManager.getAllAddons(); if (addons.some(addon => addon.updateInstall && !this.ignoreList.includes(addon.name))) BrowserAddonUI.openAddonsMgr('addons://updates/available'); }, ``

tested in 128b4

How did you test it? I installed a previous version of one of my addons, but I don't know if it only works for updates that were just released, or how long it takes to do it's job.

dimdamin commented 5 months ago

How did you test it?

If you have addon update, this script open about:addons page and switch to Available Updates.

nollinvoyd commented 5 months ago

It works. Thanks!

nollinvoyd commented 5 months ago

The changes by @dimdamin corrected the problem.

Avrution commented 5 days ago

Doesn't seem to be working in 115 even with the changes. Is there a way to manually test the script?