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