|
|
|
@ -195,23 +195,18 @@ function htmlFormatMsg( msg, output, mentions ) {
@@ -195,23 +195,18 @@ function htmlFormatMsg( msg, output, mentions ) {
|
|
|
|
|
url = url.replace('&', '&'); |
|
|
|
|
var extLinkTemplate = $("#external-page-link-template").clone(true); |
|
|
|
|
extLinkTemplate.removeAttr("id"); |
|
|
|
|
var proxy = false; |
|
|
|
|
if ($.Options.getOption('useProxy') === 'disable'){ |
|
|
|
|
extLinkTemplate.attr("href",url); |
|
|
|
|
} else if ($.Options.getOption('useProxyForImgOnly')){ |
|
|
|
|
if ($.Options.getOption('displayPreview') !== 'disable' && /((\.jpe{0,1}g)|(\.gif)|(\.png))$/i.test(url)) |
|
|
|
|
proxy = true; |
|
|
|
|
} else { |
|
|
|
|
proxy = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (proxy){ |
|
|
|
|
if ($.Options.getUseProxyOpt() !== 'disable' && !$.Options.getUseProxyForImgOnlyOpt()){ |
|
|
|
|
//proxy alternatives may be added to options page...
|
|
|
|
|
if ($.Options.getOption('useProxy') === 'ssl-proxy-my-addr') { |
|
|
|
|
extLinkTemplate.attr('href', 'https://ssl-proxy.my-addr.com/' + |
|
|
|
|
if ($.Options.getUseProxyOpt() === 'ssl-proxy-my-addr') { |
|
|
|
|
extLinkTemplate.attr('href', 'https://ssl-proxy.my-addr.org/myaddrproxy.php/' + |
|
|
|
|
url.substring(0, url.indexOf(':')) + |
|
|
|
|
url.substr(url.indexOf('/') + 1)); |
|
|
|
|
} else if ($.Options.getUseProxyOpt() ==='anonymouse') { |
|
|
|
|
extLinkTemplate.attr('href', 'http://anonymouse.org/cgi-bin/anon-www.cgi/' + url); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
extLinkTemplate.attr("href",url); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
extLinkTemplate.text(url); |
|
|
|
|