mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Introduction of Black: The uncompromising Python code formatter.
Please find more about it there: * https://github.com/python/black * https://black.readthedocs.io/en/stable/
This commit is contained in:
126
makeHosts.py
126
makeHosts.py
@@ -54,59 +54,89 @@ def update_readme_file():
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Creates custom hosts "
|
||||
"file from hosts stored in "
|
||||
"data subfolders.")
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Creates custom hosts "
|
||||
"file from hosts stored in "
|
||||
"data subfolders."
|
||||
)
|
||||
parser.parse_args()
|
||||
|
||||
update_hosts_file("-a", "-o",
|
||||
"alternates/gambling",
|
||||
"-e", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/porn",
|
||||
"-e", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/social",
|
||||
"-e", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews",
|
||||
"-e", "fakenews")
|
||||
update_hosts_file("-a", "-o", "alternates/gambling", "-e", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/porn", "-e", "porn")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/social", "-e", "social")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/fakenews", "-e", "fakenews")
|
||||
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling",
|
||||
"-e", "fakenews", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-porn",
|
||||
"-e", "fakenews", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-social",
|
||||
"-e", "fakenews", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/gambling-porn",
|
||||
"-e", "gambling", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/gambling-social",
|
||||
"-e", "gambling", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/porn-social",
|
||||
"-e", "porn", "social")
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-gambling", "-e", "fakenews", "gambling"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-porn", "-e", "fakenews", "porn"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-social", "-e", "fakenews", "social"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/gambling-porn", "-e", "gambling", "porn"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/gambling-social", "-e", "gambling", "social"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/porn-social", "-e", "porn", "social"
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling-porn",
|
||||
"-e", "fakenews", "gambling", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling-social",
|
||||
"-e", "fakenews", "gambling", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-porn-social",
|
||||
"-e", "fakenews", "porn", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/gambling-porn-social",
|
||||
"-e", "gambling", "porn", "social")
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-porn",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"porn",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"social",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-porn-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/gambling-porn-social",
|
||||
"-e",
|
||||
"gambling",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling-porn-social",
|
||||
"-e", "fakenews", "gambling", "porn", "social")
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-porn-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user