Skip to content

Commit

Permalink
fix: element is hidden incorrectly (#70)
Browse files Browse the repository at this point in the history
* fix: element is hidden incorrectly

* chore: update version

* build userscript
  • Loading branch information
piquark6046 authored Apr 30, 2024
1 parent 2983e6e commit 152f8a4
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions NamuLink.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "namulink",
"version": "3.7.0",
"version": "3.7.1",
"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/gh/List-KR/NamuLink@latest/NamuLink.user.js
// @license MIT
//
// @version 3.7.0
// @version 3.7.1
// @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
@@ -21,7 +21,7 @@ Win.Function.prototype.apply = new Proxy(Win.Function.prototype.apply, {
Win.dispatchEvent(NagivationAdvertEvent)
throw new Error()
}
if (IsUint16Array && new TextDecoder().decode(Args[1]).replaceAll('\x00', '').includes('wiki.')) {
if (IsUint16Array && new TextDecoder().decode(Args[1]).replaceAll('\x00', '').startsWith('wiki/i')) {
Win.dispatchEvent(NagivationEvent)
}
return Reflect.apply(Target, ThisArg, Args)

0 comments on commit 152f8a4

Please sign in to comment.