mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
The canonical URI for the site is www.pokemonshowdown.com
This commit is contained in:
@@ -53,7 +53,7 @@ RewriteCond %{HTTP_REFERER} !^https?:\/\/([a-z0-9-]+.)?(pokemonshowdown\.com|app
|
||||
RewriteCond %{REMOTE_ADDR} !^69\.85\.87\.173$
|
||||
RewriteRule ^.* http://www.pokemonshowdown.com/ [R=303,L]
|
||||
|
||||
RewriteRule ^replay/battle-([A-Za-z0-9-]+)$ http://pokemonshowdown.com/replay/$1 [R=302,L]
|
||||
RewriteRule ^replay/battle-([A-Za-z0-9-]+)$ http://www.pokemonshowdown.com/replay/$1 [R=302,L]
|
||||
RewriteRule ^replay/turn_(.+)\.png$ replay/turn-image.php?data=$1 [L,QSA]
|
||||
|
||||
RewriteCond %{QUERY_STRING} !output=html
|
||||
|
||||
@@ -354,7 +354,7 @@ function BattleRoom(id, elem) {
|
||||
selfR.add('|chatmsg-raw|' + message.rawMessage);
|
||||
} else if (message.evalRulesRedirect || message.evalRawMessage) {
|
||||
// TODO: This will be removed in due course.
|
||||
window.location.href = 'http://pokemonshowdown.com/rules';
|
||||
window.location.href = 'http://www.pokemonshowdown.com/rules';
|
||||
} else if (message.name) {
|
||||
selfR.add('|chat|' + message.name.substr(1) + '|' + message.message);
|
||||
} else if (message.message) {
|
||||
@@ -1739,7 +1739,7 @@ function Lobby(id, elem) {
|
||||
selfR.chatElem.append('<div class="message">' + Tools.sanitizeHTML(log[i].rawMessage) + '</div>');
|
||||
} else if (log[i].evalRulesRedirect || log[i].evalRawMessage) {
|
||||
// TODO: This will be removed in due course.
|
||||
window.location.href = 'http://pokemonshowdown.com/rules';
|
||||
window.location.href = 'http://www.pokemonshowdown.com/rules';
|
||||
} else if (log[i].name && (log[i].action === 'join' || log[i].action === 'leave' || log[i].action === 'rename')) {
|
||||
var userid = toUserid(log[i].name);
|
||||
if (log[i].action === 'join') {
|
||||
@@ -2675,7 +2675,7 @@ function updateMe() {
|
||||
} else {
|
||||
$('#userbar').html(notifybutton + '<i class="icon-user" style="color:#999"></i> ' + Tools.escapeHTML(me.name) + buttons + ' <button onclick="return rooms[\'lobby\'].formRename()" style="font-size:9pt">Choose name</button>');
|
||||
}
|
||||
$('#userbar').prepend('<small><a href="http://pokemonshowdown.com/" target="_blank">Website</a> <a href="http://pokemonshowdown.com/rules" target="_blank">Rules</a> </small> ');
|
||||
$('#userbar').prepend('<small><a href="http://www.pokemonshowdown.com/" target="_blank">Website</a> <a href="http://www.pokemonshowdown.com/rules" target="_blank">Rules</a> </small> ');
|
||||
if (rooms.lobby) {
|
||||
rooms.lobby.updateMe();
|
||||
rooms.lobby.debounceUpdate();
|
||||
@@ -3198,7 +3198,7 @@ function overlay(overlayType, data) {
|
||||
break;
|
||||
case 'replayuploaded':
|
||||
contents = '<p>Your replay has been uploaded! It\'s available at:</p>';
|
||||
contents += '<p><a href="http://pokemonshowdown.com/replay/'+data+'" target="_blank" onclick="overlayClose()">http://pokemonshowdown.com/replay/'+data+'</a></p>';
|
||||
contents += '<p><a href="http://www.pokemonshowdown.com/replay/'+data+'" target="_blank" onclick="overlayClose()">http://www.pokemonshowdown.com/replay/'+data+'</a></p>';
|
||||
contents += '<p><button onclick="window.open(\'/replay/battle-'+data+'\',\'_blank\');overlayClose();return false" id="overlay_ok"><strong>Open</strong></button> <button onclick="overlayClose();return false" id="overlay_cancel">Cancel</button></p>';
|
||||
focusElem = '#overlay_ok';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user