|
Posted by: stak
Tags: mozilla, taptapwrap
Posted on: 2012-06-28 17:08:05
I wanted to try writing an add-on for the new Firefox for Android. So I did. I saw a lot of comments in the Google Play store complaining about lack of text reflow and readability in general, so I decided to implement something that might help with that. It ended up a little different from what I had initially imagined, but it does help when you try to zoom in to a block of text by double-tapping, and it's still too small to read.
Basically the add-on grabs the text you double-tapped on, and bumps up the font size on it so that it is at least 0.5 inches tall at the new zoom level, which should make it readable. If you double-tap on it again to zoom out it gets restored to how it was originally.
You can see the source on Github: staktrace/taptapwrap, or grab the XPI. It works on all currently-available versions of the new native UI Fennec (14, 15, 16). Feedback (and pull requests) are very welcome.
If you would like to try writing an add-on, I would suggest starting at this page: Addons developer guide. It took me a while to find that page among all of the other addon-related wiki pages (and in fact I started my addon my grabbing Matt Brubeck's Phony addon and replacing chunks of it with my browser.js monkey-patching).
|
|
(c) Kartikaya Gupta, 2004-2024. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!
|