Code Monkey home page Code Monkey logo

default-zoom's Introduction

Default Zoom extension for Firefox

Set the default zoom level for Firefox. Useful for QHD or HiDPI monitors, or if you don't like squinting.

  • Set your desired default zoom level. If unset, the add-on will default to 100%.
  • Per-site zoom is respected (with one exception, see below).

How does this compare to other add-ons?

Other zoom add-ons have more features and might suit you better.

This add-on makes some trade-offs to be as tiny as possible. It's just 30 lines of JavaScript (whereas others are 1000s of lines). It doesn't use browser storage other than a single option for the default zoom level. It requests almost no permissions.

Per-site zoom levels

Per-site zoom levels are respected, with one exception: a zoom level of 100% is always overridden after you reload. (Reason: There's a limitation in the WebExtension API. Other add-ons solve that by storing per-site zoom level entries for every website you visit. This add-on avoids that by only zooming when the zoom of the current tab is 100%, which is fine because 100% was too small for you anyway!)

Why is this add-on even necessary?

You can't easily set the default zoom level for new tabs in Firefox. There are four options:

  1. Change layout.css.devPixelsPerPx in about:config, but this also changes the UI of the browser itself.
  2. Change zoom.minPercent in about:config, but then you can't reduce the zoom below that value.
  3. Run this in the Browser Console command-line: FullZoom._cps2.setGlobal(FullZoom.name,1.33,gBrowser.selectedBrowser.loadContext);, but you have to press Ctrl-0 for every new tab.
  4. Install an add-on. There are many to choose from.

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.