Skip to content

feat: extension settings card and presence script fix#133

Merged
stylessh merged 1 commit intomainfrom
stylessh/modest-mahavira
Apr 16, 2026
Merged

feat: extension settings card and presence script fix#133
stylessh merged 1 commit intomainfrom
stylessh/modest-mahavira

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Summary

  • Add Browser extension section in settings that detects whether the DiffKit extension is installed and prompts install if not
  • Fix dashboard-presence.js setting data-diffkit-extension on all websites — added origin guard so it only applies on DiffKit origins
  • Update Firefox extension store URL to canonical https://addons.mozilla.org/addon/diffkit/

Test plan

  • Open settings page — verify "Browser extension" card appears between Appearance and Repository access
  • Without extension: card shows install button linking to correct store
  • With extension: card shows green "Installed" status
  • Load extension in Firefox, visit a non-DiffKit site — verify data-diffkit-extension is NOT set on <html>
  • Visit diff-kit.com — verify the attribute IS set

- Add "Browser extension" card in settings that detects whether the
  DiffKit extension is installed and prompts to install if not
- Guard dashboard-presence.js with an origin check so it only sets
  data-diffkit-extension on DiffKit origins (fixes Firefox injecting
  the script on all sites when broader host permissions are granted)
- Update Firefox extension store URL to canonical /addon/diffkit/ path
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
diffkit e8a6c07 Apr 16 2026, 01:32 AM

@stylessh stylessh merged commit d741500 into main Apr 16, 2026
4 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.

1 participant