diff --git a/src/Miscellaneous/PSAHiding.coffee b/src/Miscellaneous/PSAHiding.coffee index 4f43c25a8..9d740389d 100644 --- a/src/Miscellaneous/PSAHiding.coffee +++ b/src/Miscellaneous/PSAHiding.coffee @@ -58,7 +58,7 @@ PSAHiding = true else false - if hr = $.x 'following-sibling::hr', psa + if (hr = psa.nextElementSibling) and hr.nodeName is 'HR' hr.hidden = psa.hidden trim: (psa) -> psa.textContent.replace(/\W+/g, '').toLowerCase()