greatsuspender / thegreatsuspender

A chrome extension for suspending all tabs to free up memory
https://chrome.google.com/webstore/detail/the-great-suspender/klbibkeccnjlkjkiokjodocebajanakg/
GNU General Public License v2.0
5.03k stars 898 forks source link

Add option to never suspend tabs with open PDF documents #904

Open jdidion opened 5 years ago

jdidion commented 5 years ago

Recently I was working on a fill-in PDF form in the Chrome PDF viewer. The tab was suspended, and when I refreshed everything I had entered was gone. The easy solution is to not use the browser PDF viewer to fill in forms, but I'd still like to have this option in case I forget.

deanoemcke commented 5 years ago

Thanks for the feedback. You're not the only person requesting this: https://github.com/deanoemcke/thegreatsuspender/issues/435

There is a workaround for this which is to add "pdf" into your whitelist. You can use regular expressions also if you want to be more specific.

The ideal solution here would be to include editing of pdfs in the 'Never suspend tabs that contain unsaved input' option. I've actually just implemented this based on your idea. Thanks!

jdidion commented 5 years ago

Awesome, thanks!