metafizzy / infinite-scroll

📜 Automatically add next page
https://infinite-scroll.com
7.41k stars 1.74k forks source link

[Feature Request] Secure Only Mode #938

Open Archmonger opened 3 years ago

Archmonger commented 3 years ago

Currently, InfiniteScroll allows for external scripts within embedded content.

Would be nice to have a "secure only" mode parameter, which passes all html through DOMPurify before calling innerHTML (or ideally right after fetching the new html). Additionally, "secure only" mode would not attempt to call refreshScripts() to prevent external scripts from ever loading.