raicem / impulse-blocker

Block distracting websites when you are browsing the web. Use for procrastination.
https://blog.cemunalan.com.tr/2017/05/17/impulse-blocker-guide/
MIT License
169 stars 25 forks source link

Add import / export function #9

Open Crote opened 6 years ago

Crote commented 6 years ago

I use this addon on multiple machines and it is a bit annoying to add entries to them multiple times. It would save a lot of time if this addon had a vim vixen-style way to import and export settings

glkx commented 6 years ago

A small work around for you suggestion. Through the console on the options page of the extension, you can sync the site's to an other browsers with the following command browser.storage.local.get('sites').then((storage)=>{browser.storage.sync.set({'sites':storage.sites})});.

In another browser you can import the sites with the command browser.storage.sync.get('sites').then((storage)=>{browser.storage.local.set({'sites':storage,sites})});.

Crote commented 6 years ago

Note that it would not work on FF Android, as it does not support storage.sync.