Universal Zoom Control

Add zoom in/out buttons to every website

Stan na 07-06-2025. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
SheeshTony
Oceny
0 0 0
Wersja
1.0
Utworzono
07-06-2025
Zaktualizowano
07-06-2025
Rozmiar
14,2 KB
Licencja
Brak licencji
Dotyczy
Wszystkie strony

This userscript will add floating zoom controls to every website you visit. Here's what it includes:

  • Zoom In (+) and Zoom Out (−) buttons
  • Reset button (⌂) to return to 100% zoom
  • Live zoom percentage display
  • Draggable controls - you can move them anywhere on the page
  • Keyboard shortcuts: Ctrl+Plus, Ctrl+Minus, Ctrl+0
  • Persistent zoom levels - remembers your zoom setting per site
  • Zoom range: 50% to 300%

🔄 Fully Draggable

  • Click and drag anywhere on the control panel (except buttons/slider) to move it
  • Position is automatically saved and restored
  • Prevents dragging conflicts with interactive elements

👁 Hide/Show Toggle

  • Purple eye button to hide/show the controls
  • When hidden, only a small portion remains visible for easy access
  • Keyboard shortcut: Alt + H
  • Eye icon changes when hidden (👁 → 👀)

🌫 Transparency Control

  • Slider at the bottom to adjust transparency (30% to 100%)
  • Real-time transparency adjustment
  • Affects both the background and shadow opacity
  • Setting is saved and restored

💾 Enhanced Settings Persistence

  • Saves zoom level, transparency, hide/show state, and position
  • All settings are restored when you revisit the site
  • Uses a single JSON object for better organization

Controls Layout:

[−] 100% [+] [⌂] [👁]  ← Main controls
[👁] ————————————————  ← Transparency slider

All Keyboard Shortcuts:

  • Ctrl + Plus: Zoom in
  • Ctrl + Minus: Zoom out
  • Ctrl + 0: Reset zoom
  • Alt + H: Hide/show controls

Usage Tips:

  1. Drag: Click empty space around buttons and drag to reposition
  2. Hide: Click the purple eye or press Alt+H to slide controls off-screen
  3. Transparency: Use the bottom slider to make controls more/less visible
  4. Reset: The home button (⌂) resets zoom to 100%

The controls now have a smooth sliding animation when hiding/showing and all your preferences are remembered across page visits!

Installation:

  1. Install Tampermonkey extension in Firefox
  2. Click the Tampermonkey icon → "Create a new script"
  3. Replace the default code with this script
  4. Save (Ctrl+S)
  5. The script will automatically run on all websites

Usage:

  • The controls appear as a dark floating panel in the top-right corner
  • Click and drag to reposition the controls anywhere on the page
  • Use the buttons or keyboard shortcuts to zoom
  • Your zoom level is saved per website

The script uses both CSS zoom and transform: scale() properties for maximum browser compatibility. The controls have a modern dark theme with smooth hover effects and won't interfere with website functionality.