madkarmaa / youtube-downloader

A simple userscript to download YouTube videos in MAX QUALITY
https://greasyfork.org/scripts/479944
45 stars 4 forks source link

json parse error #15

Open patritha opened 1 week ago

patritha commented 1 week ago

this shows in the console when pressing download. i am using librewolf (firefox) image

Typical-Engineer commented 2 days ago

I started seeing this error as well, it was working just fine couple of weeks ago, wonder if something with API or Firefox has changed recently:

ncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    onload moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/ YouTube downloader.user.js#2:98
    HttpRequested moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/sandbox/injected-web.js:1
    onHandle moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/sandbox/injected-web.js:1
    Le moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/sandbox/injected-web.js:1
[watch:98:39](https://www.youtube.com/watch?v=4jRBRDbJemM&t=34s%20line%201%20%3E%20injectedScript)
    onload moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/ YouTube downloader.user.js#2:98
    HttpRequested moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/sandbox/injected-web.js:1
    onHandle moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/sandbox/injected-web.js:1
    Le moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/sandbox/injected-web.js:1
    at moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/injected.js:1
    post moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/injected.js:1
    Cn moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/injected.js:1
    HttpRequested moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/injected.js:1
    <anonymous> moz-extension://8623b235-5075-4e34-b48b-90a0f2b64041/injected.js:1
    apply self-hosted:2292
    raw resource://gre/modules/ExtensionCommon.sys.mjs:2827
    wrapResponse resource://gre/modules/ExtensionChild.sys.mjs:207
    responses resource://gre/modules/ExtensionChild.sys.mjs:176
    map self-hosted:178
    emit resource://gre/modules/ExtensionChild.sys.mjs:176
    recvRuntimeMessage resource://gre/modules/ExtensionChild.sys.mjs:377
    _recv resource://gre/modules/ConduitsChild.sys.mjs:90
    receiveMessage resource://gre/modules/ConduitsChild.sys.mjs:201