tumpio / gmscripts

tumpio's usercripts

Home Page:https://openuserjs.org/users/tumpio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: Cannot read property 'getElementsByClassName' of null

ArnaudLoos opened this issue · comments

Extension: DuckDuckGo_Extended.
Chrome Inspector showing the following error "Uncaught TypeError: Cannot read property 'getElementsByClassName' of null" from script.js line 349. Indeed document.getElementById("header_button_menu") does return null.

Ah this was fixed month ago in
ea8a693

Uploaded to openuserjs. I don't know why the web hook doesn't work now.

@tumpio

I don't know why the web hook doesn't work now.

There was one point where certain scripts got unsync'd... however it should be fixed now. All you need to do is reimport it via the GitHub import section... that will retain your stats... this is assuming you still have the webhook enabled here on GH.

Btw I know for sure that egoogle.user.js is out of sync right now... so you should just be able to reimport that and if all goes well you should be good to go.

Please let me know if you are having issues so I can try to assist you. :)

OUJS Admin


P.S. Please ensure that your Content Type is application/x-www-form-urlencoded for the webhook configuration here on GH. That was one of the docs we fixed really early when I came on board.

@Martii
Thank you for letting me know! I did as you suggested. The content type for the webhook was application/json. I changed it as well. Now I'll have to work on my scripts to test the hook! 👍

Have a great week! :)

@tumpio
No problem... I do suggest in the future that you increment @version though when you make a script change (even on your external changes with CSS at userstyles)... makes it a little easier for everyone to get notified of updates as well as the specific tracking on what happened way back then. :)

I've manually rechecked your entire account and reset a few things from all the fixes we've done since those times.

Enjoy,
OUJS Admin