You can also fix it like so...dickvl wrote:removing one character
Code: Select all
var PrefBranch = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch2 || Components.interfaces.nsIPrefBranch);
Code: Select all
var executable = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile || Components.interfaces.nsIFile);
http://groups.google.com/forum/#!topic/ ... bQIuLNv_2s
Alternatives...
I can still use the mozilla.cfg file in Fx Beta 57.
Example: http://forums.mozillazine.org/viewtopic ... #p14752460
Infocatcher got the Custom Buttons extension working in Fx Nightly 57.
http://custombuttons.sourceforge.net/fo ... 3&start=40
http://addons.mozilla.org/firefox/user/Infocatcher/
I didn't test the extension in Fx Nightly 57. I can't get extensions installed in Fx Beta 57.
Foxy Gestures is a WebExtension. It can execute user scripts.
http://addons.mozilla.org/firefox/addon/foxy-gestures/
http://github.com/marklieberman/foxygestures
http://github.com/marklieberman/foxyges ... er-Scripts
Examples: http://forums.mozillazine.org/viewtopic ... &t=3033676
Foxy Gestures only has a few permissions.
http://developer.mozilla.org/en-US/Add- ... PI/cookies
http://developer.mozilla.org/en-US/Add- ... /downloads
http://developer.mozilla.org/en-US/Add- ... I/sessions
http://developer.mozilla.org/en-US/Add- ... PI/storage
http://developer.mozilla.org/en-US/Add- ... s/API/tabs
Foxy Gestures has no host permissions so I can't use methods like the following. I can't inject css into all frames without host permissions.
http://developer.mozilla.org/en-US/Add- ... VisibleTab
http://developer.mozilla.org/en-US/Add- ... cuteScript
http://developer.mozilla.org/en-US/Add- ... /insertCSS
I hope someone creates a similar extension for buttons inside the browser action popup.