Skip to content

Commit

Permalink
fix: the main HTMLElement does not exist (#2)
Browse files Browse the repository at this point in the history
* docs: add adguard software ltd to license

* fix: the main HTMLElement does not exist

* chore: update version

* build userscript
  • Loading branch information
piquark6046 authored Apr 19, 2024
1 parent 9dc953d commit e2cd857
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions HideNamuSideBar.user.js

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

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2024 PiQuark6046
Copyright (c) 2024 AdGuard Software Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hidenamusidebar",
"version": "1.0.0",
"version": "1.0.1",
"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/gh/List-KR/HideNamuSideBar@latest/HideNamuSideBar.user.js
// @license MIT
//
// @version 1.0.0
// @version 1.0.1
// @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 @@ -26,7 +26,7 @@ const HideElements = (TargetElements: HTMLElement[]) => {
}

const HideFunction = async () => {
const ElementsInArticle = Array.from(document.querySelectorAll('main > div[class]:not([class=" "]) div[class*=" "] ~ div[class]:not([class*=" "]) ~ div[class*=" "]'))
const ElementsInArticle = Array.from(document.querySelectorAll('div[class]:not([class=" "]) div[class*=" "] ~ div[class]:not([class*=" "]) ~ div[class*=" "]'))
const PLimitInstance = PLimit(Cocurrent)
const PLimitJobs: Promise<HTMLElement[]>[] = []
let TargetedElements: HTMLElement[] = []
Expand Down

0 comments on commit e2cd857

Please sign in to comment.