Comments (2)
Goals:
- Inject background.js. Script listens for "open popup" message, changes in chrome storage, and hotkey messages. Injects content script and sends content objects.
- On popup open, check chrome storage. If empty set default values, otherwise send message to background
- On hotkey, check chrome storage. If empty set default values, otherwise send message to background
- On language or font size change, set in chrome storage where background.js can detect change
Steps to take:
- Leave only calls to chrome.storage set and get in app.js
- Add listener for changes in chrome storage in background.js
- Add send message when popup opened in app.js
- Add listener for popup in background.js
- Change storage.get calls to "set" default values when storage is empty
from hanzisize.
Actually app.js shouldn't have to send any messages. It should only update chrome.storage which background.js will listen to for changes.
from hanzisize.
Related Issues (20)
- Extension doesn't work in sync with clipboard insert extensions HOT 10
- Popup should initialize to default interface, then change if error
- Needs visual overhaul HOT 2
- Firefox webstore issue HOT 1
- Upgrade to manifest v3 HOT 1
- Port to Safari HOT 1
- Swap font size slider for "large, larger, largest, reset" buttons
- Add hotkey functionality to activate resize on new page load HOT 1
- Add hint about hotkeys to popup
- Cleanup code in background script
- Create Github Pages documentation site HOT 2
- Investigate Firefox language specific size settings
- Hebrew regex incomplete
- Auto-increment version numbering
- Write test file for background script
- Convert to typescript HOT 1
- Separate default values into new file HOT 1
- Fix error logging in contentScript
- Switch to using TailwindCSS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hanzisize.