From d7f32304a236757e0bbebea1683951db7ae6a143 Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Thu, 27 Mar 2014 14:20:57 +0400 Subject: [PATCH] now external images goes through ssl anonymizer now external images goes through ssl anonymizer --- js/twister_formatpost.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 11de4f4..cb306f3 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -295,9 +295,11 @@ function escapeHtmlEntities(str) { function imagePreview(post) { if (localStorage['showPreviewOpt'] == 'enable') { var link = post.find("a[rel='nofollow']"); + var linkAnon = 'https://ssl-proxy.my-addr.org/myaddrproxy.php/http/'; if (link.html() && /(\.jpg)|(\.gif)|(\.png)|(\.jpeg)/.test(link.html().toLowerCase())) { - return ""; + var cleanLink = link.html().replace(/^http[s]?:\/\//i, '') + return ""; } } } \ No newline at end of file