forked from icpantsparti/browser-bits
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfirefox-extensions-list-with-last-updated-order.js
18 lines (17 loc) · 1.34 KB
/
firefox-extensions-list-with-last-updated-order.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Name : firefox-extensions-list-with-last-updated-order.js
// Project : https://github.com/icpantsparti2/browser-bits
// Version : 2023.04.13
// File/Update : https://raw.githubusercontent.com/icpantsparti2/browser-bits/main/javascript/firefox-extensions-list-with-last-updated-order.js
// License (MIT): https://raw.githubusercontent.com/icpantsparti2/browser-bits/main/LICENSE
//
// This code lists when your extensions were "Last Updated" on your Firefox
// (the same date shown when you click on an extension under 'about:addons')
//
// To run:
// (1) select and copy the code below
// (2) open the 'about:addons' page (Ctrl+Shift+A)
// (3) open the Web Console (Ctrl+Shift+K or F12/Console)
// (4) paste the code into the input box
// (5) press Ctrl+<Enter> to execute the code
// (6) if you need to copy/paste the result use right click and "Copy Object"
javascript:AddonManager.getAddonsByTypes(["extension"]).then(addons=>{var list=`/* (${new Date().toJSON()}) Firefox Extensions List with Last Updated Order */\n`;addons.sort((a,b)=>{return a.updateDate-b.updateDate}).forEach(addon=>{if(!(addon.isBuiltin||addon.isSystem)){list+=`${addon.updateDate?addon.updateDate.toJSON():""}\t${addon.name}\t${addon.isActive}\t${addon.version}\thttps://addons.mozilla.org/firefox/addon/${encodeURI(addon.id)}\n`};});console.log(list);});