Skip to content

Commit

Permalink
Attempted fix for comment filtering problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemiola314 committed Oct 8, 2022
1 parent 448f962 commit 1d171ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion expand-all.js
Expand Up @@ -989,7 +989,11 @@ function setFilter2(link) {
if (text.trim() != link.textContent.trim()) {
Global.log(window.filters_i + ": changing \u0027" + link.textContent.trim() + "\u0027 to \u0027" + text.trim() + "\u0027");
// clicking makes the link go away, so use link before clicking
const post = link.closest(ANY_ARTICLE);
let post = link.closest(ANY_ARTICLE);
if (!post) {
post = link.closest(ROLE_MAIN);
}

menus[i].click();
window.setTimeout(() => setFilter3(post), 100);
return;
Expand Down

0 comments on commit 1d171ed

Please sign in to comment.