[Ext]Default FullZoom Level
Thank you very much. It works perfectly again. Windows NT 5.1 XP SP3; Using latest Firefox & TB, release builds.. and Firefox.beta channel build candidates.
Testing with latest Nightly and Aurora builds.
Yes indeed, as I just installed FF 4.0Beta1, and your updated version works well... With my 40ish eyesight this is a welcome relief... Thanks again... ![]() Mozilla/5.0 (Windows NT 6.0; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Thank you, Alice.
![]() I had previously reported through Add-on Compatibility Reporter that the Status Bar information for DFZL (i.e., "F100%", "T100%") was not displaying with DFZL 4.3 in Firefox4b4, though a blank space was in the Status Bar and a mouse-over showed that DFZL was in that blank space. Now using Firefox4b5, just installed DFZL 4.4pre (shows in add-ons display and install.rdf as version 4.31) and everything appears to be working perfectly. seems to be broken on 3.6.11
edit 4.3 works in 3.6.11 4.3.1 statusbar menu is missing and sites are not zoomed. Where are the site-specific settings kept? I tried removing this software and it kept my zoom level for each site. I just want to remove it and go back to normal viewing level.
Thanks.
It is not a thing peculiar to this extension. Ctrl + 0 to reset clear private history - Site preferences would do the same?
It is not same. I do not know what kind of data are stored in the Site preferences. Default is see http://support.mozilla.com/en-US/kb/Cle ... nt+history . At least, zoom levels are stored in the Site preferences. Thanks - Following Tools -> Clear Recent History and checking "Site Preferences" worked to reset them.
Please allow two suggestions for Default FullZoom Level:
1. Add a sub-menu to the statusbar/addonbar menu, allowing to modify the Default FullZoom Level quickly and easily: //in fullZoomBtn.js: if (zoom != 0) { arr.push(zoom); } //edit DefaultSubmenu var bundle = document.getElementById("bundle_defaultfullzoomlevel"); var submenu = document.createElement('menu'); submenu.setAttribute("label", bundle.getString('globalmenu')); popup.appendChild(submenu); var menupopup = document.createElement('menupopup'); submenu.appendChild(menupopup); for (var i=0; i<arr.length; i++) { var menuitem = document.createElement('menuitem'); var s = ' '+ (arr[i]).toString(); menuitem.setAttribute('label',s.substr(s.length - 4, 4) + '%'); menuitem.setAttribute('type','radio'); menuitem.setAttribute('oncommand','fullZoomBtn.setZoomDefault(' + arr[i]/100 + ');'); var gv = Math.floor(FullZoom.globalValue * 100 + 0.5); if (arr[i] == gv) menuitem.setAttribute('checked',true); menupopup.appendChild(menuitem); } //edit end for (var i=0; i<arr.length; i++) { var menuitem = document.createElement('menuitem'); var s = ' '+ (arr[i]).toString(); //edit DefaultSubmenu setZoomDefault: function(zoomdefault) { var gPrefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); gPrefService.setIntPref("extensions.browser.zoom.fullZoom.default", zoomdefault * 100); }, //edit end 2. Do not change the zoom of the current page if the global preference changed Even if there is no site-specific preference, usually the zoom settings are already stored to a tab by setTabValue. Applying the new global preference to the tab will not last long since the old zoom level stored in tab will be restored as soon as the tab location changes. Thus you see two zoom modifications in a few seconds what I considered as annoying. Alternatively update the TabValue "FullZoomLevel" for the selected tab in onContentPrefSet too. onContentPrefSet: function FullZoom_onContentPrefSet(aGroup, aName, aValue) { var url = this.convURI(gBrowser.currentURI); if (aGroup == this._cps.grouper.group(url)) this._applyPrefToSetting(aName, aValue); /* edit else if (aGroup == null) { this.globalValue = this._ensureValid(aValue, 'ContentPref: aValue'); // If the current page doesn't have a site-specific preference, // then its zoom should be set to the new global preference now that // the global preference has changed. if (!this._cps.hasPref(url, aName)) this._applyPrefToSetting(aName); } */ //edit end },
Thanks for your suggestion. But I do not need such feature. And it is being difficult to maintain the function that I do not use, so I do not intend to change it. May I ask what is especially difficult to maintain that function?
It uses the same means as your onPopupShowing function. I am maintaining 10 own add-ons on AMO, all together with more than a million active users. I always tried to add requested functionality if useful. Please reconsider adding it, even if you personally don't need it. It's just 2 minutes work, now as I already posted the working code. And what about the second point? It's an inconsistency in behavior.
Sorry, I do not need such feature. Please fork the extension with own risk, I have no objection that. Ok, I see the author is not interested in supporting any user requests.
In case someone is interested in my modified version of Default FullZoom Level, it may be installed from here: http://netticat.ath.cx/MyAddons/MyAddon ... artyaddons Return to Extension/Theme Releases Who is onlineUsers browsing this forum: No registered users and 0 guests |
![]() |