diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 61e4eb086..9d8e07fd1 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -3394,7 +3394,7 @@ return; } a = PostHiding.makeButton(post, 'show'); - postInfo = Conf['Anonymize'] ? 'Anonymous' : post.info.name; + postInfo = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent; $.add(a, $.tn(" " + postInfo)); post.nodes.stub = $.el('div', { className: 'stub' @@ -3742,7 +3742,7 @@ } numReplies = ((span = $('.summary', threadRoot)) ? +span.textContent.match(/\d+/) : 0) + $$('.opContainer ~ .replyContainer', threadRoot).length; numReplies = numReplies === 1 ? '1 reply' : "" + (numReplies || 'No') + " replies"; - opInfo = Conf['Anonymize'] ? 'Anonymous' : OP.info.name; + opInfo = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', OP.nodes.info).textContent; a = ThreadHiding.makeButton(thread, 'show'); $.add(a, $.tn(" " + opInfo + " (" + numReplies + ")")); thread.stub = $.el('div', { diff --git a/builds/crx/script.js b/builds/crx/script.js index 0b2e19572..6f5beaf51 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -3401,7 +3401,7 @@ return; } a = PostHiding.makeButton(post, 'show'); - postInfo = Conf['Anonymize'] ? 'Anonymous' : post.info.name; + postInfo = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent; $.add(a, $.tn(" " + postInfo)); post.nodes.stub = $.el('div', { className: 'stub' @@ -3749,7 +3749,7 @@ } numReplies = ((span = $('.summary', threadRoot)) ? +span.textContent.match(/\d+/) : 0) + $$('.opContainer ~ .replyContainer', threadRoot).length; numReplies = numReplies === 1 ? '1 reply' : "" + (numReplies || 'No') + " replies"; - opInfo = Conf['Anonymize'] ? 'Anonymous' : OP.info.name; + opInfo = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', OP.nodes.info).textContent; a = ThreadHiding.makeButton(thread, 'show'); $.add(a, $.tn(" " + opInfo + " (" + numReplies + ")")); thread.stub = $.el('div', { diff --git a/src/Filtering/PostHiding.coffee b/src/Filtering/PostHiding.coffee index b9440d1e5..a5efd70b6 100755 --- a/src/Filtering/PostHiding.coffee +++ b/src/Filtering/PostHiding.coffee @@ -182,7 +182,7 @@ PostHiding = if Conf['Anonymize'] 'Anonymous' else - post.info.name + $('.nameBlock', post.nodes.info).textContent $.add a, $.tn " #{postInfo}" post.nodes.stub = $.el 'div', className: 'stub' diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index f015b76ab..cc990e51e 100755 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -185,7 +185,7 @@ ThreadHiding = if Conf['Anonymize'] 'Anonymous' else - OP.info.name + $('.nameBlock', OP.nodes.info).textContent a = ThreadHiding.makeButton thread, 'show' $.add a, $.tn " #{opInfo} (#{numReplies})"