React Netflix 'hack' - access react component from chrome console
Posted by - Anshul Asthana at Sep 23, 2022 Alberta, Canada
Toogit Instant Connect Enabled
Oct 14, 2022
You'll need a Netflix login to be able to do this job!
I'm initially looking for a very short job to give me a proof of concept.
I know my way around js - but I don't know react. I want to access variables relating to the current state of the netflix player using js (current time, duration, playing/paused)
When you play a show in Chrome on Mac OS on Netflix - if you run the react developer tools, you'll see a class called BaseAkiraPlayer
This has state cadmiumPlayerInstance which has methods getCurrentTime & getDuration
I want to be able to access these methods from the console in chrome. (If the proof of concept is succesfull, then ultimately I'll want to access them from a chrome plugin)
I'm looking for code from you which I can type into the console something conceptually like:
var akira = React.getClass(BaseAkiraPlayer) var player = akira.cadmiumPlayerInstance
var currentTime = player.getCurrentTime()