A great source to learn about JavaScript element enumeration and modification: iamadamdev/bypass-paywalls-chrome
Posted by jpluimers on 2023/12/19
Sometimes one bumps into a Google Chrome extension that is both useful from a practical perspective as insightful on learning from how it is done.
This is one: [Wayback/Archive] iamadamdev/bypass-paywalls-chrome: Bypass Paywalls web browser extension for Chrome and Firefox.
It supports many sites (including more than a dozen Dutch ones) for which it is not easy to justify creating separate accounts for them (just the risk of them leaked into Have I been Pwned? is large, despite GDPR) and staying logged on for each of them. I have dozens of listings of my email addresses at haveibeenpwned.com, so I am a lot more careful making accounts than in the past despite assigning unique email addresses for each account (which is part of the burden).
The crux of the code is in [Wayback/Archive] bypass-paywalls-chrome/contentScript.js at master · iamadamdev/bypass-paywalls-chrome · GitHub which is a great source on how to enumerate elements and modifying them using plain JavaScript (i.e. without jQuery).
For Dutch sites, search for .nl in [Wayback/Archive] raw.githubusercontent.com/iamadamdev/bypass-paywalls-chrome/master/README.md.
An alternative (without source code) which is a proxy doing almost the same is [Wayback/Archive] 12ft Ladder.
Both via [Wayback/Archive] Paywall omzeilen: zo lees je gratis online kranten | Bart Stoffels.
–jeroen






Leave a comment