Skip to content

Instantly share code, notes, and snippets.

@rmtbb
Last active January 22, 2025 03:09
Show Gist options
  • Save rmtbb/0de008f1ac7535290bc8dfe670139e67 to your computer and use it in GitHub Desktop.
Save rmtbb/0de008f1ac7535290bc8dfe670139e67 to your computer and use it in GitHub Desktop.
Solana Degen Quick Recon Toolbox - It grabs a token address from your clipboard and opens GMGN, Rug Check, and TrenchBot (for pump.fun tokens) in new tabs, saving you precious clicks
javascript:(function(){if(!navigator.clipboard){alert('Clipboard access is not available on this page. Please open a webpage and try again.');return;}navigator.clipboard.readText().then(function(t){if(!t){alert('Clipboard is empty or unreadable.');return;}t=t.trim();if(!t.match(/^[a-zA-Z0-9]+$/)){alert('Clipboard text is invalid.');return;}const u=[`https://gmgn.ai/sol/token/${t}`,`https://rugcheck.xyz/tokens/${t}`];if(t.endsWith('pump'))u.push(`https://trench.bot/bundles/${t}`);u.forEach(l=>window.open(l,'_blank'));}).catch(function(e){alert('Error reading clipboard: '+e);});})();
@rmtbb
Copy link
Author

rmtbb commented Jan 22, 2025

Degen Quick Recon Toolbox

Attention, Solana degens! 🦍 Are you tired of wasting precious seconds opening multiple tools to check your token alpha? The Degen Quick Recon Toolbox has got you covered. With just one click, this bookmarklet opens all the tabs you need for Solana token analysis, saving you time for more aping and mooning. πŸŒ•

What It Does

This bookmarklet is for Solana degens! It grabs a token address from your clipboard and opens GMGN, Rug Check, and TrenchBot (for pump.fun tokens) in new tabs, saving you precious clicks.

Setup Instructions

1. Copy the Bookmarklet Code

javascript:(function(){if(!navigator.clipboard){alert('Clipboard access is not available on this page. Please open a webpage and try again.');return;}navigator.clipboard.readText().then(function(t){if(!t){alert('Clipboard is empty or unreadable.');return;}t=t.trim();if(!t.match(/^[a-zA-Z0-9]+$/)){alert('Clipboard text is invalid.');return;}const u=[`https://gmgn.ai/sol/token/${t}`,`https://rugcheck.xyz/tokens/${t}`];if(t.endsWith('pump'))u.push(`https://trench.bot/bundles/${t}`);u.forEach(l=>window.open(l,'_blank'));}).catch(function(e){alert('Error reading clipboard: '+e);});})();

2. Add It to Your Bookmarks

  • Open your browser (Chrome or any other modern browser).
  • Right-click the bookmarks bar and select "Add page" (or equivalent).
  • Give it a name like Degen Quick Recon Toolbox.
  • Paste the code above into the URL field and click Save.

3. How to Use

  1. Copy a Solana token contract address (e.g., Faph9CjPwV9pRz642sbgnhhXVQFhQJZrWp8jspEDpump) to your clipboard.
  2. Click the Degen Quick Recon Toolbox bookmarklet.
  3. Sit back and watch as all the tabs you need open instantly:
    • GMGN
    • Rug Check
    • (If applicable) TrenchBot for pump.fun tokens.

Why You Need This

  • Time is money: Every click saved is more time to ape.
  • Solana-focused: Specifically designed for your Solana degen adventures.
  • Automatic analysis: TrenchBot opens only when it’s relevant (for pump.fun tokens).

Pro Tip for Mac Users πŸ–₯️🍎

If you're using a Mac and signed into the same iCloud account as your iPhone, the macOS Universal Clipboard can pass the clipboard contents from your phone to your computer. This means you can copy a contract address on your phone and immediately run the bookmarklet on your Mac. No extra steps, no hassle – just pure efficiency. πŸš€

Full code for your review

javascript:(function() {
    // Check if clipboard access is available
    if (!navigator.clipboard) {
        alert('Clipboard access is not available on this page. Please open a webpage and try again.');
        return;
    }

    // Read the clipboard content
    navigator.clipboard.readText().then(function(text) {
        if (!text) {
            alert('Clipboard is empty or unreadable.');
            return;
        }

        // Trim and validate clipboard text
        text = text.trim();
        if (!text.match(/^[a-zA-Z0-9]+$/)) {
            alert('Clipboard text is invalid.');
            return;
        }

        // Prepare URLs
        const urls = [
            `https://gmgn.ai/sol/token/${text}`,
            `https://rugcheck.xyz/tokens/${text}`
        ];

        // Check for pump.fun tokens and add TrenchBot
        if (text.endsWith('pump')) {
            urls.push(`https://trench.bot/bundles/${text}`);
        }

        // Open each URL in a new tab
        urls.forEach(url => window.open(url, '_blank'));
    }).catch(function(error) {
        alert('Error reading clipboard: ' + error);
    });
})();

Disclaimer

Use the Degen Quick Recon Toolbox responsibly. We're not liable for your gains, losses, or the sheer amount of tabs you'll have open after aping into every pump.fun token. DYOR and ape wisely. πŸ’πŸ’Ž

Now go forth and dominate Solana like the true degen you are! πŸš€πŸ”₯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment