Quote:
Originally Posted by DiapDealer
I can look to see what kind of effort it would take to port it, but I would prefer to wait for the original contributor to chime in first.
|
The original contributor hasn't visited Mobileread in more than 2 years and is unlikely to provide an update. I tried to update the code myself, but I couldn't figure out how to change the class _init_ declaration for Python 3. (Apparently the syntax has changed in Python 3.)
@Crick: You might find the following plugins helpful:
TagMechanic (allows you to modify or delete attributes/tags )
RemoveInLineStyles (converts inline styles to CSS selectors)
cssRemoveUnusedSelectors (removes unused CSS selectors)
IMHO, TagMechanic will give you much more control over the tags that'll be deleted or modified. SmoothRemove is more like a sledgehammer.
@DiapDealer: Instead of updating the smoothRemove plugin It might make more sense to add a "nuclear option" to the TagMechanic plugin that'll remove
all attributes that can be safely removed without making the HTML file invalid. (For example, it shouldn't remove the html xmlns attribute.)