Skip to content

Conversation

@NDevTK
Copy link
Owner

@NDevTK NDevTK commented Aug 31, 2025

This commit introduces a new feature that allows users to specify a list of excluded websites where the extension will not run. It also includes a fix to ensure programmatic script injections respect this exclusion list.

The following changes have been made:

  • options.html: Added a new input field for excluded websites.
  • options.js: Implemented the logic to save and load the list of excluded websites from chrome.storage.sync.
  • background.js:
    • Modified the background script to read the list of excluded websites from storage and use it in the excludeMatches property when registering content scripts.
    • Added a helper function to convert match patterns to regular expressions.
    • Updated updateExtensionScripts to check a tab's URL against the exclusion list before programmatically injecting scripts with executeScript, addressing an oversight in the initial implementation.

This commit introduces a new feature that allows users to specify a list of excluded websites where the extension will not run. It also includes a fix to ensure programmatic script injections respect this exclusion list.

The following changes have been made:

- **options.html**: Added a new input field for excluded websites.
- **options.js**: Implemented the logic to save and load the list of excluded websites from `chrome.storage.sync`.
- **background.js**:
    - Modified the background script to read the list of excluded websites from storage and use it in the `excludeMatches` property when registering content scripts.
    - Added a helper function to convert match patterns to regular expressions.
    - Updated `updateExtensionScripts` to check a tab's URL against the exclusion list before programmatically injecting scripts with `executeScript`, addressing an oversight in the initial implementation.
@NDevTK
Copy link
Owner Author

NDevTK commented Aug 31, 2025

Fixes #56

…ng or encoding

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@NDevTK NDevTK merged commit 8072ab4 into main Aug 31, 2025
4 checks passed
@NDevTK NDevTK deleted the feature/exclude-websites branch August 31, 2025 03:00
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