Sunday, May 5, 2024
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 4825  / 2 Years ago, tue, february 1, 2022, 7:45:02

What is the command line to show the list of all installed extensions on the firefox browser? Is there any. I checked man firefox but did not help.


More From » command-line

 Answers
0

Give a try to this grep oneliner command to list all the firefox addons,



grep -oP '(?<=},"name":")([^"]*)' ~/.mozilla/firefox/*.default/addons.json


OR



This worked for me:



user@host:~$ cat ~/.mozilla/firefox/*.default/addons.json |
python -c 'import json,sys;obj=json.load(sys.stdin);
for (i, x) in enumerate(obj["addons"]):
print x["name"]' | uniq


Output in my case:



Clean Links
Tee-Timer


Explanation:




  • cat ~/.mozilla/firefox/*.default/addons.json: reads the addons.json file in each profile.

  • python -c 'import json,sys;obj=json.load(sys.stdin); load the json parser library of python and loads json via stdin (standard input), ergo from cat

  • for (i, x) in enumerate(obj["addons"]): phyton code to loop through the array of addons...

  • print x["name"]' | uniq ...and print its name only one.


[#24536] Wednesday, February 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uestred

Total Points: 464
Total Questions: 104
Total Answers: 112

Location: Israel
Member since Wed, Apr 14, 2021
3 Years ago
uestred questions
;