hello everyone! I am interested in the question of how, using the web development tool firefox, you can like the YouTube channel for video, through the web development tool
Hey, I think I understand what you’re trying to do—you want to use Firefox’s Inspector/Console to interact with the YouTube page elements, right? Just a heads up, using DevTools to automate “Likes” is against YouTube’s Terms of Service and you’ll likely hit CORS errors or bot detection pretty quickly. But if you’re just trying to learn how the tool works to manipulate the DOM, here’s the basic workflow:
-
Right-click the “Like” button and select Inspect.
-
In the Console tab, you can try targeting the button with something like:
document.querySelector('#top-level-buttons-computed yt-button-shape button').click();
If you’re more interested in the web development and job side of using these tools rather than YouTube tricks, you might find this resource useful for learning how to build sites from scratch:
It has some good entry points for WordPress dev, which uses a lot of the same inspector skills you’re practicing in Firefox.