Comments (3)
Hi @DarwinAwardWinner, thanks for your feature request!
I like the idea, but I'm not sure that WebExtensions allow you to override default keyboard shortcuts.
I couldn't find anything definitive. There's a bug report that seems undecided on whether it should be allowed, and there are reports of inconsistencies across platforms. But I tried it myself (with Firefox on Linux) and couldn't get Ctrl+0
to work; it only seemed to play nice when using a random shortcut Firefox wasn't already using.
A workaround is to:
- Enable the Browser Console command-line.
- Open the Browser Console.
- Run
FullZoom._cps2.setGlobal(FullZoom.name,1.33,gBrowser.selectedBrowser.loadContext);
where1.33
is the zoom level you wantCtrl-0
to reset things to (in this case 133%).
from default-zoom.
I wonder if you could write a user script script to run this on every startup. (I assume the user would have to set it up manually, since the extension itself doesn't have the permissions.)
from default-zoom.
After you run that command, the setting persists after you close Firefox which is handy :) And as a bonus you get Ctrl+0
that does the Right Thing. The problem is, as you correctly mentioned, you can't do exactly the same with an extension.
from default-zoom.
Related Issues (9)
- Can you make one for Chrome?
- In dark mode, the color scheme of the control panel makes reading difficult
- When changing the zoom value on the extension. Only new site are impacted HOT 3
- Default Zoom broken on Firefox 66 HOT 1
- Different #anchors treated as different sites HOT 3
- Home page zoom always reset to default HOT 2
- Where are the controls for this addon? HOT 3
- Not working in latest firefox 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 default-zoom.