跳到内容

Eco Mode

v1.3.3

ronchiluca · 2026年5月27日 上架

Dim inactive sessions with a configurable, accessible overlay — lowers visual energy on OLED screens and nudges focused browsing.

正在使用
20+
评分
暂无
累计下载
549
最近更新
2026年6月1日
需要 WordPress 5.8+已测试到 6.9.12PHP 7.2+

贡献者

截图

The overlay as seen by a visitor after the idle period.
The overlay as seen by a visitor after the idle period.
The settings page with idle time, opacity, and language options.
The settings page with idle time, opacity, and language options.
Exclusion rules for URL paths and CSS selectors.
Exclusion rules for URL paths and CSS selectors.

Eco Mode displays a soft overlay on pages that have been inactive for a configurable amount of time. The overlay can lower power draw on OLED/AMOLED screens, reduce visual fatigue, and act as a gentle reminder to visitors who have walked away from their screen.

Key features

  • Configurable idle time from 15 seconds up to 1 hour.
  • Adjustable overlay opacity (70–100%).
  • Optional logo display.
  • Smart return-from-hidden behavior: require an explicit click or scroll before the overlay dismisses, useful on multi-tab sessions.
  • Works with the most common browsers (Chrome, Edge, Firefox, Safari) and handles the back-forward cache.
  • Throttled event handling keeps the overlay lightweight.
  • Accessible: ARIA dialog role, focus trap on the resume button, keyboard support (Enter, Space, Escape).
  • Five built-in languages (English, Italian, French, German, Spanish) with per-language custom messages.
  • Exclude specific URL paths or CSS selectors from triggering the overlay.
  • WooCommerce aware: cart, checkout, and account pages are skipped by default.
  • Mobile-aware: disabled by default on phones.
  • Respects prefers-reduced-motion.
  • Optional console debug mode to verify timer, activity events, and overlay lifecycle.
  • No visitor tracking; only aggregate overlay impressions are counted locally in WordPress.

For developers

Two filters are provided for advanced customization:

  • eco_mode_should_run — return false to disable the overlay for the current request.
  • eco_mode_frontend_config — modify the configuration object passed to the frontend script.

A note on energy savings

Dark pixels consume less power only on OLED/AMOLED screens. On traditional LCD monitors the backlight is constant and the energy saving is negligible. Eco Mode also reduces visual load and lets the visitor know the session has been idle.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums