Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
Kazzam's Perception Expander 预览

Kazzam's Perception Expander 作者: Kazzam

Turn any web page into a narrow reading column. Two adjustable masks dim the page edges so your eyes travel less per line — and each site remembers its own width. Runs entirely on your machine: no network requests, no data collection.

0(0 条评价)0(0 条评价)
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
关于此扩展
Perception Expander puts an adjustable mask on the left and right of a web page,
leaving a narrower column of text in the middle. The page itself is untouched —
nothing is reflowed, no font is changed, no element is moved. Only your visual
field is narrowed.


When you read, your eyes don't glide along a line — they jump. Each jump is a
saccade, and you only actually resolve text during the brief pause at the end of
one. That window is about ten characters wide.

On a full-width screen the line runs far past that window, so every line ends with
a long return sweep back to the next line's start. Longer sweep, looser landing,
more re-reads. Narrowing the column shortens the sweep and tightens the landing.


Nothing changes on any page until you ask for it. Open the panel on the site you
want to read and flip the switch — that site is now on, and every other site stays
exactly as it was. Site state is a per-site choice, not a global one, so there is
no way to accidentally blanket the web with masks.
  • Click the toolbar icon and flip the switch (or press Alt+Shift+E) to turn the
    mask on for the site you're reading.
  • Drag the dotted grip on either inner edge to resize that side. Double-click a
    grip to re-center both edges.
  • The panel also holds reading width, mask depth, edge feathering, eight colour
    themes, and the edge guide.
  • Keyboard: Alt+Shift+E toggles this site, Alt+Shift+Left/Right adjusts width,
    Alt+Shift+Up/Down adjusts depth.

Turning a site off keeps its width, so switching it back on restores the same
column. When the mask is off, not a single element is added to the page.

The masks are pointer-events: none, so links, buttons, text selection and
scrolling all keep working exactly as before.


The width can be set by eye, but there is a faster path: Fit to article
(Alt+Shift+F). It collects the page's own text blocks — skipping headers, footers,
navigation, dialogs and link-heavy lists — takes a length-weighted median of
their left and right edges, and puts the two masks exactly on the article column.

Two tiers of collection, because not every site is made of paragraphs. First it
looks for semantic blocks (<p>, <article>, <section>, quotes, code, list
items). If fewer than three turn up — which is the norm on app-style sites built
entirely from <div>s, where a post is an <article> wrapping <div>/<span>
text — it falls back to walking text nodes: any run of 24+ characters counts,
positioned by its nearest block-level container. Either way the result is the same
two percentages.

One action, both jobs the add-on gets used for:
  • while reading, the masks sit just inside the column, so the eye stops travelling
    out to the screen edges at the end of every line;
  • while browsing, sidebars, promos and ad rails fall outside the window and get
    dimmed, while the article stays fully visible.

It reports failure instead of guessing: a page with no findable column (an app UI,
an image gallery), a fragmented layout, or a column that already fills the viewport
each get their own message — the failure message includes how many blocks were
actually measured — rather than a nonsense width. Fitting also switches the
current site on.


The width you pick is remembered for that site only. Set 56% on a long-form
article site, leave a web app untouched, and neither affects the other. Three
buttons in the panel footer handle the exceptions:
  • Sync to all sites — write the current visual settings as the shared default
    and apply them to every site that already has a record. Switch states are never
    changed: sites you turned on stay on, sites you left off stay off.
  • Turn all off — flip every enabled site off in one go, keeping each site's
    width for later.
  • Reset this site — drop the record for the current site; it goes back to off
    with the shared default width.

Hostnames are normalised by stripping www., so www.example.com and
example.com share one record. Subdomains are kept separate on purpose — a blog
subdomain rarely has the same layout as the main site.


Because the add-on starts off, the set of enabled sites becomes a small list you
own. A "Manage enabled sites" link in the panel footer (also available from the
extension's Options page) opens a full-width management view:
  • every record at a glance — which sites are on, and how wide each column is
  • flip any single site on or off, or delete its record, without visiting the site
  • filter by hostname once the list grows
  • "Turn all off" keeps each site's width; "Clear records" removes them all and
    asks for a second click before doing anything destructive

Toggling a row only changes that row — the list never re-sorts under your cursor.


Eight choices. Seven are fixed: Ink Black, Deep Night, Blue Slate, Pine, Indigo,
Warm Sepia, and Paper — the last one is a light mask that fogs the edges toward
white on pale pages instead of darkening them. Each comes with a matching 1px edge
line. Mask depth is adjustable from transparent to fully opaque, and the inner edge
can be feathered or cut hard: a separate slider sets the transition width from 0 px
(no gradient at all, a clean straight edge) up to 42 px of soft falloff.

The eighth is Auto, which does not pick a colour so much as darken the page's
own: it samples the real background colour at the mask position (walking up from
that pixel to the first opaque background, since many sites paint a wrapper rather
than ``), then multiplies R, G and B by the same factor. Multiplication keeps
hue and saturation untouched and only lowers lightness, so a cream reading page
gets a deep cream mask, a cool grey page gets a cool grey one, and a white page
gets a medium-dark neutral — never two black bars pasted over warm paper. The edge
line follows the same hue, lifted to 76% lightness with saturation capped at 30%,
so a warm page gets a warm grey line rather than a forced cyan.
  • All settings live in the browser's local storage. Nothing is uploaded or synced.
  • No network requests of any kind. No analytics, no telemetry, no error reporting.
  • No remote code. Everything runs from the packaged files.
  • Declared as data_collection_permissions: none.
  • Access your data for all websites — the mask has to be injected into whatever
    page you happen to be reading. The content script appends one overlay element. It
    reads the viewport width to size that element, and — only when you press "Fit to
    article" — it also measures the position and amount of text in the page so it can
    align the masks to the article column. That measurement stays in the page: no text
    is copied, stored or sent anywhere, only two percentage numbers are kept locally.
  • Storage — keeps your per-site width settings.
  • Active tab — lets the toolbar panel show which site you're currently on.
  • Pairs well with a long article, a documentation page, or a novel.
  • Leave a site off and the extension costs it nothing — no element is injected at all.
  • The edge guide can be hidden for a cleaner look; the drag grips stay available.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 访问您在所有网站的数据

可选权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 支持邮箱
  • 复制附加组件 ID
版本
1.6.1
大小
70.2 KB
上次更新
3 天前 (2026年11月27日)
相关分类
  • 收取点、新闻和博客
  • 外观
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。