I’ve been investigating options for improving user control over content, including persisting user decisions about appearance and behavior and overriding global preferences on a site-specific basis.
To test some ideas about how to do these things, I put together a prototype that implements a basic service for persisting site-specific preferences to a profile database.
The prototype also includes some experimental UI in the form of a sidebar into which controls for twiddling site-specific preferences can be placed. The sidebar currently contains one such control: a slider that sets the text zoom value (i.e. what View > Text Size > Increase/Decrease/Normal sets).
I’ve bundled up the prototype into an extension called (boringly) Content Preferences for Firefox 2 and up and posted it to addons. While it undergoes review on that site, the eager among you can get it from my web site: Install Content Preferences.
It should go without saying that this is early, rough alpha code, and you should exercise all due caution when testing it. To try it out, do the normal install and restart thing, then select View > Sidebar > Content Preferences.
Your feedback is welcomed.
Some voluminous notes for the compulsive informaddicts among you:
View > Text Size Impact
Once you install the extension, the View > Text Size menu items and their keyboard shortcuts also become site-specific and profile-persistent (i.e. lasts as long as your profile does). So even if you never open the sidebar, you still get the benefits of the extension with the existing text zoom UI.
If you uninstall the extension, that UI goes back to the way it was before (i.e. tab-specific and tab-persistent). No permanent harm done (AFAICT, YMMV, etc.).
The sidebar slider’s magnification range is 1-400%, which is somewhat smaller than the View > Text Size commands’ range of 1-2000%, but the smaller range seemed more usable. The slider will follow any changes you make via View > Text Size as far as it can, then it’ll sit there lonely at the end of its range until you come back to it.
What is a Site?
A “site,” for the purposes of this early prototype, is the set of pages hosted at the exact same domain name (f.e. everything on en-us.www.mozilla.com).
As David Baron has pointed out, figuring out what constitutes a site is an important component of an endeavour like this, so future prototypes will experiment with TLD+1 (*.mozilla.com) sites, www-optional sites (www.mozilla.com == mozilla.com), and anything else that seems promising.
Perhaps multiple domains secured by certificates granted to the same organization should count as one site?
Fixing Font Size on the Web
Finally, I’m aware of multiple proposals for fixing the font size settings in Firefox so they’re easier to use and get things right more of the time. And I’m also aware that the more we can get stuff like font size right without making users configure it themselves, the better.
This prototype doesn’t constitute a proposal for dealing with font size, it’s more an experiment in how to improve usability with persistence and site-specificity. I picked on text zoom only because itty-bitty fonts seem to be among the commoner complaints about the web, and also because hacking into text zoom seemed like a good testbed.
Even if we solve text size issues some other way, there will be other uses for the core service this extension provides. For example, Dave Camp overheard me describing this experiment a couple days ago and mentioned that he’s been looking for a way for users to grant additional DOMStorage space to particular sites. A site-specific preference service sounds like just his ticket.