Closed nollinvoyd closed 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
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'); }, ``
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.
How did you test it?
If you have addon update, this script open about:addons page and switch to Available Updates.
It works. Thanks!
The changes by @dimdamin corrected the problem.
Doesn't seem to be working in 115 even with the changes. Is there a way to manually test the script?
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