Comments (8)
Hi @PLyczkowski, it's a complicated issue, the problem is that I don't know if that's desirable. Imagine perhaps that someone wants to zoom an image in yahoo.com to see it closer.
That would create a rule for the entire site, which may not be what most people want.
There's also the problem on how to do it, I think it's possible, but I'm more concern with whether it's something that the extension needs.
Maybe I could add a button to the popup icon that says, save current zoom?
I'm all in for making the extension more simple.
from fixedzoom.
Regarding grabbing the zoom stored by firefox, there is one case when it's impossible: when the stored zoom is 100%. Firefox doesn't say when the zoom is saved by the user and when it's set by the browser itself. So that I'm afraid I can't do it as far as I know.
from fixedzoom.
Imagine perhaps that someone wants to zoom an image in yahoo.com
Give an example url so we are on the same page (literally). As far as I can see your addon just does whole pages, not single images.
In the case of a internet gallery of some sort, I would think that if a user zooms in on a single image page (example https://www.deviantart.com/raichiyo33/art/SpiderGwen-764779624 ), then he/she wants all the single image pages on that site to be zoomed in.
Maybe I could add a button to the popup icon that says, save current zoom?
I would prefer an option, off by default, called "Save site rule on manual zoom change" or something like that.
from fixedzoom.
As far as I can see your addon just does whole pages, not single images.
This image
https://www.reddit.com/r/FindTheSniper/comments/9efbmv/find_the_sniper/
, I usually just want the zoom to stay the same as before after I zoom in.
I would prefer an option, off by default, called "Save site rule on manual zoom change" or something like that.
I can't intercept all the zoom changes made by the user, you said ctrl + / - which may be possible but firefox has many ways of changing the zoom. For example ctrl + wheel, pinching a touchscreen, if you mess around the settings you can use alt / shift + wheel or disable the wheel changes altogether.
All this things are not accessible to the extension developer AFIK.
from fixedzoom.
I played a couple of hours with this but I can't do it.
(technical explanation)
The browser behaves really weird on some sites for example if I change the zoom to 90% I may see this on tabs.onZoomChange https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/onZoomChange
Tab: 1 zoomed
Old zoom: 1
New zoom: 0.9
Tab: 1 zoomed
Old zoom: 0.9
New zoom: 1
Tab: 1 zoomed
Old zoom: 1
New zoom: 0.9
Sometimes it just fails silently and doesn't execute the handler, I'm out of my depth with this.
from fixedzoom.
I see. Thanks for trying though!
from fixedzoom.
Figured out how to implement it but there's one catch: you have to wait for the page to finish loading for the zoom to be saved. I haven't tested it thoroughly but it should work.
To enable it go to advanced settings:
Version (1.9)
from fixedzoom.
Nice! Thanks!
from fixedzoom.
Related Issues (20)
- manifest.json doesn't provide a valid id HOT 1
- The zoom slider's bar isn't visible HOT 4
- Rules weirdness HOT 2
- After deleting addon, and reset zoom to 100%, zoom setting is not persistent. HOT 15
- Customize zoom by display? HOT 7
- Modify the extension zoom level with a hotkey HOT 1
- Light icon for dark themes HOT 9
- Different profiles for the extension HOT 3
- how to create a profile for local HTML files HOT 3
- zooming in on images HOT 2
- Impossible to install addon on Firefox ESR 64bit on Linux HOT 4
- All browser windows mis-titled HOT 4
- Zoom applied in private window HOT 1
- Not working in Firefox 70.0
- Actually use variable complete HOT 10
- Cannot input domain with dash HOT 1
- Set custom zoom to all internal config tabs HOT 8
- Choose a license HOT 1
- Don't change zoom for all tabs when the browser starts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fixedzoom.