[PS] Homepage Enhancements

Improves the Pokemon Showdown homepage.

当前为 2024-09-14 提交的版本,查看 最新版本

作者
indigeau
评分
0 0 0
版本
0.4
创建于
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 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 small screens. A visible sidebar is not mandatory; the rest of the script works fine without it.

Main Menu

The main menu buttons no longer appear in 3 separate groups. Their container scrolls vertically.

PM/News Box

The container scrolls horizontally. The chat/news windows inside the container 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.