Skip to content

Step15: Browser extension#17

Merged
Parth576 merged 3 commits intomainfrom
step15
Mar 1, 2026
Merged

Step15: Browser extension#17
Parth576 merged 3 commits intomainfrom
step15

Conversation

@Parth576
Copy link
Owner

@Parth576 Parth576 commented Mar 1, 2026

No description provided.

…er compat

Create the browser extension foundation with Manifest V3 configuration,
browser API compatibility polyfill, placeholder icons, and stub files
for background worker, content script, and popup UI.

Assisted by the code-assist SOP
Add content extraction logic that intelligently selects the main content
area (main > article > [role=main] > body), clones the DOM to avoid
mutation, and strips non-content elements (scripts, styles, nav, footer,
header, sidebars).

Add background worker that orchestrates the analysis flow: receives
requests from the popup, triggers content extraction via messaging,
POSTs to the backend API with timeout/error handling, and returns
results to the popup.

Also adds tabs.sendMessage to the browser compat layer and includes
browser-compat.js in manifest content_scripts for the content script.

Assisted by the code-assist SOP
Build the extension popup that displays analysis results with loading,
results, error, and not-a-policy states. Uses a pastel off-white theme
with color-coded risk levels (green/yellow/orange/red) and progress bar
visualizations for the five privacy dimensions.

Assisted by the code-assist SOP
@Parth576 Parth576 merged commit ddd0671 into main Mar 1, 2026
1 check 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.

1 participant