Advertisement
NewBestPastebins

Always be first to silly eggs

Apr 30th, 2025 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Discord Silly Egg Watcher
  3. // @version      1.2
  4. // @description  Listens for silly egg links on Discord and auto-clicks them after activation via Ctrl + Shift + E. Plays sound and shows popup when active/clicked.
  5. // @author       You
  6. // @match        https://discord.com/*
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. (function () {
  11.   'use strict';
  12.  
  13.   let activated = false;
  14.  
  15.   const beep = () => {
  16.     const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
  17.     const oscillator = audioCtx.createOscillator();
  18.     oscillator.type = 'sine';
  19.     oscillator.frequency.setValueAtTime(880, audioCtx.currentTime); // A5
  20.     oscillator.connect(audioCtx.destination);
  21.     oscillator.start();
  22.     oscillator.stop(audioCtx.currentTime + 0.15);
  23.   };
  24.  
  25.   const showNotification = (text) => {
  26.     const note = document.createElement('div');
  27.     note.textContent = text;
  28.     Object.assign(note.style, {
  29.       position: 'fixed',
  30.       bottom: '20px',
  31.       right: '20px',
  32.       padding: '10px 15px',
  33.       background: '#4caf50',
  34.       color: 'white',
  35.       fontSize: '14px',
  36.       fontFamily: 'sans-serif',
  37.       borderRadius: '8px',
  38.       boxShadow: '0 2px 10px rgba(0,0,0,0.3)',
  39.       zIndex: 9999,
  40.     });
  41.     document.body.appendChild(note);
  42.     setTimeout(() => note.remove(), 4000);
  43.   };
  44.  
  45.   const autoClickSillyEggLink = () => {
  46.     const observer = new MutationObserver(mutations => {
  47.       for (const mutation of mutations) {
  48.         for (const node of mutation.addedNodes) {
  49.           if (!(node instanceof HTMLElement)) continue;
  50.  
  51.           const embeds = node.querySelectorAll('.embedWrapper_b7e1cb');
  52.           embeds.forEach(embed => {
  53.             const embedText = embed.textContent.toLowerCase();
  54.  
  55.             if (embedText.includes("silly egg")) {
  56.               const link = embed.querySelector('a[href*="gumtopia.cc/roblox/join_game.php"]');
  57.               if (link) {
  58.                 console.log("✅ Found 'silly egg' + valid gumtopia link. Clicking now...");
  59.                 beep();
  60.                 link.click();
  61.               }
  62.             }
  63.           });
  64.         }
  65.       }
  66.     });
  67.  
  68.     observer.observe(document.body, { childList: true, subtree: true });
  69.     showNotification("🥚 Silly Egg Auto-Joiner Activated!");
  70.     console.log("🎯 Silly Egg Watcher is now active.");
  71.   };
  72.  
  73.   window.addEventListener('keydown', (e) => {
  74.     if (e.ctrlKey && e.shiftKey && e.key.toLowerCase() === 'e' && !activated) {
  75.       activated = true;
  76.       autoClickSillyEggLink();
  77.     }
  78.   });
  79. })();
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement