Comments (4)
So we can make a button that take present values of each option and then store it in local storage and an another button that can fetch these values from storage and apply on the options, is this approach is ok?.
from dino.
Can you assign it to me,
from dino.
Yup something on that lines. What you can do is keep a toggle check. If it is set to true, keep the track of options selected and keep storing it in the localStorage. Also have one option to set the old settings to web page. Upon toggling that, the webpage should take the previous settings if any. Do ask if you have any doubts.
from dino.
Hey I have open a pull request regarding this issue,
but there is something Regarding toggle button: I have tried some approach but all failed, So can you help me. 1.) one was to store old settings onload in content.js and then create an action that will apply that old settings. but to doing so we have to declare variables globally and that will change most of the content.js, 2.) second one is we keep track of old settings which are changed by user, but that will create issue that if we toggle to old settings than some of settings will remain according to local storage preferences (settings which are not changed by user). like:- a user store: fontStyle:x, and fontSize:2; it goes on second website and there just change fontStyle and then trigger stored changes, and then when he try to undo those changes only fontStyle will change, fontSize will remain according to stored preferences. So for now i have not added any toggle btn. Pls. accept this pull request and i will start working on toggle issue according to your suggestion.
from dino.
Related Issues (20)
- Put 3 buttons of font style per row HOT 6
- Audio Files are not mapped correctly in the code. HOT 2
- Extention icon is not very visible, missing 16 and 46px icons in manifest.json HOT 2
- Adding text to checkbox in popup header HOT 4
- Want to add Language change option in your project HOT 2
- Add text to speech functionality HOT 2
- Improve UI of the header HOT 2
- Add a voice typing feature [IWOC] HOT 8
- Add an option to hide gifs [SWOC] HOT 3
- Add a button to stop any music/video playing from webpage [IWOC] HOT 4
- Change UI of home page HOT 3
- Make background style button functional HOT 3
- Auto scrolling showing two times HOT 1
- Want to add Light and dark mode for websites using Dino. HOT 3
- Add CODE_OF_CONDUCT.md HOT 2
- Explaning the workflow and aim of the project HOT 6
- 🧑💻 Add Contributors and Admin Details HOT 4
- Update readme file
- Update contributors profile in Readme.md HOT 2
- JS code improvement (code refactor).
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 dino.