From 372981c46d5af717f57744c449e0a7a382272357 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 3 Jul 2012 20:09:05 +0200 Subject: [PATCH] decodeURIComponent emails for filtering. --- 4chan_x.user.js | 2 +- script.coffee | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8ac916900..26b98a863 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -686,7 +686,7 @@ email: function(post) { var mail; if (mail = $('.useremail', post.el)) { - return mail.href.slice(7); + return decodeURIComponent(mail.href.slice(7)); } return false; }, diff --git a/script.coffee b/script.coffee index 808b48a7d..9091549f9 100644 --- a/script.coffee +++ b/script.coffee @@ -544,7 +544,8 @@ Filter = email: (post) -> if mail = $ '.useremail', post.el # remove 'mailto:' - return mail.href[7..] + # decode %20 into space for example + return decodeURIComponent mail.href[7..] false subject: (post) -> $('.postInfo .subject', post.el).textContent or false