### Basically open source xD. please give credits if code is used externally.
## https://github.com/sgtflixy
## https://spencertool.sgtflixy.xyz

import os
from os import system
import webbrowser
import shutil
import random
import time


blockcounter = 0
user = os.getlogin()
filepaths = [fr"C:\Users\{user}\AppData\Local\Microsoft\Edge\User Data\Default\Extensions\dlcaglefdlidioooijnigjhfcndlncfp",fr"C:\Users\{user}\AppData\Local\Microsoft\Edge\User Data\Default\Extensions\epkahbohdeajpadlmelfkenmoeblkpem"]
for paths in filepaths:
    if os.path.exists(paths):
        shutil.rmtree(paths)
   
banner = f"""
     _______  _____  _______ __   _ _______ _______  ______      ______  __   __  _____  _______ _______ _______
     |______ |_____] |______ | \  | |       |______ |_____/      |_____]   \_/   |_____] |_____| |______ |______
     ______| |       |______ |  \_| |_____  |______ |    \_      |_____]    |    |       |     | ______| ______|
     
     -----------------------------------------------------------------------------------------------------------
     
     - Grab updates from: https://spencertool.sgtflixy.xyz
     - Drop a star on github: https://github.com/sgtflixy
     
     -----------------------------------------------------------------------------------------------------------
     
     Blocks removed: {str(blockcounter)}
    """
   
system("title " + "SpencerRiot - WebBlock remover")
os.system('cls')
print(banner)
cycle = 1
while True:
    os.system("cls")
    print(banner)

    for paths in filepaths:
        if os.path.exists(paths):
            shutil.rmtree(paths)
            print("     [ !! ] : Block attempt removed")
            blockcounter += 1
        else:
            if cycle == 1:
                print("     [ !! ] : Nothing found, searching.")
                cycle = cycle +1
            elif cycle == 2:
                print("     [ !! ] : Nothing found, searching..")
                cycle = cycle +1
            elif cycle == 3:

                print("     [ !! ] : Nothing found, searching...")
                cycle = 1
    num1 = random.randint(1,25)
    if num1 == 5:
        print("- james was here xx")
