My question relates to implementing the solution proposed in this post. The error I first get is that the webdriver is not defined. For that, I tried the following solution. But at that point, I get an error that "require()" is not defined, which brought me to this final solution. I tried the recommended Browserify option, but I don't think it's going to work for me because I can't just throw a "script src="bundle.js"" into the html as I want to use the webdriver to open the YouTube "stats for nerds" menu every time an ad is detected to get the video ID of that ad via a Chrome extension. Not sure if this is possible. Any help would be highly appreciated. I'm new to JS.
            Asked
            
        
        
            Active
            
        
            Viewed 100 times
        
    0
            
            
        - 
                    1You don't need webdriver for this. Just use the code inside quotes. – wOxxOm Nov 14 '22 at 18:05
- 
                    Thank you, sorry for the ignorance – Erik Nov 16 '22 at 18:37
