Skip to content

Commit

Permalink
Use getElementsByClassName instead of querySelectorAll
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Oct 25, 2018
1 parent 95e7ae1 commit 3d23b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class UBlacklist {

rejudgeAllEntries() {
this.blockedEntryCount = 0;
for (const entry of document.querySelectorAll('.ubEntry')) {
for (const entry of document.getElementsByClassName('ubEntry')) {
entry.classList.remove('ubBlockedEntry');
this.judgeEntry(entry);
}
Expand Down

0 comments on commit 3d23b79

Please sign in to comment.