Skip to content
Advertisement

javascript add text to youtube description box

am trying to add text to youtube description box. here is the javascirpt code am using but not inputting the text as i am sure am not doing it right.

JavaScript

here is some code i got from html element

JavaScript

Advertisement

Answer

Description Box

Use the CSS selector #textbox[aria-label="Tell viewers about your video (type @ to mention a channel)". An HTML page should have only a single id attribute. But, since, there are multiple elements with id textbox. Therefore, we have also to specify some other attributes. I used aria-label here.

The complete code for updating the description will be:

JavaScript

Title

If you also want to update the title, you can do that as:

JavaScript

Tags

For updating the tags, Use the following script:

JavaScript
Advertisement