Download youtube videos at the comfort of your browser.
I don't know, I hope it's not my environment and brain's fault, otherwise it would be silly xD.
Anyway, I'm looking forward to your answer <3.
Hello and sorry for the lack of news. The link in question has started to actively block requests manually, so I need to look for a fix. Sorry for the inconvenience :v
Doesn't work for me. After click the plugin button appears error alart, an error message appears about invalid token from "utomp3" site. I tried to look through code, it seems this happens when
tryRequest()
method tries to send request to the site with some data, but there's no any tokens exists neither as parameter, neither as body data. After that, with this object, it goes through to the code, until it throws an exception due to an attempt to read the value of a non-existent property(with my response). I tried recreate that request manually with Postman, and I had the same response even without any additional information. Just idk how the API of this site works.P.S. Some comments on the code :)
tryRequest() method
you've a ternary with"notok"
option,which is not used anywhere else in the code. You can change it to"error"
, you have a check for that below.result["mess"] == "Token expired"
. Instead of that speciefic declaration you can useresult.hasOwnProperty("mess")
, just to check that the specified property exists in object (of course, in case if it doesn't exists on a successful response). This will throw exception more specifically, without going to the downloading part.