脚本报错

About: 哔哩哔哩(bilibili.com)播放器调整
你好,我使用这个脚本时找不到设置的按钮,查询控制台发现报错。
我使用的是TamperMonkey。
VM329:62 Syntax error @ "哔哩哔哩(bilibili.com)播放器调整"!
##########################
JSHINT output:
script: (W061) eval can be harmful on line: 61 at character: 40
script: (W004) 'index' is already defined on line: 576 at character: 33
script: (W004) 'heimu' is already defined on line: 693 at character: 37
script: (E020) Expected ')' to match '(' from line 805 and instead saw 'function' on line: 803 at character: 36
script: (E058) Missing semicolon on line: 803 at character: 46
script: (W004) 'setting' is already defined on line: 804 at character: 37
script: (E058) Missing semicolon on line: 804 at character: 52
script: (W004) 'autoFocusOffsetType' is already defined on line: 805 at character: 37
script: (W004) 'autoFocusOffsetValue' is already defined on line: 806 at character: 37
script: (W004) 'autoFocusPosition' is already defined on line: 807 at character: 37
script: (E030) Expected an identifier and instead saw ')' on line: 810 at character: 30
script: (E033) Expected an operator and instead saw '(' on line: 810 at character: 31
script: (W030) Expected an assignment or function call and instead saw an expression on line: 810 at character: 31
script: (E058) Missing semicolon on line: 810 at character: 32
script: (E030) Expected an identifier and instead saw ')' on line: 810 at character: 32
script: (W030) Expected an assignment or function call and instead saw an expression on line: 810 at character: 32
script: (W004) 'scrollToY' is already defined on line: 813 at character: 29
script: (W082) Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function on line: 976 at character: 29
script: (W082) Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function on line: 1189 at character: 17
script: (E020) Expected ')' to match '(' from line 1378 and instead saw 'function' on line: 1376 at character: 48
script: (E058) Missing semicolon on line: 1376 at character: 58
script: (W004) 'setting' is already defined on line: 1377 at character: 49
script: (E058) Missing semicolon on line: 1377 at character: 64
script: (E030) Expected an identifier and instead saw ')' on line: 1379 at character: 42
script: (E033) Expected an operator and instead saw '(' on line: 1379 at character: 43
script: (W030) Expected an assignment or function call and instead saw an expression on line: 1379 at character: 43
......
script: (E033) Expected an operator and instead saw '(' on line: 2536 at character: 15
script: (W030) Expected an assignment or function call and instead saw an expression on line: 2536 at character: 15
script: (E058) Missing semicolon on line: 2536 at character: 16
script: (E030) Expected an identifier and instead saw ')' on line: 2536 at character: 16
script: (W030) Expected an assignment or function call and instead saw an expression on line: 2536 at character: 16
##########################

SyntaxError: Unexpected token function
at Object.L.E_c (:3:298)
at ha (eval at (unknown source), :61:376)
at Object.Ta.create (eval at (unknown source), :70:259)
at f (eval at (unknown source), :15:237)
at Object.h.runListeners (eval at (unknown source), :15:196)
at eval (eval at (unknown source), :71:308)
at HTMLDocument.b.Message.Y (:9:271)

Réponses

  • ximing liu a dit :

    你好,我使用这个脚本时找不到设置的按钮,查询控制台发现报错。
    我使用的是TamperMonkey。
    VM329:62 Syntax error @ "哔哩哔哩(bilibili.com)播放器调整"!
    ##########################

    使用的是猎豹浏览器吗?
    试了一下没问题,你的浏览器,TamperMonkey 版本是不是太旧?
    TamperMonkey 版本更新一下,最新的是 4.5
    或者试一下暴力猴 (Violent monkey),看能不能用。
  • mickey7q7 a dit :

    ximing liu a dit :

    你好,我使用这个脚本时找不到设置的按钮,查询控制台发现报错。
    我使用的是TamperMonkey。
    VM329:62 Syntax error @ "哔哩哔哩(bilibili.com)播放器调整"!
    ##########################

    使用的是猎豹浏览器吗?
    试了一下没问题,你的浏览器,TamperMonkey 版本是不是太旧?
    TamperMonkey 版本更新一下,最新的是 4.5
    或者试一下暴力猴 (Violent monkey),看能不能用。
    @ximing liu
    找到原因了,是因为浏览器太旧,所以报错了。
    更新一下浏览器吧,虽然新版修复了(0.103版本)但之后的版本有可能还会失效的。
  • mickey7q7 a dit :

    mickey7q7 a dit :

    ximing liu a dit :

    你好,我使用这个脚本时找不到设置的按钮,查询控制台发现报错。
    我使用的是TamperMonkey。
    VM329:62 Syntax error @ "哔哩哔哩(bilibili.com)播放器调整"!
    ##########################

    使用的是猎豹浏览器吗?
    试了一下没问题,你的浏览器,TamperMonkey 版本是不是太旧?
    TamperMonkey 版本更新一下,最新的是 4.5
    或者试一下暴力猴 (Violent monkey),看能不能用。
    @ximing liu
    找到原因了,是因为浏览器太旧,所以报错了。
    更新一下浏览器吧,虽然新版修复了(0.103版本)但之后的版本有可能还会失效的。
    谢谢你的更新,现在可以用了,我也更新了我的浏览器!
    感谢作者及时回复!
Connectez-vous ou Inscrivez-vous pour répondre.