Code Monkey home page Code Monkey logo

Comments (3)

jamielinux avatar jamielinux commented on June 13, 2024

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:

  1. Enable the Browser Console command-line.
  2. Open the Browser Console.
  3. Run FullZoom._cps2.setGlobal(FullZoom.name,1.33,gBrowser.selectedBrowser.loadContext); where 1.33 is the zoom level you want Ctrl-0 to reset things to (in this case 133%).

from default-zoom.

DarwinAwardWinner avatar DarwinAwardWinner commented on June 13, 2024

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.

jamielinux avatar jamielinux commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.