Hide JS links on proxy pages when JS disabled

This commit is contained in:
str4d
2016-07-24 11:45:07 +00:00
parent e8e42a0b9d
commit 01902de200
8 changed files with 41 additions and 18 deletions

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Website Unreachable")</title>
<title>_("Website Unreachable")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -20,7 +21,9 @@ Proxy-Connection: close
<p>
_("The website was not reachable.")
_("The website is offline, there is network congestion, or your router is not yet well-integrated with peers.")
_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</p>
<span class="script">_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</span>
<noscript>_("You may want to retry.")</noscript>
</p>
<hr>
<p><b>_("Could not find the following destination:")</b>
</p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Warning: Invalid Destination")</title>
<title>_("Warning: Invalid Destination")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -21,6 +22,9 @@ Proxy-Connection: close
_("The website destination specified was not valid, or was otherwise unreachable.")
_("Perhaps you pasted in the wrong Base 64 string or the link you are following is bad.")
_("The I2P host could also be offline.")
_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")
<hr><b>_("Could not find the following destination:")</b>
<span class="script">_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</span>
<noscript>_("You may want to retry.")</noscript>
</p>
<hr>
<p><b>_("Could not find the following destination:")</b>
</p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Outproxy Not Found")</title>
<title>_("Outproxy Not Found")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -20,7 +21,8 @@ Proxy-Connection: close
<p>
_("The HTTP Outproxy was not found.")
_("It is offline, there is network congestion, or your router is not yet well-integrated with peers.")
_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")
<span class="script">_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</span>
<noscript>_("You may want to retry as this will randomly reselect an outproxy from the pool you have defined {0}here{1} (if you have more than one configured).", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</noscript>
_("If you continue to have trouble you may want to edit your outproxy list {0}here{1}.", "<a href=\"http://127.0.0.1:7657/i2ptunnel/edit.jsp?tunnel=0\">", "</a>")
</p>
<hr><p><b>_("Could not find the following destination:")</b></p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Outproxy Unreachable")</title>
<title>_("Outproxy Unreachable")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -19,7 +20,8 @@ Proxy-Connection: close
<h3>_("Outproxy Unreachable")</h3>
<p>
_("The HTTP outproxy was not reachable, because it uses encryption options that are not supported by your I2P or Java version.")
_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")
<span class="script">_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</span>
<noscript>_("You may want to retry as this will randomly reselect an outproxy from the pool you have defined {0}here{1} (if you have more than one configured).", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</noscript>
_("If you continue to have trouble you may want to edit your outproxy list {0}here{1}.", "<a href=\"http://127.0.0.1:7657/i2ptunnel/edit.jsp?tunnel=0\">", "</a>")
</p>
<hr><p><b>_("Could not connect to the following destination:")</b></p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Website Unreachable")</title>
<title>_("Website Unreachable")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -20,7 +21,9 @@ Proxy-Connection: close
<p>
_("The website was not reachable, because its lease set was not found.")
_("The website is probably down, but there could also be network congestion.")
_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</p>
<span class="script">_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</span>
<noscript>_("You may want to retry.")</noscript></p>
</p>
<hr>
<p><b>_("Could not find the following destination:")</b>
</p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Outproxy Not Found")</title>
<title>_("Outproxy Not Found")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -20,7 +21,8 @@ Proxy-Connection: close
<p>
_("The HTTP outproxy was not reachable, because its lease set was not found.")
_("The outproxy is probably down, but there could also be network congestion.")
_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")
<span class="script">_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</span>
<noscript>_("You may want to retry as this will randomly reselect an outproxy from the pool you have defined {0}here{1} (if you have more than one configured).", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</noscript>
_("If you continue to have trouble you may want to edit your outproxy list {0}here{1}.", "<a href=\"http://127.0.0.1:7657/i2ptunnel/edit.jsp?tunnel=0\">", "</a>")
</p>
<hr><p><b>_("Could not find the following destination:")</b></p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Connection Reset")</title>
<title>_("Connection Reset")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -20,7 +21,9 @@ Proxy-Connection: close
<p>
_("The connection to the website was reset while the page was loading.")
_("The website could be temporarily unavailable, too busy, or it has blocked your access.")
_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</p>
<span class="script">_("You may want to {0}retry{1}.", "<a href=\"javascript:window.location.reload()\">", "</a>")</span>
<noscript>_("You may want to retry.")</noscript></p>
</p>
<hr>
<p><b>_("Could not find the following destination:")</b>
</p>

View File

@@ -6,7 +6,8 @@ Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>_("Connection Reset")</title>
<title>_("Connection Reset")</title>
<noscript><style>.script {display: none;}</style></noscript>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css">
</head>
@@ -20,7 +21,10 @@ Proxy-Connection: close
<p>
_("The connection to the proxy was reset.")
_("The proxy could be temporarily unavailable, too busy, or it has blocked your access.")
_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")
<span class="script">_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"javascript:parent.window.location.reload()\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</span>
<noscript>_("You may want to retry as this will randomly reselect an outproxy from the pool you have defined {0}here{1} (if you have more than one configured).", "<a href=\"http://127.0.0.1:7657/i2ptunnel/index.jsp\">", "</a>")</noscript>
_("If you continue to have trouble you may want to edit your outproxy list {0}here{1}.", "<a href=\"http://127.0.0.1:7657/i2ptunnel/edit.jsp?tunnel=0\">", "</a>")
</p>
<hr><p><b>_("Could not find the following destination:")</b></p>
<hr>
<p><b>_("Could not find the following destination:")</b>
</p>