Auto Zoom
sobota, 12 grudnia 2009
Dążenie do doskonałości
Ostatnio pisałem o rozszerzeniach (Chrome Rozszerzenia). Instalacja tych kilku drobiazgów, pozwoliła wyeliminować prawie wszystkie, przypadłości przeglądarki…
Poza jedną
Wyświetlany tekst był zbyt mały, a konieczność ciągłego powiększania odwiedzanych stron irytująca.
Odpowiednie rozwiązanie miałem już wcześniej w postaci prymitywnego skryptu Greasemonkey. Pozostało tylko dokonać kilka drobnych przeróbek, takich jak możliwość zmiany stopnia powiększenia i zapamiętywanie ustawień.
W efekcie powstało moje pierwsze rozszerzenie Google Chrome.
Oto rezultat
Krótki opis
- Automatyczne skalowanie odwiedzanych stron. Powiększenie jest zapamiętywane niezależnie dla każdej z nich.
- Domyślny stopień powiększenia/pomniejszenia nowo otwieranych stron można ustawić w
Opcjach
.
Na dziś Auto Zoom można obsługiwać tylko za pomocą myszki, sprawia też pewne problemy na stronach takich jak Google Reader.
Zachęcam do testowania
… i zapraszam wkrótce, postaram się napisać krótki tutorial na temat pisania rozszerzeń.
Etykiety: AutoZoom, chrome, programowanie, rozszerzenia
Red 01:00
Komentarze
![Anonymous](https://resources.blogblog.com/img/anon16-rounded.gif)
Niestety, zgodnie ze specyfikacją CSS style nie mają wpływu na wygląd strony podrzędnej – dotyczy to również skalowania.
Doraźnym rozwiązaniem jest mechanizm pluginów (page fixes) ingerujących w te konkretne strony. Dotychczas zrobiłem w ten sposób obsługę stron docs.google.com / mail.google.com i www.google.com/reader.
Być może w przyszłości uda mi się znaleźć lepsze rozwiązanie, mam dwa pomysły, ale nie chcę zapeszać.
We develop Ecwid, it is an AJAX shopping cart (http://www.ecwid.com). We faced with an issue with the AutoZoom extension and we would appreciate if you could look into it.
Our customers complain that If they use the Auto Zoom extension they are unable to use Drag and Drop feature.
Here are the steps to reproduce the issue:
1. Install and enable the Auto Zoom extension.
2. Open the page with Ecwid (for example http://www.ecwid.com/demo-frontend.html#ecwid:category=1002&mode=category&offset=0&sort=normal)
3. Zoom the page.
4. Try to drag a product to the basket.
The result: you can't drop a product to the basket. But if you switch the extension off the feature works fine.
Could you please check your extension?
Thank you.
Problems with drag & drop are known to me for a long time. Unfortunately, as the author of the extension, I am not able to fix bugs in Chrome and Webkit Engine.
There lot bug reports. Here are some of the most important (for me):
Issue 26466: Mouse clicks on the plugins are not scaled Properly When page is zoomed
Issue 30583: Zoom level get / set API
Issue 8947: Need a text-only zoom
Unfortunately, most of them have status "WontFix", which limits my possibilities in this case.
Recently I experimented with an alternative mechanism for scaling, I shall return to this shortly.
(There are also chances that Chrome 6 will finally, make this extension unnecessary)
Bug 30583 has been reopened. With this API AutoZoom will be able to use native zoom, without any hacks.