[PS] Homepage Enhancements

Improves the Pokemon Showdown homepage.

目前為 2024-09-14 提交的版本,檢視 最新版本

作者
indigeau
評價
0 0 0
版本
0.3
建立日期
2024-09-03
更新日期
2024-09-14
尺寸
22.8 KB
授權條款
GNU GPLv3
腳本執行於

Description

Beautifies play.pokemonshowdown.com and adds a sidebar for quick access to your team's Pokémon.

I've included pics below to show what the script does. Things may not look exactly the same on your end but the page layout should match.

Usage

Sidebar

When a team is selected, your Pokémon will appear in the sidebar. Clicking them will open their page in the teambuilder. Holding the ctrl key whilst clicking will open a Pokémon's Smogon analysis page.

Sidebar Pokémon can be dragged and dropped to insert them into chat windows (only local chat; they can't be sent to other people this way) or open their image in a new tab. Regular dragging gives the original image directly from https://play.pokemonshowdown.com/sprites. Holding ctrl whilst dragging gives the cropped png used in the sidebar.

Your account's graphics settings determine Pokémon appearances. They can be changed by clicking the cog button at the top-right of the screen.

If there's not enough space for it, the sidebar won't be visible. This is common with the "Left and right panels" layout or vertically oriented screens. A visible sidebar is not mandatory; the rest of the script works fine without it.

PM/News Box

The container scrolls horizontally. If any chat/news window is too tall, it will scroll vertically.

Footer

All the links at the bottom of the homepage have been put in a footer. You must scroll down to see it. I've added buttons at the left side of the footer (mainly just to fill space) to post feedback or message me on Showdown. Again, these buttons won't appear if there's not enough room.