Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are the rules stored, or can they be exported? #145

Open
rahuldottech opened this issue Jun 30, 2018 · 3 comments
Open

Where are the rules stored, or can they be exported? #145

rahuldottech opened this issue Jun 30, 2018 · 3 comments

Comments

@rahuldottech
Copy link

I'd like to transfer all my settings and rules for this extension to another Google Chrome profile. Which files do I need to copy over to the new profile's directory for this to work?

Alternatively, is there an export/import functionality available?

@KevsBitcoin
Copy link

Looking into this also i am hoping we can have this someone added to extension code
To store user data for your extension, you can use either storage.sync:

    chrome.storage.sync.set({key: value}, function() {
      console.log('Value is set to ' + value);
    });
  
    chrome.storage.sync.get(['key'], function(result) {
      console.log('Value currently is ' + result.key);
    });

or storage.local:

    chrome.storage.local.set({key: value}, function() {
      console.log('Value is set to ' + value);
    });
  
    chrome.storage.local.get(['key'], function(result) {
      console.log('Value currently is ' + result.key);
    });

Found here
https://developer.chrome.com/extensions/storage

@maripo
Copy link
Owner

maripo commented Jul 2, 2018

CustomBlocker has Export & Import functionalities. It is designed to avoid importing duplicate words and rules.
screen shot 2018-07-02 at 13 27 50

I know synchronizing rules by Chrome sync as @KevsBitcoin mentions is better. Unfortunately, it needs a great change of internal data structure and it's planned to be implemented in the next major update. Sorry for inconvenience.

@diogovk
Copy link

diogovk commented Feb 19, 2021

I don't see the export button. Has this functionality been removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants