Skip to content

Conversation

@javachefmc
Copy link

@javachefmc javachefmc commented Feb 5, 2026

Proposed functionality for allowing the plugin to be disabled on specific documents.
Main changes:

  • Main functionality works by interrupting function updateExtension in docs.ts
  • Edits ExtensionData schema to store document IDs (portion of URL unique to document)
  • hooks into MessagePayload to enable realtime change

Known bugs and improvements:

  • Still attempts to store data about non google docs pages
  • Disabling for a document visually applies only to the active tab (correctly applied if reloading)
  • An option (probably in advanced settings) should be added to clear the cache in case it stores too many documents
  • Several functions had to be changed to async to work which may have a performance impact

Related to #119

@waymondrang waymondrang added the enhancement New feature or request label Feb 6, 2026
@waymondrang
Copy link
Owner

Thanks for proposing these changes, they look good! However, I did receive some requests from users asking for per-document customization.

Instead of blocklisting document ids, what if we store an ExtensionData object for each document the user wants to individually customize? This approach adds some additional complexity and user-experience decisions, but I think this is a much more robust encompassing solution that also encapsulates your proposed features.

@waymondrang waymondrang changed the title enable/disable dark mode per document feature: per-document settings Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants