Skip to content

Commit

Permalink
Update start.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mirbyte authored Sep 12, 2024
1 parent 4939475 commit fddb9cc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ def read_list_from_file(filename):
return set()


facebook_urls_file = 'facebook_urls.txt'
fuckfacebook = read_list_from_file(facebook_urls_file)


default_http = [
'/ads', '.ads.', '-ads.', '.ad.', '/ad.', 'advert', '.gstatic.com', '.admob.com', '.analytics.localytics.com',
Expand All @@ -89,8 +86,13 @@ def read_list_from_file(filename):


include_default_http = input("Do you want to include LuckyPatcher defaults? (y/n): ").strip().lower()
add_additionals = input("Do you want to include additional_urls.txt file contents? (y/n): ").strip().lower()
add_facebook = input("Do you want to block facebook.com? (y/n): ").strip().lower()
duplicate_http_to_all_strings = input("Do you want to duplicate everything from [http] into [ALL_STRINGS])? (y/n): ").strip().lower()
duplicate_http_to_strings = input("Do you want to duplicate everything from [http] into [ALL_STRINGS])? (y/n): ").strip().lower()


fuckfacebook = read_list_from_file('facebook_urls.txt')
additionals = read_list_from_file('additional_urls.txt')


def http_fix(file_path):
Expand All @@ -113,6 +115,10 @@ def http_fix(file_path):
for line in fuckfacebook:
file.write(line + '\n')

if add_additionals == 'y':
for line in additionals:
file.write(line + '\n')

for line in sorted(combined_list):
file.write(line + '\n')

Expand All @@ -127,7 +133,7 @@ def http_fix(file_path):
for line in fuckfacebook:
file.write(line + '\n')

if duplicate_http_to_all_strings == 'y':
if duplicate_http_to_strings == 'y':
for line in sorted(combined_list):
file.write(line + '\n')

Expand All @@ -141,7 +147,6 @@ def http_fix(file_path):



print("")
print("")
print("")
input("Press Enter to exit...")

0 comments on commit fddb9cc

Please sign in to comment.