Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rmtbb/5f505d501d7eff56956081ece0bb74ca to your computer and use it in GitHub Desktop.
Save rmtbb/5f505d501d7eff56956081ece0bb74ca to your computer and use it in GitHub Desktop.
DEXSCREENER RugCheck Bookmarklet for Solana Tokens
javascript:(function(){const el=document.querySelector("#root > div > main > div.custom-12pypef > div > div.custom-7w9b0e > div > div > div:nth-child(3) > div > div.chakra-stack.custom-1lzkwvw > div:nth-child(9) > div > a");if(el){const tokenAddress=el.href.split('/').pop();if(tokenAddress.length>=32){window.open(`https://rugcheck.xyz/tokens/${tokenAddress}`,'_blank');}else{alert('Invalid token address detected.');}}else{alert('Element not found.');}})();
@rmtbb
Copy link
Author

rmtbb commented Jan 21, 2025

DEXSCREENER RugCheck Bookmarklet for Solana Tokens

Overview

A JavaScript bookmarklet to extract Solana token addresses from DEXSCREENER and open the Rugcheck page. This saves all of us degens a few moments when going back and forth between a bunch of coins and doing our best to snipe good ones. It just helps with efficiency—don’t lose precious milliseconds!

A JavaScript bookmarklet to extract Solana token addresses from a webpage and open the Rugcheck page.

Setup

  1. Create a new Chrome bookmark.
  2. Name it RugCheck Solana Bookmarklet.
  3. Paste this into the URL field:
    javascript:(function(){const el=document.querySelector("#root > div > main > div.custom-12pypef > div > div.custom-7w9b0e > div > div > div:nth-child(3) > div > div.chakra-stack.custom-1lzkwvw > div:nth-child(9) > div > a");if(el){const tokenAddress=el.href.split('/').pop();if(tokenAddress.length>=32){window.open(`https://rugcheck.xyz/tokens/${tokenAddress}`,'_blank');}else{alert('Invalid token address detected.');}}else{alert('Element not found.');}})();

Usage

  1. Open the page on DEXSCREENER.
  2. Click the bookmarklet.
  3. RugCheck opens in a new tab with the Solana token address.

Notes

  • Adjust the query selector if the webpage structure changes.

Add DEXSCREENER and RugCheck to Chrome Search Shortcuts

To further optimize your workflow, you can use Chrome shortcuts directly if you have a Solana token address copied to your clipboard.

  1. Open Chrome Settings > Search Engine > Manage Search Engines.
  2. Click Add to create new search shortcuts.

DEXSCREENER Shortcut:

  • Name: DEXSCREENER Solana
  • Shortcut: sol
  • URL: https://dexscreener.com/solana/%s

RugCheck Shortcut:

  • Name: RugCheck Solana
  • Shortcut: rug
  • URL: https://rugcheck.xyz/tokens/%s

Now, type sol or rug followed by a Solana token address in the Chrome address bar to open the corresponding page.

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