Generates a host list of first-party trackers for ad-blocking.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
555 B

4 months ago
4 months ago
4 months ago
  1. #!/usr/bin/env python3
  2. import markdown2
  3. extras = ["header-ids"]
  4. with open("dist/README.md", "r") as fdesc:
  5. body = markdown2.markdown(fdesc.read(), extras=extras)
  6. output = f"""<!DOCTYPE html>
  7. <html lang="en">
  8. <head>
  9. <title>Geoffrey Frogeye's block list of first-party trackers</title>
  10. <meta charset="utf-8">
  11. <meta name="author" content="Geoffrey 'Frogeye' Preud'homme" />
  12. <link rel="stylesheet" type="text/css" href="markdown7.min.css">
  13. </head>
  14. <body>
  15. {body}
  16. </body>
  17. </html>
  18. """
  19. with open("dist/index.html", "w") as fdesc:
  20. fdesc.write(output)