View Single Post
Old 11-29-2016, 04:31 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
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.)

Last edited by Doitsu; 11-29-2016 at 04:48 AM.
Doitsu is offline   Reply With Quote