Skip to content

Fix for "Cannot read properties of null" error#8

Open
Ivan-Khar wants to merge 1 commit into
KervynH:mainfrom
Ivan-Khar:null-fix
Open

Fix for "Cannot read properties of null" error#8
Ivan-Khar wants to merge 1 commit into
KervynH:mainfrom
Ivan-Khar:null-fix

Conversation

@Ivan-Khar

@Ivan-Khar Ivan-Khar commented Mar 20, 2026

Copy link
Copy Markdown

For some reason this userscript throws Cannot read properties of null (reading 'appendChild') error on my machines with Firefox/Brave + ViolentMonkey installed. This pr fixes this error by applying css customizations in DOMContentLoaded event instead of applying them on script load

Havent tested it with Tampermonkey but it should work. Needs testing
image

For some reason it was not working with VioletMonkey extension, fixed it with this eventListener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant