• The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Programming Hiding Your Pokemon Showdown Replays with a Smart Button

This guide will show you how to install a simple "Userscript" that adds a "Hide" button directly into your battle screen.

Part 1: What You Need First (A Userscript Manager)

To use this script, you first need a browser extension called a "Userscript Manager." The most popular one is Tampermonkey. It's free and available for all major browsers.

Click the link for your browser below to install it:

Install it just like any other browser extension. You should see a new Tampermonkey icon in your browser's toolbar.

Part 2: Installing the "Hide Replay" Script

Now that you have Tampermonkey, follow these steps carefully.

  1. Open the Tampermonkey Dashboard:
    • Click on the Tampermonkey icon in your toolbar.
    • Select "Create a new script..." from the menu.
  2. Prepare the Editor:
    • A new tab will open with a code editor. It will have some default template code inside.
    • Delete all of the default code so you have a completely blank editor.
  3. Copy & Paste the Script:
    • Copy the entire block of code from the file 1.txt attached .
    • Paste it directly into the blank editor in the Tampermonkey tab.
  4. Save the Script:
    • Go to File -> Save in the editor's menu bar.
    • Alternatively, you can just press Ctrl + S (or Cmd + S on a Mac).
  5. You're Done!
    • You can now close the editor tab. The script is installed and active!

Part 3: How to Use It

  1. Go to play.pokemonshowdown.com and start or watch a battle.
  2. In the battle room, you will now see a new button with an eye-slash icon that says "Hide".
  3. Click this "Hide" button at any point during the battle.
  4. The button text will change to "Hidden" for a moment to confirm it worked, and then it will disappear to keep your screen clean.
That's it! The replay for that battle will now be hidden.

If you encounter any problems while using the script, please feel free to let me know so I can work on a fix. I'd really appreciate it!
Additionally, it does not work on smogtours. If you want it to run there as well, you can modify its matching URLs and change the command it types. (I have added File 2 for Smogon Tours. You can perform the same operation again to create a new script that copies the contents of File 2. (Please do not delete the previous script; they run independently.))
That being said, what I'd actually love to see is more high-level battles being made public, so that everyone can study and learn from them.


I've added three new images to help you understand how it works.

1.png2.png3.png
 

Attachments

Last edited:
Back
Top