Skip to content

Commit 8f05c77

Browse files
committed
Added app files [v1.1]
1 parent df9b8b6 commit 8f05c77

File tree

4 files changed

+17
-34
lines changed

4 files changed

+17
-34
lines changed

CHANGELOG.log

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
[30.08.2021 - version 1.0] Big update today we added the check for updates option check it out!
1+
[30.08.2021 - version 1.0] Big update today we added the check for updates option check it out!
2+
[04.09.2021 - version 1.1] Small changes in source code

README.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

SimpleWebsiteBlocker.exe

100 Bytes
Binary file not shown.

main.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
user_choice_unlock_website = ""
1313
user_confirm_choice = ""
1414

15-
current_version = "1.0"
15+
current_version = "1.1"
1616

1717
version_url = "https://raw.githubusercontent.com/Rabixx/updater/main/version.txt"
1818

@@ -42,6 +42,9 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
4242
os.system('cls')
4343
c = open(win_path,"a")
4444
print("what website u want to block?")
45+
print()
46+
print("to cancel hold CTRL + C in the same moment")
47+
print()
4548
user_choice_block_website = str(input(">>: "))
4649
c.writelines("0.0.0.0" + " " + user_choice_block_website + "\n")
4750
c.close()
@@ -53,11 +56,16 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
5356
print(f"[ERROR] {ex_1}")
5457
time.sleep(2)
5558
os.system('cls')
59+
except KeyboardInterrupt:
60+
os.system('cls')
5661

5762
if user_choice == 2:
5863
try:
5964
os.system('cls')
6065
print("what website u want to unlock?")
66+
print()
67+
print("to cancel hold CTRL + C in the same moment")
68+
print()
6169
user_choice_unlock_website = str(input(">>: "))
6270
with open(win_path, 'r') as file:
6371
lines = file.readlines()
@@ -76,6 +84,8 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
7684
print(f"[ERROR] {ex_2}")
7785
time.sleep(2)
7886
os.system('cls')
87+
except KeyboardInterrupt:
88+
os.system('cls')
7989

8090
if user_choice == 3:
8191
try:
@@ -96,10 +106,10 @@ def main(user_choice,user_choice_block_website,user_choice_unlock_website,win_pa
96106
if user_choice == 4:
97107
try:
98108
os.system('cls')
99-
print("SimpleWebsiteBlocker",date.today().year,"copyrights")
100-
print("this app is really simple websiteblocker that can be used")
101-
print("without any time limits its free and under SimpleWebsiteBlocker license")
102-
print("you can find more details under this link {}".format("https://github.com/Rabixx/SimpleWebsiteBlocker/"))
109+
print("> SimpleWebsiteBlocker",date.today().year,"copyrights")
110+
print("> this app is really simple websiteblocker that can be used")
111+
print("> without any time limits its free and under SimpleWebsiteBlocker license")
112+
print("> you can find more details under this link {}".format("https://github.com/Rabixx/SimpleWebsiteBlocker/"))
103113
os.system('pause')
104114
os.system('cls')
105115
except Exception as ex_4:

0 commit comments

Comments
 (0)