View Single Post
Old 03-15-2023, 05:26 AM   #8220
ipaqi
Junior Member
ipaqi began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2022
Device: Kindle Android App
Hi, JimmXinu, I've been noticing recently that stories I download via FFF + FlareSolverr from fanfiction.net has been including embedded ads. That wouldn't be an issue if they didn't break the Kindle Reader for some reason. Can you do some post-processing of the chapters you grab from those places and remove those divs from the html (I've only tested this on downloads to epub).

The problematic element formats are:

<div class="google-auto-placed ap_container"><ins class="adsbygoogle adsbygoogle-noablate"><div id="aswift_7_host"></div></ins></div>

<div class="google-auto-placed ap_container"><ins class="adsbygoogle adsbygoogle-noablate"><div id="aswift_4_host"><iframe id="aswift_4" name="aswift_4"></iframe></div></ins></div>

The digits I marked aren't the only problematic ones, obviously, I had to replace it with /d in the regex when I was fixing the files, but I wanted to make sure you saw them all.

Just removing them from the xhtml files should be enough
ipaqi is offline   Reply With Quote