Загрузка данных


import tkinter as tk
import urllib.request
import io
import sys
from PIL import Image, ImageTk

# Прямая ссылка на оригинальное лицо MrsMajor 3.0
IMAGE_URL = "https://ytimg.com"

chaos_started = False

def fill_with_blood():
    """Бешеное мерцание экрана кровью (в ПОЛНОЙ ТИШИНЕ)"""
    global chaos_started
    if not chaos_started:
        return
        
    try:
        current_bg = root.cget("bg")
        if current_bg == "black":
            root.config(bg="#4a0000") # Багровый фон
            label.config(image="", bg="#4a0000", text="⚠️ SYSTEM DESTROYED ⚠️\n\nM R S   M A J O R   3 . 0", fg="white", font=("Courier", 45, "bold"))
        else:
            root.config(bg="black")
            label.config(image=bg_image, bg="black", text="")
    except Exception:
        pass
    root.after(140, fill_with_blood)

def trigger_screamer():
    """Включение визуального хаоса через 5 секунд"""
    global chaos_started
    chaos_started = True
    fill_with_blood()

def hard_exit(event):
    """Секретный выход по кнопке Esc"""
    root.destroy()
    sys.exit()

root = tk.Tk()
root.title("MrsMajor 3.0 Fixed Internet")
root.attributes('-fullscreen', True)
root.attributes('-topmost', True)
root.config(bg="black", cursor="none")

# Выход на кнопку ESC
root.bind("<Escape>", hard_exit)

screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()

try:
    # Скачиваем оригинальную картинку 1 в 1 напрямую из сети
    with urllib.request.urlopen(IMAGE_URL, timeout=10) as url:
        image_data = url.read()
    
    # Растягиваем под размер твоего ноутбука Samsung
    original_img = Image.open(io.BytesIO(image_data))
    original_img = original_img.resize((screen_width, screen_height), Image.Resampling.LANCZOS)
    bg_image = ImageTk.PhotoImage(original_img)
    
    # Выводим нормальное лицо без букв
    label = tk.Label(root, image=bg_image, bg="black")
    label.pack(fill="both", expand=True)
    
    # Через 5 секунд тишины включится мерцание
    root.after(5000, trigger_screamer)

except Exception as e:
    # Запасной вариант, если на ноуте нет интернета
    label = tk.Label(root, text="⚠️ CONNECT TO INTERNET ⚠️\n\nNeed network to download face", fg="red", bg="black", font=("Courier", 24, "bold"))
    label.pack(fill="both", expand=True)
    root.after(3000, trigger_screamer)

root.mainloop()