Add instructions for injecting button and tab-specific side panel functionality Fixes #1179 #1414
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This issue involves implementing the ability to inject a button into specific websites and open a tab-specific side panel in the Chrome extension. The button will be injected using a content script, and clicking on it will trigger the opening of a side panel unique to the current tab. The side panel's content will be loaded from a separate HTML file.
Additionally, a global side panel should be accessible via a context menu, which allows opening the side panel across all tabs in the current window.
Tasks:
Modify the content script to inject the button into the page.
Ensure that clicking the injected button opens a tab-specific side panel for the current tab.
Update the background script to handle context menu interactions for opening the global side panel.
Update the README to provide clear instructions for using both the injected button and context menu for opening side panels.
Expected Result:
Clicking the button injected into a page (e.g., Google) should open a tab-specific side panel.
The global side panel can be accessed via a context menu item.
Both features should function correctly, with the side panel's content changing based on the tab or context.