Skip to content

Commit

Permalink
fix: adjust regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Dec 25, 2024
1 parent b130cb6 commit 64d7316
Show file tree
Hide file tree
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": "5.0.1",
"version": "5.0.2",
"description": "",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion sources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js
// @license MIT
//
// @version 5.0.1
// @version 5.0.2
// @author PiQuark6046 and contributors
//
// @match https://namu.wiki/*
Expand Down
2 changes: 1 addition & 1 deletion sources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Win.Proxy = new Proxy(Win.Proxy, {
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
construct<T extends object>(Target: ProxyConstructor, Args: [T, ProxyHandler<T>], NewTarget: Function): object {
if (typeof Args[0] === 'object' && Array.isArray(Args[0]) && typeof Args[0][0] === 'object' && Array.isArray(Args[0][0])
&& typeof Args[0][0][1] === 'string' && /^#x=[A-Za-z0-9-+]+\/\/\/.+=?$/.test(Args[0][0][1])) {
&& typeof Args[0][0][1] === 'string' && /^#x=[A-Za-z0-9-+]+\/\/\/.+=?/.test(Args[0][0][1])) {
setTimeout(() => {
Array.from(document.querySelectorAll('div[class*=" "] div[class]')).filter((TargetEle: HTMLElement) => {
return TargetEle.innerText === '' && Array.from(TargetEle.querySelectorAll('*')).filter((ChildEle: HTMLElement) => {
Expand Down

0 comments on commit 64d7316

Please sign in to comment.