Skip to content

🔩 Expose raw PDF metadata and darken basic HTML pages - #204

Merged
lindsey-pony[bot] merged 4 commits into
mainfrom
lily-lace
Nov 26, 2026
Merged

lindsey-pony[bot] merged 4 commits into
mainfrom
lily-lace

Conversation

@JFWooten4

Copy link
Copy Markdown
Member

Summary

  • Add View metadata immediately below Rotate right in the PDF viewer’s ⋯ menu. It appears only when the document contains actual PDF Info or XMP metadata, including for PDFs without an outline.
  • Show all PDF Info fields, parsed XMP keys, original raw XMP XML and available response metadata in an independent scrollable dialog, without normalizing values or changing the formatted Sections panel. Render all embedded values as text, never HTML.
  • Rename Darken SEC HTML comments to Darken basic HTML pages, preserving the existing saved preference and default-on behavior. Apply the existing dark stylesheet to minimal plaintext-like HTML documents on HTTP and HTTPS; skip scripted, styled, or application-like websites.
  • Preserve the SEC-only ChatGPT button and the existing SEC selection highlighting behavior.

Verification

  • Verified the committed Git tree is nonempty and all 11 intended changed paths contain the proposed blobs.
  • Validated JavaScript syntax of the new metadata module and plain HTML content scripts.
  • Added and registered Node regression tests for raw source preservation, missing/malformed metadata, menu positioning, plain-page detection, extension coverage, and SEC-only integrations.
  • Not run locally: the complete Node test suite and browser extension smoke tests (the GitHub connection has no local repository execution environment). CI/browser testing is still needed.

Behavior notes

  • Conservative detection may deliberately skip some legacy pages that include linked CSS or scripts; explicit SEC comment pages continue to qualify.
  • The existing raw SEC selection workaround remains SEC-only, whereas the new darkening criteria apply broadly.

JFWooten4 and others added 4 commits October 18, 2026 17:35
Add a raw Info/XMP inspector directly below Rotate right, independent of Sections. Expand SEC comment darkening to conservative plaintext-style HTML pages on HTTP and HTTPS while preserving SEC-only ChatGPT actions. Add regression tests for both behaviors.

Co-authored-by: Codex Web <[email protected]>
Recognize static EDGAR archive .htm and .html documents even when their
legacy inline formatting exceeds the generic plain-HTML heuristic.
Neutralize hard-coded foregrounds and white backgrounds without changing
table geometry or embedded image content.

Preserve the existing saved theme, dark-mode opt-out, SEC-only ChatGPT
action, and protections against styling unrelated modern websites.
Cover the example Grayscale XLM filing, host and content checks, and
live theme changes in regression tests.

Co-authored-by: ChatGPT 6 <[email protected]>
package.json — 🛠️ Register metadata and appearance tests in feature suites
Main replaced the old flat npm test list with explicit feature ownership. Keep that runner and all existing commands, register raw-metadata under document and plain-html-dark-mode under appearance, and expose targeted commands for those suites. Adjust the package validator and security regression to allow only the intended HTTP darkening script pair while preserving other HTTPS restrictions.

src/content/sec-comment.js — 🛠️ Preserve the renamed icon and scope SEC actions
Main renamed sweetie-bot.png to sweetiebot.png; retain that asset path while applying all incoming darkening changes, including raw EDGAR colors and the saved opt-out. Keep SEC-specific selection styling and ChatGPT comment actions on HTTPS SEC pages, not generic HTTP pages or unrelated sites.
@lindsey-pony
lindsey-pony Bot merged commit 452d308 into main Nov 26, 2026
14 checks passed
@lindsey-pony
lindsey-pony Bot deleted the lily-lace branch November 26, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant