Skip to content

Commit

Permalink
fix: invaild selector
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Dec 25, 2024
1 parent e6c0096 commit a2a0c96
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@list-kr/namulink",
"version": "4.1.4",
"version": "4.1.5",
"description": "",
"type": "module",
"scripts": {
2 changes: 1 addition & 1 deletion sources/banner.txt
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js
// @license MIT
//
// @version 4.1.4
// @version 4.1.5
// @author PiQuark6046 and contributors
//
// @match https://namu.wiki/*
2 changes: 1 addition & 1 deletion sources/src/index.ts
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ const RemovePowerLinkAdWorker = (SearchedElements: HTMLElement[]): HTMLElement[]
return Array.from(SearchedElement.querySelectorAll('a[href="/RecentChanges"]')).length < 1
})
TargetedElements = TargetedElements.filter(SearchedElement => {
return Array.from(SearchedElement.querySelectorAll('> a[href="#"][class]')).length < 1
return Array.from(SearchedElement.querySelectorAll('a[href="#"][class]')).length < 1
})
return TargetedElements
}

0 comments on commit a2a0c96

Please sign in to comment.