We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f97777b commit 404bc15Copy full SHA for 404bc15
1 file changed
ban-hn.js
@@ -58,7 +58,9 @@
58
};
59
60
const getUser = (node) =>
61
- node.querySelector(".hnuser")?.textContent.toLowerCase();
+ node.parentNode.parentNode
62
+ .querySelector(".hnuser")
63
+ ?.textContent.toLowerCase();
64
65
const getData = () => JSON.parse(localStorage.getItem(keys.users));
66
@@ -104,6 +106,7 @@
104
106
)?.textContent || "";
105
107
108
const key = keys.users;
109
+ console.log(event, target, event.target, event.currentTarget);
110
const user = getUser(target);
111
const banned = isBanned(user);
112
const data = getData();
0 commit comments