6 ms·
I agree with the premise and don't want to knock someone's project. It does seem like a lot of computational effort to achieve what F9 / Reader View does in FF
by focusedone 8mo ago
I agree with the premise and don't want to knock someone's project.
It does seem like a lot of computational effort to achieve what F9 / Reader View does in FF.
- nulbyte 8mo agoYou could be right. But plenty of websites with useful information intentionally obfuscate their pages to trick the browser into disabling reader mode.
- subbu_devhub 8mo ago@focusedone I tried reader mode in several browsers it was such a hit or miss, it just did not work for me, and honestly I wanted to convert to markdown not just plain text I tried several reader modes, there were several issues including * several potions of the main content was missing * the navigation bits get caught when in reader mode * the comments and other un-related sections come in play I really tried these before invesitng time in this
- focusedone 8mo agoOh, cool! How does this do with the intentionally obfuscated sites?
- subbu_devhub 8mo ago@focusedone if you see the code link here https://github.com/subranag/declutter/blob/main/src/page.ts https://github.com/subranag/declutter/blob/main/src/page.ts there are some specific techniques recommended to simulate normal browsing behaviour, but it does not work 100% percent of the times, but works on most of the sites for example * simulate scrolling after page loads * simulate plugins * simulate location etc once all of this is done hopefully the HTML content becomes readable