import re def extract_regex_from_js(js_code): pattern1 = r'(?= 5] # remove domains with blocked words blocked_words_for_includes = [ "google", "youtube" #youtube is for redirecting shorts, but I remove it to avoid people worrying ] regex_strings = [s for s in regex_strings if not any(word in s for word in blocked_words_for_includes)] generate_include_lines(regex_strings) except FileNotFoundError: print(f"Error: File '{file_path}' not found.") except Exception as e: print(f"An error occurred: {e}") if __name__ == "__main__": main()