Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Discord Silly Egg Watcher
- // @version 1.2
- // @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.
- // @author You
- // @match https://discord.com/*
- // @grant none
- // ==/UserScript==
- (function () {
- 'use strict';
- let activated = false;
- const beep = () => {
- const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
- const oscillator = audioCtx.createOscillator();
- oscillator.type = 'sine';
- oscillator.frequency.setValueAtTime(880, audioCtx.currentTime); // A5
- oscillator.connect(audioCtx.destination);
- oscillator.start();
- oscillator.stop(audioCtx.currentTime + 0.15);
- };
- const showNotification = (text) => {
- const note = document.createElement('div');
- note.textContent = text;
- Object.assign(note.style, {
- position: 'fixed',
- bottom: '20px',
- right: '20px',
- padding: '10px 15px',
- background: '#4caf50',
- color: 'white',
- fontSize: '14px',
- fontFamily: 'sans-serif',
- borderRadius: '8px',
- boxShadow: '0 2px 10px rgba(0,0,0,0.3)',
- zIndex: 9999,
- });
- document.body.appendChild(note);
- setTimeout(() => note.remove(), 4000);
- };
- const autoClickSillyEggLink = () => {
- const observer = new MutationObserver(mutations => {
- for (const mutation of mutations) {
- for (const node of mutation.addedNodes) {
- if (!(node instanceof HTMLElement)) continue;
- const embeds = node.querySelectorAll('.embedWrapper_b7e1cb');
- embeds.forEach(embed => {
- const embedText = embed.textContent.toLowerCase();
- if (embedText.includes("silly egg")) {
- const link = embed.querySelector('a[href*="gumtopia.cc/roblox/join_game.php"]');
- if (link) {
- console.log("✅ Found 'silly egg' + valid gumtopia link. Clicking now...");
- beep();
- link.click();
- }
- }
- });
- }
- }
- });
- observer.observe(document.body, { childList: true, subtree: true });
- showNotification("🥚 Silly Egg Auto-Joiner Activated!");
- console.log("🎯 Silly Egg Watcher is now active.");
- };
- window.addEventListener('keydown', (e) => {
- if (e.ctrlKey && e.shiftKey && e.key.toLowerCase() === 'e' && !activated) {
- activated = true;
- autoClickSillyEggLink();
- }
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement