diff --git a/4chan_x.user.js b/4chan_x.user.js index 1f57b7104..26f3f1246 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -691,7 +691,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 23818f01f..6cdb5a0f4 100644 --- a/script.coffee +++ b/script.coffee @@ -548,7 +548,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