Developing and testing features or extensions for Microsoft Edge
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In what I can only assume is a bizarre and rare bug, sometime in the past few days, many old, previously deleted or moved favorites have returned to my Favorites in Edge. This happened across all my computers, so it must have been a problem at Microsoft's end, then sync'd out to my systems. I now have many duplicates, in cases where I had moved old favorites to other folders or subfolders. With many hundreds of favorites, manually fixing this would take a long time.
I have not seen any other reports of this happening. Is this a known issue? (I have reported it through Edge Feedback.)
To fix, is there any way to restore a previous Favorites state based on a date? For example, if I could just restore my Favorites as they existed 1 week ago, that would probably perfectly fix the problem (maybe there would be a small number of missing new favorites, but that would be better than what I have now)?
Thanks for any suggestions.
Developing and testing features or extensions for Microsoft Edge
Here is how I ultimately solved the problem. I hope this can help others. The big revelation for me was that Edge does indeed store "Snapshots" of all the data files at some interval. Armed with that knowledge, it was fairly simple to grab the old Bookmarks file, copy it into a Temp Profile, export it, then import it back into my main Profile, where everything promptly sync'd to the cloud and propagated to all my computers and Edge versions (Canary, Dev, Beta, and Release).
These are the steps:
In addition to possibly not needing Step #11, if you don't want to Sync (or maybe even if you do, not sure), you might be able to just copy the Bookmarks file directly into the destination Profile and skip everything with the Temp Profile and Exporting then re-Importing the Favorites. Just replace step 6 with directly pasting the Bookmarks file into the target Profile. I wasn't sure if the Sync process would recognize this as changes to the Bookmarks, which is what I assume triggers the sync updates to the Microsoft account. By Importing them from a standard Bookmarks file, it ensured that the Sync process would see them as updated and push the updates to the cloud so they'd download to my other systems. Possibly unnecessary.
Hi @GraniteStateColin ,
Based on your description, I did some searching on this issue and I didn't find an existing option to achieve this requirement, but you can try to achieve it with simple code. Here is the result of simple test.
Just following these step:
edge://version/ and find the property Profile path.Bookmarks file under this path in File Explorer according to the profile path in the first step(open with Notepad).F12 to open the dev tools.console tab and copy these code below: var allFav = {......};
var favLength = allFav.roots.bookmark_bar.children.length;
for (var i = 0; i < favLength; i++) {
if (allFav.roots.bookmark_bar.children[i].date_added > '13289380120192546') {
allFav.roots.bookmark_bar.children.splice(i, 1);
i--;
favLength--;
}
}
var res = JSON.stringify(allFav);
document.body.innerText = res;
Finally copy the result from the page and cover the current Bookmarks file, then restart Microsoft Edge.Note : Replace the value of allFav with the contents of the Bookmarks file in the second step. And the specific time of the timestamp used in the code to judge is Tue Feb 15 2022 14:28:40 GMT, you can adjust it according to your own needs.
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.