VanishIt

透過快速 Alt+右鍵操作,輕鬆讓任何頁面元素消失。

這裡顯示腳本的所有版本。 只顯示彼此間有代碼差異的版本。

  • v2.0 2025-11-24

    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 2025-06-10

    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 2025-06-08

    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 2025-04-01