This is AdBlock's old support site. It is available for archival purposes only. To create a new discussion, or to visit the up-to-date knowledge base, please visit help.getadblock.com

app data location

Gregory's Avatar

Gregory

10 Aug, 2015 10:25 AM

I'm running a fresh OS, and would like to carry over my blocked ads count from my previous OS.

Where is the save file located?

  1. Support Staff 1 Posted by Rhana on 11 Aug, 2015 12:31 PM

    Rhana's Avatar

    Hi Gregory,

    You can get to it through the JavaScript console. If you're comfortable digging into the developer options, here's how to copy the blocked ads count to a fresh installation of your browser:

    In the "copy from" browser:

    1. Open chrome://extensions/ and enable Developer mode.
    2. Find AdBlock in the list. Next to Inspect views: click background page to open the Chrome developer tools for AdBlock.
    3. On the "Console" tab enter the following three commands to retrieve the data from local storage and stringify it.

      var blocked_data = storage_get("blockage_stats");
      var blocked_dataString = JSON.stringify(blocked_data);
      blocked_dataString

      The data from the final step should be in the form:
      "{"start":1438296342179,"total":2708,"version":1}"

    4. Copy the output text from the last step. You need to select the entire line including the start and end quotation marks.

    In the "copy to" browser:

    1. Repeat Steps 1 and 2 above.
    2. Enter the following command in the console in the second browser, replacing the "ZZZZZZ" with the output text you copied in Step 4 above.

      storage_set("blockage_stats", JSON.parse("ZZZZZZ"));

    Please let us know if you run into any trouble!

    Rhana
    AdBlock Community Manager

  2. 2 Posted by Gregory William... on 11 Aug, 2015 12:36 PM

    Gregory Williams's Avatar

    Got it, Thanks a million :)

Discussions are closed to public comments.
If you need help with AdBlock please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac