One of the first things I’ve noticed in Firefox 57 was the Pocket button in the address bar and the additional actions in the menu on the right. Then, while using Pocket I right clicked and selected Remove from Address Bar
. Good, this removed Pocket from there but, ugh, how do I return it back? And what about placing other buttons will I use often like the new Take a Screenshot
action?
Turns out there isn’t a way to configure the predefined actions through the UI or at least I didn’t find it. Good news is that since this is Firefox you can always use about:config
and find the setting controlling those actions. The setting you need in this case is called browser.pageActions.persistedActions
.
- In Firefox address bar type
about:config
. When asked confirm you know what you are doing. -
In the search bar at the top type
browser.pageActions.persistedActions
-
You’ll notice that the value on the right is JSON value. Copy it and paste it in a text editor: Notepad++, VS Code, Atom…
{ "version":1, "ids":["bookmark","bookmarkSeparator","copyURL","emailLink","sendToDevice","pocket","screenshots"], "idsInUrlbar":["pocket","bookmark"] }
- The property you care about is
idsInUrlbar
. Add any of the predefined ids from the ids array in it.Example:
{ "version":1, "ids":["bookmark","bookmarkSeparator","copyURL","emailLink","sendToDevice","pocket","screenshots"], "idsInUrlbar":["screenshots","copyURL","bookmark"] }
Warning: Be careful not to break the JSON. If not sure validate your final result in a site like jsonlint.com.
-
Restart Firefox and you’ll see the predefined actions you’ve added to
idsInUrlbar
show in the address bar.
Turns out extension can add more page actions in the address bar based on your location. Can’t wait to see more of them using this amazing feature.
Thanks for this. Is it possible to move page actions – as well as reader view – from the address bar to the toolbar overflow menu?
I don’t think that’s possible right now unless someone creates a plugin doing this. Perhaps Mozilla will add this in future versions.