From d6bdafd2899893b0eb95ca497d86bba8c854533b Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Apr 2024 15:29:34 +0000 Subject: [PATCH] fixes --- configs/atexit-cleanup.py | 4 ++++ configs/chrome-urls.py | 4 ++++ configs/chromium-flags.py | 12 +++++++++--- configs/interceptor-cloudflare.py | 9 +++++++++ configs/privacy-settings.py | 7 ++++++- 5 files changed, 32 insertions(+), 4 deletions(-) diff --git a/configs/atexit-cleanup.py b/configs/atexit-cleanup.py index 6015c02..c61b2dd 100644 --- a/configs/atexit-cleanup.py +++ b/configs/atexit-cleanup.py @@ -1,5 +1,9 @@ # -*- mode: python; python-indent-offset: 4; tab-width: 0; encoding: utf-8-unix -*- # This should be execed in config.py + +"""This is a simple way of deleting cookies and history at exit. +""" + import sys import os import atexit diff --git a/configs/chrome-urls.py b/configs/chrome-urls.py index 8778f8a..aa817a8 100644 --- a/configs/chrome-urls.py +++ b/configs/chrome-urls.py @@ -1,6 +1,10 @@ # -*- mode: python; python-indent-offset: 4; tab-width: 0; encoding: utf-8-unix -*- # This should be execed in config.py +"""This is a comprehensive list of chrome:// and qute:// URLs +so it's easy to find them, bound to the prefix letter c +""" + # https://cnman.github.io/chrome-urls.html # not chrome://history/" config.unbind("cd") # download-clear diff --git a/configs/chromium-flags.py b/configs/chromium-flags.py index 2266906..27433fb 100644 --- a/configs/chromium-flags.py +++ b/configs/chromium-flags.py @@ -1,9 +1,15 @@ # -*- mode: python; python-indent-offset: 4; tab-width: 0; encoding: utf-8-unix -*- # This should be execed in config.py -# Test by visiting https://coveryourtracks.eff.org/ -# https://niek.github.io/chrome-features/ -# https://peter.sh/experiments/chromium-command-line-switches/ +"""Our attempt at listing the chrome flags for security and privacy, +and some of the chrome features. Consult: +* https://niek.github.io/chrome-features/ +* https://peter.sh/experiments/chromium-command-line-switches/ + +Test by visiting https://coveryourtracks.eff.org/ + +YMMV! +""" # this may interfere wuth some logins diff --git a/configs/interceptor-cloudflare.py b/configs/interceptor-cloudflare.py index 59ce497..1350681 100644 --- a/configs/interceptor-cloudflare.py +++ b/configs/interceptor-cloudflare.py @@ -1,3 +1,12 @@ +# -*- mode: python; python-indent-offset: 4; tab-width: 0; encoding: utf-8-unix -*- +# This should be execed in config.py + +"""This intercepts cloudflare redirects and redirects to +web.archive.org - useful if you run over Tor. + +It will open a new tab and close the old one. +""" + import re import sys diff --git a/configs/privacy-settings.py b/configs/privacy-settings.py index d78df34..16550e9 100644 --- a/configs/privacy-settings.py +++ b/configs/privacy-settings.py @@ -1,4 +1,9 @@ -# privacy +# -*- mode: python; python-indent-offset: 4; tab-width: 0; encoding: utf-8-unix -*- +# This should be execed in config.py + +"""Some privacy settings - YMMV +""" + c.content.geolocation = False c.content.dns_prefetch = False c.content.canvas_reading = False