jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
339 stars 39 forks source link

(Github Comment Enhancer) Javascript error on wiki pages #95

Closed Mottie closed 8 years ago

Mottie commented 8 years ago

Great work on the enhancer! I just started trying it out and noticed I keep getting a javascript error on wiki pages.

Oddly, it doesn't occur on the "Home" page, but on any other wiki page I see this error in the console:

ERROR: Execution of script 'Github Comment Enhancer' failed! Cannot read property 'addEventListener' of null TypeError: Cannot read property 'addEventListener' of null at addToolbar (eval at (unknown source), :794:42) at init (eval at (unknown source), :1265:3) at eval (eval at (unknown source), :1269:2) at Object.eval (eval at (unknown source), :1290:3) at eval (eval at (unknown source), :4:8) at Object.eval (eval at (unknown source), :5:3) at c (:41:142) at eval (eval at (unknown source), :1:25) at eval (native) at n (:72:175)

Here is an example page: https://github.com/jquery/jquery/wiki/Adding-new-features

jerone commented 8 years ago

Thanks for reporting. An hidden bug, easy fix.