YouTube Links

Download YouTube videos. Video formats are listed at the top of the watch page. Video links are tagged so that they can be downloaded easily.

< Feedback on YouTube Links

Review: Bad - script does not work

JCV
§
Posted: 07. 06. 2020

I am getting 189 Errors on Tampermonkey on Google Chrome

Any ideas why so many?

nhyoneAuthor
§
Posted: 08. 06. 2020

Hi, does it go away if you refresh the page?

This should happen just once when the script is updated.

nhyoneAuthor
§
Posted: 04. 08. 2020
Edited: 04. 08. 2020

Okay, so you are talking about Developer > Run Syntax Check instead of actual script errors.

On a casual glance, over 95% are due to braceless 'if'. Not everyone believes that braces should be mandatory for 'if', 'for', 'while', etc.

There are some var redeclarations. They are harmless, but should be removed if one is pedantic.

There are also some warnings for accessing variables declared in an outer function. I'm surprised by this.

If you hover over the !, it explains the warning.

It is a good idea to lint JavaScript code, but we should not follow preset lint rules blindly. Always tune it to fit your coding style.

Post reply

Sign in to post a reply.