Add site preference helpers and auto-apply speed feature#261
Open
aaroncodename-platinum wants to merge 1 commit intocodebicycle:firefox-portfrom
Conversation
This commit adds functionality to prompt users about applying preferred video speed on a per-site basis: 1. inject.js: - Added site preference helper functions for domain extraction and storage management - Created shadow DOM prompt UI for user decision (Always/Never/Not now) - Implemented decision flow to apply speed to all videos on a site - Added bootstrap logic to detect first video and trigger prompt - Uses chrome.storage.local for site preference persistence 2. options.html: - Added "Site Preferences" section to display saved site decisions - Added button to clear all site decisions 3. options.js: - Added renderSitePrefs() function to display saved preferences - Added event handler for clearing site decisions - Auto-loads site preferences on page load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 commit adds functionality to prompt users about applying preferred video speed on a per-site basis:
inject.js:
options.html:
options.js: