From anonymous, 6 Months ago, written in Python.
Embed
  1. JS = """
  2. *://*.stackexchange.com/*
  3. *://boards.4chan.org/*
  4. *://bugreports.qt.io/*
  5. *://ci.appveyor.com/*
  6. *://codecov.io/*
  7. *://codereview.qt-project.org/*
  8. *://docs.pytest.org/*
  9. *://github.com/*
  10. *://*.hsr.ch/*
  11. *://stackoverflow.com/*
  12. *://studentenportal.ch/*
  13. *://travis-ci.org/*
  14. *://web.telegram.org/*
  15. *://www.riverbankcomputing.com/*
  16. *://*.the-compiler.org/*
  17. *://twitter.com/*
  18.  
  19. *://chromium-review.googlesource.com/*
  20. *://cs.chromium.org/*
  21. *://docs.google.com/*
  22. *://imgur.com/*
  23. *://translate.google.com/*
  24. *://web.whatsapp.com/*
  25. *://www.dict.cc/*
  26. *://www.indiegogo.com/*
  27. *://www.openstreetmap.org/*
  28. *://www.reddit.com/*
  29. *://www.sbb.ch/*
  30. *://www.wolframalpha.com/*
  31. *://www.youtube.com/*
  32. """
  33.  
  34. for url in JS.strip().splitlines():
  35.     if url.strip():
  36.         config.set('content.javascript.enabled', True, pattern=url)