Skip to content

fix(extension): restore page styles after removing blur - #3445

Merged
richiemcilroy merged 3 commits into
CapSoftware:mainfrom
vedanth-jadhav:fix/extension-blur-style-restore
Oct 30, 2026
Merged

richiemcilroy merged 3 commits into
CapSoftware:mainfrom
vedanth-jadhav:fix/extension-blur-style-restore

Conversation

@vedanth-jadhav

@vedanth-jadhav vedanth-jadhav commented Oct 27, 2026 •

Copy link
Copy Markdown

Clicking an element to unblur it currently removes its original inline user-select setting and drops the original filter's !important priority. The page can therefore behave or render differently after the blur is removed.

Save and restore both inline values and their priorities. Keep the saved state on the element while the tool is closed, and remove the extension's metadata after unblurring. Elements that originally had no inline declarations return to that state.

Validation: all 45 extension tests pass, including six new mounted DOM cases. Four new cases fail before the fix. Covers important/ordinary styles, two complete blur cycles, closing/reopening the tool, originally absent styles, unrelated declarations, and ignoring extension controls. Strict source/test TypeScript with noUncheckedIndexedAccess, scoped Biome and diff checks pass.

Reproduce: cd apps/chrome-extension && bun run test.

The new tests use real DOM style declarations in jsdom. Browser installation, physical screen recording and a full extension build were not run. No runtime dependencies or recording/message contracts change. The extension declares jsdom ^26.1.0 as a development dependency. Bun 1.4.4 regenerated the lockfile and normalized existing package aliases; the set of resolved package versions has no additions or removals. Frozen lockfile validation also passes.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no blocking issues remain.

Summary

Restores original inline styles when users remove a blur.

  • Unblurring restores a page element’s original inline styles.

Reviews (3) · Last reviewed commit: "Merge branch 'main' into fix/extension-b..." · Reviewed by Greptile

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 27, 2026 01:38 Inactive
@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 27, 2026 1:38am UTC

Copy link
Copy Markdown
Author

@greptile review

Please review the current head, including the extension's direct jsdom dev dependency and regenerated lockfile.

@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@richiemcilroy

Copy link
Copy Markdown
Member

hey @greptileai, please re-review the PR

@richiemcilroy
richiemcilroy merged commit cd67098 into CapSoftware:main Oct 30, 2026
31 of 33 checks passed
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.

2 participants