Linux 软件免费装
Banner图

Harbor – Display Preferences

开发者 harboraccessibility
更新时间 2026年11月17日 03:41
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

accessibility font size readability contrast reduced motion

下载

1.1.0

详情介绍:

Harbor adds a small "Display Preferences" button to every page of your site. A visitor who opens it can change how your pages look for them: Their choices are saved in their own browser and come back on their next visit, applied before the page first paints. Nobody else sees a change, and your pages are not touched. Harbor follows the visitor's operating system first. If they already ask their device for reduced motion or higher contrast, Harbor starts from that. When Windows high contrast (forced colours) is already repainting the page, Harbor's own colour options switch off so they don't fight it. Text size, spacing and the other settings still work. If bigger text would make the page scroll sideways on a narrow screen, Harbor steps the setting down until it fits, and tells the visitor it did. If your theme fixes its text size so the text control cannot reach it, the panel says so and points to the device's own zoom, rather than showing a setting that changed nothing. What it does not do This matters more than the feature list, so it comes first in our own documentation too. Setup There isn't any. Activate the plugin and the button appears. There is no account, no signup and no settings page. Privacy Everything runs in the visitor's browser from files this plugin installs on your own site. The plugin contacts no other server. If a visitor changes a setting, one localStorage entry named harbor.v1 on your domain holds it, and it is never sent anywhere. The plugin adds suggested wording to Settings > Privacy, so your own privacy policy can mention it. Source code The scripts in assets/js/ are built with esbuild from the readable source in the plugin's src/ folder. head.js and panel.js are the two entry points; every other file there is imported by one of them. To rebuild them from the plugin folder: npx esbuild src/head.js --bundle --minify --format=iife --target=es5 --outfile=assets/js/harbor-head.js npx esbuild src/panel.js --bundle --minify --format=iife --target=es2020 --outfile=assets/js/harbor-panel.js

屏幕截图:

  • The open panel: text size and spacing come first, then colour and contrast, motion and reading aids.
  • A page with high contrast (dark) and bigger text switched on.

常见问题:

Does this make my site ADA or WCAG compliant?

No. No widget can. Conformance depends on your site's own code and content. Harbor gives visitors a way to adjust presentation for themselves, which is useful, but it is not a remedy and we do not sell it as one.

Does it cost anything?

No. No account and no card.

Does it slow my site down?

The script that applies saved preferences before first paint is under 4 KB compressed. The panel, about 9 KB, loads deferred in the footer. Both are served from your own site and cached by the browser.

Will it conflict with another accessibility widget?

Running two is not a good experience for visitors. We suggest choosing one.

更新日志:

1.1.0 1.0.0