jeromepl / highlighter

A Chrome extension to highlight text and keep it all saved
MIT License
315 stars 80 forks source link

Restore / LoadAll highlights from errormanager or storagemanager #62

Open HGP23 opened 6 months ago

HGP23 commented 6 months ago

This extension has been amazing and working flawlessly for me for at least the past year. Would love an option that would allow us to reload or reapply highlights that are still saved in the cache or log history. Typically, to my surprise, it has worked automatically on Chrome tabs that are web pages or PDF loaded pages within the browser upon restart of chrome after a crash or update. Similar to how all tabs from your last session are restored when Chrome reloads, it also restores all the highlighted text on the tabs and pages that were previously highlighted.

However, have run into the issue recently where Chrome or the computer made Chrome crash (not sure which) And all system or app crash logs and data dumps didn't show anything. I know this is odd, but once restarting Chrome none of the tabs from previous session loaded. Luckily I have running as another extension, sessionbuddy, And was able to restore all tabs but all highlighted texts were obviously missing. Had been working on some of the important stuff for the past 5 months and this unfortunate issue occurred. I noticed in the extension apps data folder there is a log file with name "0000003". It actually possesses all previous texts I had ever highlighted or deleted and cleared from all pages. Luckily I found this and have been going through it manually to find each website and text that was highlighted but I feel like there should be a way to reload this simply, especially when looking at The code and programming of loading all highlights and references to the error manager and other JS script files that the extension possesses.