mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Add shortcut for https://psim.us/devdiscord
This allows shortlinks in the form of <<devdiscord>> and is easier, at least for me, than memorizing the spoink link.
This commit is contained in:
parent
9de28f5f00
commit
be31237b96
|
|
@ -52,6 +52,8 @@ RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
|
|||
RewriteRule ^dex\/?$ https://dex.pokemonshowdown.com/ [R=302,L]
|
||||
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
|
||||
RewriteRule ^insecure\/?$ http://play.pokemonshowdown.com/?insecure [R=302,L]
|
||||
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
|
||||
RewriteRule ^devdiscord\/?$ https://discord.com/invite/D8QwhsH [R=302,L]
|
||||
|
||||
# rewrite old sprite directories/files
|
||||
RewriteRule ^sprites\/xyani(.*)?$ sprites/ani$1 [L,QSA]
|
||||
|
|
|
|||
|
|
@ -1308,7 +1308,7 @@ function toId() {
|
|||
) && this.className !== 'no-panel-intercept') {
|
||||
if (!e.cmdKey && !e.metaKey && !e.ctrlKey) {
|
||||
var target = this.pathname.substr(1);
|
||||
var shortLinks = /^(rooms?suggestions?|suggestions?|adminrequests?|bugs?|bugreports?|rules?|faq|credits?|news|privacy|contact|dex|insecure|replays?|forgotpassword)$/;
|
||||
var shortLinks = /^(rooms?suggestions?|suggestions?|adminrequests?|bugs?|bugreports?|rules?|faq|credits?|news|privacy|contact|dex|insecure|replays?|forgotpassword|devdiscord)$/;
|
||||
if (target === 'appeal' || target === 'appeals') target = 'view-help-request--appeal';
|
||||
if (target === 'report') target = 'view-help-request--report';
|
||||
if (isReplayLink) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user