View Single Post
Old 03-23-2024, 05:29 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,242
Karma: 145735536
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
You could use regex to remove those spans however TagMechanic is a safer solution since it handles nested spans. I would suggest installing TagMechanic, selecting the files you want to remove those spans from and then running TagMechanic. Select the action as delete, the tag name as span, the attribute as class and the Whose value is field as koboSpan. Click on process and then commit and exit. Note that some books will not have the class= and you could try using the id attribute instead. That will require setting the Whose value is field using a regex such as 'kobo\.\d+\.\d+' without the quotes (basically matching any string of the format kobo.number(s).number(s) )
Attached Thumbnails
Click image for larger version

Name:	tagmechanic_kobospan.png
Views:	45
Size:	16.0 KB
ID:	207104   Click image for larger version

Name:	tagmechanic_koboid.png
Views:	43
Size:	16.1 KB
ID:	207105  
DNSB is offline   Reply With Quote