Greasy Fork

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.

< 脚本YouTube Links的反馈

评价:差评 - 脚本失效或无法使用

JCV
§
发表于:2020-06-07

I am getting 189 Errors on Tampermonkey on Google Chrome

Any ideas why so many?

nhyone作者
§
发表于:2020-06-08

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

This should happen just once when the script is updated.

nhyone作者
§
发表于:2020-08-04
编辑于:2020-08-04

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.

发表回复

登录以发表回复。