VanishIt

Make any page element disappear effortlessly using a quick Alt+Right-click.

These are versions of this script where the code was updated. Show all versions.

  • v2.0 24. 11. 2025

    Visual improvements

    • Rounded corners (8px) and enhanced double-layer shadow
    • Hover scale effect (1.02x) and user-select disabled
    • Smooth animations: menu fade-in/out with scale transitions
    • Element deletion animation (fade-out + scale to 0.8, 300ms)

    New features

    • Red outline preview on targeted element before deletion
    • Adaptive color based on theme (bright/dark red)
    • Outline persists while menu is open, auto-removes on close

    Technical

    • Added highlightTarget() and removeHighlight() functions
    • CSS transitions for all animations with ease curve
  • v1.2 10. 06. 2025

    Added

    • Dark theme support using prefers-color-scheme: dark.
    • Automatic detection of system theme (light/dark) on initial load.
    • Dynamic theme switching: responds to system theme changes in real time using matchMedia().addEventListener('change', ...).

    Changed

    • Reorganized inline styles to dynamically reflect the current theme.
    • Replaced hardcoded light theme styles with conditionally applied values based on system preferences.

    Fixed

    • mouseover and mouseout styles are now also theme-aware, ensuring consistent appearance in both themes.
  • v1.1 08. 06. 2025

    Changelog v1.1 (from v1.0)

    • Fixed positioning: Switched popup to position: fixed (never clipped by parent overflow)
    • Max z‑index: Set z‑index to browser max (2147483647)
    • Capture‑phase listeners: Run event handlers before site scripts
    • HTML append: Append menu to <html> instead of <body>
    • Esc‑key support: Added Escape key to close the menu
  • v1.0 01. 04. 2025