How to exclude Edge local storage?

Hi, I'm the Community Manager for AdBlock. We're getting reports from our users that AdBlock's settings (options, subscribed filter lists, and custom filters) aren't saved when they exit Edge. We've traced this to Ccleaner. AdBlock's settings are stored in Local Storage, specifically the path:

%LocalAppData%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!003\MicrosoftEdge\User\Default\DOMStore\******\EdgeExtension_BetaFishAdBlock_c1wakc4j0nefm[1].xml

(The "******" varies.)

I noticed that the name of the XML file is the same as a cookie I find when I search for "adblock" in Ccleaner's cookies list.

I tried excluding %LocalAppData%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\#!003\MicrosoftEdge\User\Default\DOMStore\, but Ccleaner still resets all AdBlock settings to the default the next time I launch Edge.

I also tried excluding %LocalAppData%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC; same result.

Finally, I tried moving the cookie EdgeExtension_BetaFishAdBlock_c1wakc4j0nefm to the Keep column. Again, same result.

What do we need to advise our users to exclude to prevent their AdBlock settings from being removed when Ccleaner is run?

Thanks in advance for your help!

Rhana

AdBlock Community Manager

Hello Rhana,

I believe the issue is already being investigated by the devs.

https://forum.piriform.com/index.php?showtopic=46789

However thanks for posting and I'll make the devs aware of your post.

Thanks, hazelnut!

Hi! Has there been any progress on this?

@rhana,

just for my own curious nature, are your users only seeing this Adblock issue when using the Edge browser?

Hi! Has there been any progress on this?

I promised I will post when there is news and I will :)

I ask the devs for updates about this regularly.

@hazelnut, thanks so much! It's just that I know how issues that are open for a while can sometimes slip through a crack. :)

@mta, no, our users have the same issue with Chrome. This is what we advise our Chrome users:

You're using a cookie, disk, or file cleaning program such as Ccleaner.

Make sure to tell it not to remove "localStorage" files, because that will delete AdBlock's settings. To do this, exclude the following folder:

C:\Users\{yourusername}\AppData\Local\Google\Chrome\User Data\{yourprofilename}\Local Storage

In the path above, replace "{yourusername}" with your Windows username and "{yourprofilename}" with the name you gave your Chrome profile. If you didn't create a specific user profile, use "default"; for example, C:\Users\jane\AppData\Local\Google\Chrome\User Data\default\Local Storage

A similar solution doesn't seem to be working for Edge, however, based on the test results I included in my original post.

No problem rhana...stay tuned :)

I know about the Adblock settings being removed which was why I could never use it with SRWare Iron, it took me months to figure out what was causing the problem.

This is what we advise our Chrome users

Perhaps give my findings a look too as a possible workaround until there's an official solution:

https://forum.piriform.com/index.php?showtopic=45274

Thanks, @andavari! So it looks as if you're advising folks to stay one level higher up than we advise them; that is, to exclude the entire Default folder, not just Local Storage?

With Chrome/Chromium browsers the answer is Yes.

The reason being when excluding the whole "Local Extension Settings" folder it will protect all installed extensions settings, since Adblock isn't the only extension that will have settings deleted for whatever reason.

Is there no sign of the exact file being removed?

When analysis is run on the local storage entry are no files identifiable as belonging to your specific software? Are you unaware what the software you represent places in local storage. This really seems a simple file exclude instead of the large sweeping folder excludes you and my cohort are suggesting

Not so simple because the settings are stored in a numbered .LOG file which changes everytime a Chrome/Chromium browser is started and closed, and if people install multiple extensions it wouldn't help. In my case when using Adblock for Chrome it out of nowhere stopped keeping settings (this was in early 2015) meaning I couldn't logically use it since I have allot of custom filters. Also when I tried Adblock Plus for Chrome it also wouldn't save settings, so that "large sweeping folder" exclusion in my opinion is the best approach, and also it makes zero sense to clean that folder since it only contains settings for extensions (no different than registry settings for installed programs in my opinion).

From my findings I think one of the reasons cleaning software in general (not just CCleaner in this case) is wiping out the settings because a folder with settings inside of it will contain a numbered .LOG file which is the actual settings that need to be kept and left alone - but most cleaning programs like to delete logs by default. Although I think a browser that saves settings into a .LOG file is ridiculous.

Folder contents example (Web of Trust):

...\000003.log

…\CURRENT

…\LOCK

…\LOG

…\LOG.old

…\MANIFEST-000001

Folder contents example (Adblock Plus for Chrome):

This one also stores settings in the .LDB files:

...\000005.ldb

…<strong>001533.ldb

…<strong>001535.ldb

…<strong>001537.ldb

…<strong>001539.log

…<strong>001540.ldb

…\CURRENT

…\LOCK

…\LOG

…\LOG.old

…\MANIFEST-000001

Edit:

In a Chrome/Chromium browser it's clear that the .LOG file is storing the settings by viewing it with a text editor. I've had about 1 1/2 years messing with this, and when I finally excluded the whole "Local Extension Settings" folder my extensions started retaining their settings again.

Edit 2:

Also something CCleaner cleans in Comodo Dragon (another Chrome/Chromium browser) corrupts the Profile for Dragon, well at least it did last year making it impossible to use Dragon and clean with CCleaner.

Hi! Has there been any progress on this?

rhana try the Ccleaner new build and let us know your findings ..thanks

https://forum.piriform.com/index.php?showtopic=46991&do=findComment&comment=276380

@Andavari isn't local storage also used by super cookies?

It isn't Local Storage it's Local Settings.

Edit:

Actually Local Extension Settings.

Thanks, Andavari! For safety's sake, advising our users to exclude the entire Local Extension Settings folder sounds like a good idea to me.

I tested Ccleaner v5.22.5724 with the following settings:

MS Edge:

  • Internet Cache
  • Internet History
  • Cookies
  • Download History
  • Session
  • Recently Typed URLs

Windows Explorer:

  • Thumbnail Cache

System:

  • Temporary Files
  • Memory Dumps
  • Chkdsk File Fragments

Registry Cleaner: Everything selected

After cleaning, AdBlock was missing something vital. Here's how our menu looks now:

6bd813bf2ab408517f7670ff27b47c97.png

Ruh-roh!

Hi there :)

Did this problem only occur after the registry clean?

It happened when I did the full clean. I'm not that familiar with Ccleaner, if that wasn't already obvious. :)

Our developer says that with the latest update of CCleaner and with the proper files excluded, AdBlock on Edge is unaffected by running CCleaner on his machine. So it's definitely not you, it's me. I didn't have any files excluded when I tried it. D'oh!

And here are the new instructions we're including in our Knowledge Base article:

  1. In Ccleaner's Cleaner settings for Microsoft Edge, select Cookies only.
  2. Click Analyze.
  3. In the results panel, double-click Microsoft Edge - Cookies to open the results. Make sure the Ccleaner window is wide enough to see the entire file path.
  4. Find the two files that contain the word "BetaFishAdBlock."
  5. Right-click each of these files and select Add to Exclude list.

Easy-peasy!

Thanks so much for the quick response and all your help!