From 070816de06c331729b97bf8175604aa086f534a7 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 13 May 2012 15:04:36 +0200 Subject: [PATCH] Fix user id filtering. --- 4chan_x.user.js | 2 +- script.coffee | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a324a820d..292cdaa1c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -658,7 +658,7 @@ uniqueid: function(post) { var uid; if (uid = $('.posteruid', post.el)) { - return uid.textContent; + return uid.textContent.slice(5, -1); } return false; }, diff --git a/script.coffee b/script.coffee index dae8bb705..bea06f060 100644 --- a/script.coffee +++ b/script.coffee @@ -542,9 +542,8 @@ Filter = name: (post) -> $('.name', post.el).textContent uniqueid: (post) -> - # NEW HTML ??? if uid = $ '.posteruid', post.el - return uid.textContent + return uid.textContent[5...-1] false tripcode: (post) -> if trip = $ '.postertrip', post.el