├── 001.mp3 ├── 002.mp3 └── socialexit.py /001.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FreddyDeveloper/SocialExit/HEAD/001.mp3 -------------------------------------------------------------------------------- /002.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FreddyDeveloper/SocialExit/HEAD/002.mp3 -------------------------------------------------------------------------------- /socialexit.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | import webbrowser 3 | import pygame 4 | 5 | # Initialize pygame mixer 6 | pygame.mixer.init() 7 | 8 | # Dictionary containing social media links in English 9 | social_media_en = { 10 | "Delete X": "https://twitter.com/settings/deactivate", 11 | "Delete Instagram": "https://www.instagram.com/accounts/remove/request/permanent/", 12 | "Delete Facebook": "https://www.facebook.com/help/delete_account", 13 | "Delete TikTok": "https://www.tiktok.com/setting", 14 | "Delete Twitch": "https://www.twitch.tv/user/delete-account", 15 | "Delete YouTube": "https://www.youtube.com/account_advanced", 16 | "Delete Snapchat": "https://accounts.snapchat.com/accounts/delete_account", 17 | "Delete LinkedIn": "https://www.linkedin.com/mypreferences/d/close-accounts" 18 | } 19 | 20 | # Dictionary containing social media links in Spanish 21 | social_media_es = { 22 | "Elimina X": "https://twitter.com/settings/deactivate", 23 | "Elimina Instagram": "https://www.instagram.com/accounts/remove/request/permanent/", 24 | "Elimina Facebook": "https://www.facebook.com/help/delete_account", 25 | "Elimina TikTok": "https://www.tiktok.com/setting", 26 | "Elimina Twitch": "https://www.twitch.tv/user/delete-account", 27 | "Elimina YouTube": "https://www.youtube.com/account_advanced", 28 | "Elimina Snapchat": "https://accounts.snapchat.com/accounts/delete_account", 29 | "Elimina LinkedIn": "https://www.linkedin.com/mypreferences/d/close-accounts" 30 | } 31 | 32 | social_media = social_media_en 33 | 34 | # Function to open a link in the default web browser 35 | def open_link(url): 36 | # Print the click event to the console 37 | print(f"Clicked on: {social_media.get(next(key for key, value in social_media.items() if value == url))}") 38 | 39 | # Open the link 40 | webbrowser.open_new(url) 41 | 42 | # Function to change the language 43 | def change_language(): 44 | global social_media 45 | global language_button 46 | if language_button["text"] == "Change to English": 47 | language_button["text"] = "Cambiar a Español" 48 | social_media = social_media_en 49 | else: 50 | language_button["text"] = "Change to English" 51 | social_media = social_media_es 52 | refresh_buttons() 53 | print(f"Changed language to: {'English' if language_button['text'] == 'Change to English' else 'Spanish'}") 54 | 55 | # Function to refresh the buttons with the current language 56 | def refresh_buttons(): 57 | for button, url in zip(buttons, social_media.values()): 58 | button.config(text=list(social_media.keys())[list(social_media.values()).index(url)]) 59 | 60 | # Function to play sound when the mouse hovers over a button and change the button color to red 61 | def play_hover_sound(event): 62 | pygame.mixer.Sound("001.mp3").play() 63 | event.widget.config(bg="red") 64 | 65 | # Function to reset the button color when the mouse leaves the button 66 | def reset_button_color(event): 67 | event.widget.config(bg="#2C2F33") 68 | 69 | # Function to play sound when a button is clicked 70 | def play_click_sound(event): 71 | pygame.mixer.Sound("002.mp3").play() 72 | 73 | # Create the main window 74 | root = tk.Tk() 75 | root.title("SocialEXIT") 76 | root.configure(bg="#121212") 77 | root.geometry("225x390") 78 | 79 | # Create the language change button 80 | language_button = tk.Button(root, text="Cambiar a Español", bg="orange", fg="black", font=("Arial", 12), width=20, command=change_language) 81 | language_button.pack(pady=10) 82 | 83 | # Create a list to hold the buttons 84 | buttons = [] 85 | 86 | # Create a button for each social media link 87 | for name, url in social_media.items(): 88 | button = tk.Button(root, text=name, bg="#2C2F33", fg="white", font=("Arial", 12), width=20, command=lambda u=url: open_link(u)) 89 | button.pack(pady=5) 90 | button.bind("", play_hover_sound) 91 | button.bind("", reset_button_color) 92 | button.bind("", play_click_sound) 93 | buttons.append(button) 94 | 95 | # Start the tkinter event loop 96 | root.mainloop() --------------------------------------------------------------------------------