17 Commits
Author SHA1 Message Date
Federico Elia fd104e231a Point every GitHub location at oss-invisible (#485)
* Point every GitHub location at oss-invisible

The repository and its companions moved to the oss-invisible organization:
invisible_playwright is now oss-invisible/playwright, invisible_core is
oss-invisible/core, invisible_playwright_mcp is oss-invisible/playwright_mcp
and firefox_antidetect_patch is oss-invisible/firefox_antidetect_patch.
README, docs, package URLs, release/counter scripts and the tests that pin
them now use the new locations. PyPI package names are unchanged.

* docs: keep one doc line as it is (the local name guard)

* Version 0.51.1: the files that go into the wheel changed since v0.51.0 (package URLs)

* CHANGELOG: the 0.51.1 heading the version bump needs
2026-11-13 03:05:06 +01:00
Federico 53b7996bc3 Show the headful/headless font difference instead of only asserting it (#180)
The page opens by saying that the same page rendered both ways on one machine
is not identical, and then argues it from Linux and fontconfig. Nobody had run
it on Windows.

Four arms on one page served from 127.0.0.1, same viewport, same URL: the
bundled Firefox headful and headless, then a patched Firefox headful and
headless.

The bundled build disagrees with itself across the two modes on 8,989 of
294,400 pixels, 3.05% of the frame. The shape matters more than the number.
Every sample row keeps its exact height, so no glyph got taller; the rows drift
downward by 0, 1, 1, 2, 2, 2, 2 and 3 pixels from the first sample to the
eighth. Line boxes round differently and the error accumulates, which is why a
screenshot test can pass on a laptop and fail in CI, and why a tolerance tuned
on the first viewport does not hold at the bottom of a long page.

The patched engine returned the same frame in both modes, byte for byte, on
three repeats of the whole bench.

The figure carries the browser's own pixels: labels sit on strips added outside
the panels, since GitHub strips figcaption. It includes an amplified difference
map so the 3% is visible rather than asserted, and the text states the cost of
the trade: Arial Narrow is installed on the host, the patched engine does not
carry that face, so that row renders wide instead of narrow.
2026-09-08 07:44:18 +02:00
Federico c41b321b12 Real citations and factual fixes across the docs corpus (#105)
Every article whose Sources section named a tool, library, spec, or
paper without a working link now carries a verified URL, checked live
before being added. Where the underlying claim itself was wrong, not
just uncited, the claim is corrected too: a storage-quota page had the
mechanism backwards (total disk size, not free space) and a dead
ternary that never read the value it claimed to show; a Puppeteer
migration guide called Firefox support experimental after it went
stable; a debugger-timing page linked a Mozilla doc page that had
moved.

125 files, no rewrites: citations, factual corrections, and small
house-style fixes only. Verified after: every added URL resolves live,
zero em-dashes, zero invented statistics, house style intact.
2026-08-29 17:53:55 +02:00
feder-cr 532dd36a79 docs: a playbook pass over the first 100 articles
Went through the first hundred articles against the site's writing guide:
tightened the opening answer of each section so it reads on its own,
made sure the FAQ block and a see-also line are present, and linked the
primary source (MDN, a spec, the relevant RFC, or Playwright's docs)
where a claim rests on one. Eight pages were already in good shape and
were left untouched. No technical claim was changed.
2026-08-06 10:37:47 +02:00
feder-cr 48c47a1083 docs: an SEO and GEO pass over ten of the most-linked pages
Applies the answer-first structure across ten pillar and high-intent pages: tightens each meta description into the snippet range, front-loads a direct self-contained answer in the intro and per section (so an AI answer engine can quote a passage in isolation), adds comparison tables where the topic is comparative, and adds descriptive-anchor internal links to existing pages. No new factual claims were invented; a few figures were pulled in from sibling pages that already state them, and one page's description of how fingerprints are generated was generalised. Voice, technical claims and honest caveats are unchanged.
2026-08-05 23:40:20 +02:00
feder-cr af895b9b25 docs: generate BreadcrumbList JSON-LD from a Jekyll include, not per-file
Every article had a hardcoded <script type="application/ld+json">
block right after its front matter. On the built Pages site this
renders invisibly in <head> as intended. On github.com's own blob
view - the exact page type this project has spent this whole session
converting README links toward, for its dofollow authority - GitHub's
markdown renderer doesn't execute <script> tags but also doesn't hide
them: it printed the raw JSON as visible text at the top of every
single article, right above the actual content.

Moved the breadcrumb generation into docs/_includes/head_custom.html,
the theme's documented custom-head extension point (a plain Liquid
include, not a Jekyll plugin, so it's fully compatible with GitHub
Pages' safe build mode). It reads page.parent/page.grand_parent/
page.title from front matter and emits the identical BreadcrumbList
schema into <head> at build time - same output on the live site,
nothing left in the markdown source to render badly on GitHub.

Verified the new template reproduces every existing hardcoded block
byte-for-byte by simulating it in Python against all 82 files that
had one, before removing any of them. That check caught two
pre-existing, unrelated bugs along the way: cross-origin-iframe-
unreachable.md was missing its breadcrumb script entirely, and
slow-browser-launch-timeout-budget.md's script pointed at a 404'd
slug (guides-testing-and-troubleshooting.html instead of the real
guides-testing-troubleshooting.html) and its front matter was
missing grand_parent: "Guides", which the sidebar nav depends on.
Both are now fixed automatically by the shared template; the missing
grand_parent field is also corrected directly in front matter.

Stripped the now-redundant hardcoded script block from all 82 files
that had one.
2026-07-31 22:02:37 +02:00
feder-cr f77e2d5873 docs: BreadcrumbList structured data, not FAQPage - FAQ rich results are dead
Checked before building: Google deprecated FAQ rich results entirely on
2026-05-07, extending the August 2023 restriction (which had already limited
them to government/health sites) to nobody at all. Building the FAQPage
JSON-LD I'd planned would have added real engineering work for zero visible
benefit, so stopped before writing it to any file.

BreadcrumbList is still fully supported and fits this site better than FAQ
ever did: the hierarchy is already sitting clean in every page's own front
matter (parent/grand_parent), so this needed no markdown parsing at all,
unlike the FAQ approach would have. Generated a Home > Guides >
[sub-category] > [article] trail (or the 3-level Home > Comparisons/
Documentation/Integrations > [page] version) for every one of the 77 pages
that has a parent field, using the same title-to-URL mapping the site's own
nav already relies on.

Verified: all 77 generate syntactically valid JSON, the site verification
script still passes on all 83 pages (title==H1 unaffected, since this
inserts between front matter and the H1, touching neither), and no
forbidden names or secrets in the diff.

No GitHub Pages plugin needed - this is why it went in the page body as
inline JSON-LD rather than through a theme layout override: GitHub Pages'
safe build mode only allows a fixed plugin whitelist, so anything requiring
a custom Jekyll plugin to parse content at build time was off the table.
2026-07-29 01:55:34 +02:00
feder-cr a33fc26f03 site: real sections instead of one flat sidebar, plus the product docs that were missing entirely
The site read as a pile of articles, not a site for this project specifically,
because docs/ only ever held the guides - everything about installing and
using the package lived exclusively in the GitHub README, which is not a page
on the published site at all. Anyone who landed on an article from a search
had nowhere to click for "how do I install this."

Five top-level sections now, all via just-the-docs' native parent/has_children
front matter, not folders - no URL changes, no broken links:

- Documentation (new): Installation, Quickstart, Configuration, Pinning
  fingerprint fields (existing page, re-parented), CLI reference. Adapted from
  the README's own Install/Usage/CLI content rather than duplicating it
  verbatim, since these needed to stand alone as pages rather than sections.
- Guides: the 48 existing explainers, grouped into 7 categories instead of one
  alphabetical list - Browser Identity (15), Canvas/WebGL/Fonts/Audio (8),
  Network/Proxy/WebRTC (7), The Automation Layer (7), AI Agents and Frameworks
  (3), Detectors Explained (5), Testing and Troubleshooting (3).
- Comparisons: the 7 "vs" and engine-choice articles, promoted to their own
  section rather than buried inside Guides, since "which tool" is the most
  direct search intent this site gets.
- Integrations: unchanged content, promoted to a top-level section; its 9
  pages had no front matter at all until now, so they also pick up real
  per-page titles/descriptions for the first time.

Each new category page is a real intro, not a bare index: why the group holds
together, not just what's in it.

Also fixed: docs/_config.yml's header comment still said "deliberately no
front matter on the pages," which stopped being true on 2026-07-27 when every
page got title/description front matter for its own meta description - the
comment now says why front matter exists and what it costs (a rendered table
on github.com) rather than the reversed decision. docs/README.md and the
top-level README's guide list were both cut down from a 40+ entry flat table
to pointers at the four new sections, since the sidebar and category pages
now do that job.

Verified: every parent/grand_parent reference resolves to a real page title,
every has_children page is referenced by at least one child, no broken
relative links, no forbidden vendor names, no secrets, title==H1 on every
page including the 15 new ones.
2026-07-28 18:51:02 +02:00
feder-cr 4314909230 docs: front matter on the 32 pages that predated the format
Every one of these pages previously inherited the repository's own blurb as
its meta description on the live site, since jekyll-seo-tag falls back to
that when a page has no front matter of its own - the same problem the
format was adopted to fix on 2026-07-27, just not yet applied backwards.

Title is the existing H1 verbatim in every case (checked programmatically:
title equals H1 on all 32, all H1s already under the 62-character limit).
Description is a new sentence or two written from each page's own opening
hook rather than a copy of its first paragraph, since the two placements
serve different readers: the opening paragraph is for someone already on the
page, the meta description is for someone deciding whether to click.

No content changes to any page body.
2026-07-28 03:12:26 +02:00
feder-cr 5e0830f3a3 docs: contextual links inside the prose, where they were only in the footer
Measured before changing anything. Excluding the See also block, the median page
had 0.8 internal links per thousand words and 26 of 54 had exactly zero, with
every link sitting in the footer. The guidance on this is blunt: contextual
links inside prose carry far more weight than boilerplate blocks, and the
working range is two to five per thousand words.

Thirteen pages fixed in this pass, each one linking a concept the sentence
already named. The rule applied, and the reason nothing else changed: if a link
needs a sentence written around it, that is stuffing rather than linking, so the
anchor text had to exist already. Two intended edits were skipped for that
reason when the phrasing did not match.

Median is now 1.0 and pages at zero are down to 13. The rest are queued rather
than forced.
2026-07-28 01:18:40 +02:00
feder-cr be3c6e90e3 docs: give every page the questions people actually type
On github.com these pages sit on a strong domain and are crawlable, and the full
text is served. What they cannot have is a title or a description of their own:
GitHub writes the title from the file path, and it fills the meta description
with the repository's own blurb, identically on all of them. So the body is the
only thing a search engine has to work with, and the opening prose is
effectively the description.

Two changes follow from that.

Every page now ends with a short block of real questions and short answers, in
the words someone would type. Twenty-two pages did not have one; four already
did, and those four were the model. They are answers, not keyword filler, and
several of them say plainly that the answer is no.

Five openings were too thin to serve as a snippet, the shortest being four
words. They now carry a sentence that says what the page settles, without
losing the line they opened with.

Also refreshed the version citations after checking them rather than assuming:
the documented API is all still present in 0.4.6 with compatible signatures, and
scrapy-playwright is still 0.0.48, so that one was already right.
2026-07-27 21:43:53 +02:00
feder-cr c1911ac28f fix(hooks): the publish gate never actually ran
--project-root is a TOP-LEVEL option, before the subcommand. The hook put it
after, so argparse exited 2 and the block read that as a refusal: it printed
REFUSED with the gate never having executed. The first check of this wiring
passed on exactly that, which is worse than no gate - a hook that refuses for
the wrong reason is one people learn to force past.

It also treated exit 5 as a failure. 5 is ALREADY PUBLISHED and byte-identical:
nothing to do, not a refusal, and it is what re-pushing or back-filling a
release tag legitimately produces. The gate gives it its own code precisely so a
caller can tell it from 'the content changed under an unmoved version', which
must stay fatal.

The wiring test now asserts the option order and the exit-5 handling, because
both were invisible to the version that only checked the gate was named.
2026-07-27 19:41:34 +02:00
feder-cr 42467ddb57 docs: titles that fit in a search result, and README links that feed the site
Thirteen of the twenty-six headings ran past sixty characters, which is roughly
where a search result stops showing them, so the keyword sat in the part nobody
reads. They are now front-loaded and short, and the clause each one lost was
already in its opening paragraph. This fixes the sidebar at the same time,
since the theme takes its labels from the same headings.

The README's links to the pages now point at the site instead of at the file
view. The repo root is the highest-authority page we have and its README is
indexed with it, so those links are worth more pointed somewhere that has a
title of its own. The file view keeps GitHub's own title, which matches no
query, and it stays available for anyone reading in the repo.
2026-07-27 17:40:22 +02:00
feder-cr f3102de8fd docs: a page on the GPU you claim versus the pixels you draw, plus a language pass
Adds renderer-string-vs-render.md, written from our own notes: a detection
flag whose first explanation was wrong, killed by a ten-seed sweep across
three vendor buckets, an A/B over two engine builds and a run on a second
operating system that came back clean. The cause was the software rasterizer
on headless Linux contradicting the GPU the profile claimed. It also covers
the second flag in the same reports, which turned out to be our own test
harness hammering one exit address.

The rest is a pass over the existing pages to vary phrasing that had become
repetitive across the set: "rather than" appeared 63 times over 21 pages and
is now 23, and the four detector footers no longer share one sentence shape.
No technical claims changed.
2026-07-27 16:22:52 +02:00
feder-cr f6450a98cd docs: the per-platform font sets and how the measurement works, folded in
The remaining mapped query was fonts across Windows and Linux, and it overlapped
this page far enough that a second one would have been a near-duplicate competing
with itself. Same call as the injection-timing section a few commits ago.

What was genuinely missing is now here: the measurement technique itself, with the
probe, since there is no API that lists fonts and everyone says "enumeration"
anyway; the families each platform actually ships, which is what makes the set
platform-shaped; and the container case, where every probe returns the fallback
width and the detected set comes back empty, which is its own strong signal because
no real desktop has one.

Also notes that the order of the list can carry information, since some
implementations return fonts in system order, which reflects how they were
installed. Two machines with identical sets can still differ in sequence.
2026-07-27 14:23:04 +02:00
feder-cr 41dd303f08 docs: an index for docs/, and the pages now link each other
Nineteen pages had accumulated with nothing collecting them, and eight of the ten
explainers linked nowhere at all. GitHub renders docs/README.md when you open the
folder, so that was a free landing page nobody was standing on, and pages that
link nothing are read once and left.

The index carries a short closing section on the three ideas that turn up on
almost every page, because they had been restated eight times without ever being
said once in one place: consistency beats rarity, suppressing a signal is a
signal, and server tells are not automation tells and need different fixes.

Verified every path it claims, including pinning.md, rather than listing what I
thought was there.
2026-07-27 13:29:36 +02:00
feder-cr 2ac8524024 docs: why headless browsers render different fonts
The least contested query found in this niche. Its top five results are almost
entirely primary sources, a google/fonts issue, two Chromium bug entries and two
puppeteer issues, with a single blog anywhere in the set. No content-marketing
team is competing for it, and it is a question this project has to answer
correctly anyway.

Corrects the common belief while it is at it: headless usually ships the same
fonts, what it lacks is the desktop's font configuration, so the difference is in
how a missing font resolves rather than in what is installed. Two more causes
follow from that, the rasteriser settings and the fact that web font detection
measures rather than enumerates, which is why two containers from one image can
disagree about which fonts exist.

Ends where it should: a claimed platform implies a font set, so Windows in the
user agent on the Linux default set is a contradiction nothing can override,
because nothing was overridden. Same shape as the software-rasterizer tell, and
a server tell rather than an automation one.
2026-07-27 03:11:31 +02:00