MozillaZine

[Ext] PrefBar - The all in one button container

Announce and Discuss the Latest Theme and Extension Releases.
morat
 
Posts: 2363
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 2nd, 2017, 10:09 am

Did the nsILocalFile interface and nsIFilePicker.show() also get removed in Fx 57? I noticed other devs patching these.

dickvl wrote:removing one character

You can also fix it like so...

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);

Removal of nsILocalFile and other interfaces
http://groups.google.com/forum/#!topic/ ... bQIuLNv_2s

Alternatives...

I can still use the mozilla.cfg file in Fx Beta 57.

Example: viewtopic.php?p=14752460#p14752460

Infocatcher got the Custom Buttons extension working in Fx Nightly 57.

http://custombuttons.sourceforge.net/forum/viewtopic.php?f=5&t=3743&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/foxygestures/wiki/User-Scripts

Examples: viewtopic.php?f=23&t=3033676

Foxy Gestures only has a few permissions.

http://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/cookies
http://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/downloads
http://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/sessions
http://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/storage
http://developer.mozilla.org/en-US/Add-ons/WebExtensions/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-ons/WebExtensions/API/tabs/captureVisibleTab
http://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/executeScript
http://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/insertCSS

I hope someone creates a similar extension for buttons inside the browser action popup.

cabriolet2
 
Posts: 21
Joined: June 5th, 2013, 11:55 am

Post Posted October 4th, 2017, 1:27 pm

First of all thank you. I only use Colors, Fonts, Min. Font Size. There are millions of us that can't look at bright-white backgrounds for more than a few seconds because it hurts the eyes. So I set my own font & color, but some pages are not usable without color. FF settings are there but many clicks away, so this is a one-click toggle, without it FF is useless for me.

As for alternatives, they've all stopped working. Prefbar works in FF 56.0 since your last update, after that I'm putting FF on Ignore in Update Manager.

M-Reimer
 
Posts: 71
Joined: July 2nd, 2013, 4:29 am

Post Posted October 4th, 2017, 2:30 pm

I've created an addon to replace this feature:
https://addons.mozilla.org/en-US/firefo ... itecolors/
The possibility to change the colors is already available on my GIT repo.
So far this is fixed to "default disabled", but actually it would be pretty easy to make this a choice in the settings page to modify all website colors by default and disable this effect if needed...

cabriolet2
 
Posts: 21
Joined: June 5th, 2013, 11:55 am

Post Posted October 5th, 2017, 5:01 am

Toolbar buttons are the most convenient. I've moved Prefbar widget to the menu bar so it looks like this, always visible & accessible with a single click:

File Edit View History Bookmarks Tools Help | [ ] Colors [ ] Fonts [v] Min Font Size

I'm surprised that FF devs don't understand basic usability/accessibility in app design. Instead they're just copying Chrome and adding more useless bling. All apps must comply with users' OS global settings. Who wants to look at bright white backgrounds with tiny unreadable fonts and ugly colors? All my tabs have the same background & font of MY choice, I'm interested in page content, not some web designer's idea of art. Thanks again.

M-Reimer
 
Posts: 71
Joined: July 2nd, 2013, 4:29 am

Post Posted October 5th, 2017, 8:14 am

It wouldn't be that difficult to add an (optional) toolbar button to the "Toggle Website Colors" Addon. I'll have a look at this.

rocco.xyz
 
Posts: 24
Joined: December 28th, 2015, 10:54 pm

Post Posted October 18th, 2017, 2:02 pm

Hi friends
Could you help me create two buttons for the PrefBar? [-o< one to show the window "Exceptions..." and another one for the window "Saved Logins...", those that are in "about: preferences#security" honestly I have no idea how to create this type of buttons... I could barely create some checkboxes for some options of "about: config"... :oops:
I would also like to know if it is possible to create a checkbox to toggle activate/deactivate an extension, specifically: uBlock Origin (it is restartless)
I know that extension has a huge button to "disable on this site" but in some web pages Firefox becomes "unresponsive" and it is impossible for me to disable uBlock for that site at that moment (and I am forced to kill the process with Win+R "cmd /k taskkill /f /im "Firefox.exe"), so I would like to try if disabling it "from the root" (before the page load) Firefox feels more stable.
Im using Firefox 55.0.3 x64 and PrefBar 7.1.1.
Thanks in advance. :)

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 2 guests