It is impossible to add a video using YouTube link for VKontakte (in automatic mode, using javascript or jQuery). Added YouTube link code to the right place (Video Records page of VKontakte):
jQuery("input#video_external_link").val("ссылка видео ютуба"); or with javascript:
document.querySelectorAll("input#video_external_link")[0].value = "ссылка видео ютуба" But nothing happens, all the detailed information about the YouTube video (with the add button for VKontakte), which I want to add, should have been released.
I tried jQuery("body *").focus().blur(); - works only if the mouse is in focus in the current browser, and if it is outside the browser, then nothing happens again, I want it to always work.
Here is an example of how it happens:
If manually:
If using javascript:
Code:
Result:
In the last screenshot you can see that it does not respond to the link that was set using the code. What is missing here to make it work?


