alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension
MIT License
1.1k stars 70 forks source link

Automatically apply 'Custom Style' for matching URL #18

Open asifm91 opened 6 years ago

asifm91 commented 6 years ago

Thanks to the 'Custom Style' feature, I can export just the portion of a page I need. However, it is not applied automatically and I have to click on 'Apply' every time for each page. This is really inconvenient and tedious when I'm exporting multiple pages (as chapters). I think custom styles should be applied by default, at least for pages that match the regex. Alternatively, adding a check box similar to 'Include Style' should do the trick.

Lambik commented 6 years ago

This seems to have been implemented, but sometimes (for example for medium.com articles) I would like to have the comments included in my epub, because they are interesting. The default stylesheet filters them out, which is fine, but if I now create a copy that doesn't filter comments, it has to have the same regex, and I cannot switch between which stylesheet I want to apply.. Could perhaps the stylesheet box be included again, but perhaps filled only with the matching regex options? Or if it's easier, all stylesheets listed again, but with the first one matching the regex preselected, so the quick 'save' action already applies a good default?