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.
扩展元数据
屏幕截图
关于此扩展
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.
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
scrolling all keep working exactly as before.
The width can be set by eye, but there is a faster path: Fit to article
(
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 (
items). If fewer than three turn up — which is the norm on app-style sites built
entirely from
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:
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:
Hostnames are normalised by stripping
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:
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.
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+Etoggles this site,Alt+Shift+Left/Rightadjusts width,
Alt+Shift+Up/Downadjusts 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 andscrolling 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, listitems). 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 andexample.com share one record. Subdomains are kept separate on purpose — a blogsubdomain 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 位用户)
权限与数据
更多信息