In the sample code below, I've added a button on the view for testing purposes. ![]() On a site like this, how can one identify the element that is receiving the click event of an element and then create a userscript to invoke it through tampermonkey and/or greasemonkey? Additionally netflix is using a javascript compressor/obfuscator which increases the difficulty of finding the proper elements that represent the buttons on the control bar. But I can't seem to isolate the proper elements. My approach thus far has been to try and locate the elements that represent the "buttons" you click when using the normal controls, and trigger their click events through the userscript. video is paused, but the control bar still shows it as playing). I've been able to manipulate the html5 video element itself, but controlling that directly does not provide the needed netflix control bar feedback to the user. ![]() Specifically, the volume, level, play/pause state, and time position of the video. While watching a netflix video on a Netflix site, my goal is to have a userscript invoke the playback controls programmatically.
0 Comments
Leave a Reply. |