diff --git a/app/portable.py b/app/portable.py index 25e461d..202ab5c 100644 --- a/app/portable.py +++ b/app/portable.py @@ -637,7 +637,7 @@ def process_html_document(html_content, original_url): # Strip anti-hotlinking, anti-embedding, and frame-busting scripts. for script in soup.find_all("script", src=False): - content = script.get_text(default="") + content = script.get_text() # Target the specific hostname check if "location.hostname" in content and ("location.href" in content or "location.replace" in content): @@ -726,6 +726,25 @@ ARCHIVE_PH_MIRRORS = ["archive.ph", "archive.today", "archive.is", "archive.li"] FREEDIUM_MIRRORS = ["freedium-mirror.cfd", "freedium.cfd"] +# The original Freedium layout wrapped the post in