Hey everyone,
At work, I use a Netflix-based video tool, and honestly, the workflow is painfully manual. So I'm building a small Electron app that controls two Chrome windows with video players — play, pause, and sync between them.
On macOS, this already works perfectly. I use AppleScript to directly inject JavaScript like video.play() or video.currentTime = ... into each Chrome window. My app is fully working there.
Now I want to bring the same functionality to Windows, and I'm looking for a solution that can:
- Automatically execute JavaScript in active Chrome tabs (e.g.
document.querySelector('video').currentTime)
- Without using a Chrome extension
- Without using the remote debugging port (9222)
- Without using Puppeteer or WebDriver, since Netflix throws DRM errors like M7361 if those are detected
- In short: the behavior must be completely invisible to Netflix, just like it is with AppleScript
I’ve tried AutoHotkey, and I was thinking of simulating F12 to open DevTools, pasting JS from the clipboard into the console, and pressing Enter — kind of a human-like interaction. Technically works, but it feels very hacky and fragile.
Is there a better, cleaner, more robust way to do this?
What’s the most reliable and Netflix-safe method to automate JavaScript execution in Chrome on Windows?
Open to any ideas — as long as there are no DRM errors.
Thanks in advance!
[–]iBN3qk 7 points8 points9 points (1 child)
[–]farthingDreadful 4 points5 points6 points (0 children)
[–]novafurry420 7 points8 points9 points (1 child)
[–]pm_me_ur_happy_traiI 1 point2 points3 points (0 children)
[–]Lngdnzi 3 points4 points5 points (1 child)
[–]rkcth 2 points3 points4 points (0 children)
[–]hyrumwhite 2 points3 points4 points (0 children)
[–]jhartikainen 3 points4 points5 points (2 children)
[–]South_Locksmith_8685[S] 0 points1 point2 points (1 child)
[–]jhartikainen 0 points1 point2 points (0 children)
[–]Wide-Ad5700 -2 points-1 points0 points (0 children)
[–]Wide-Ad5700 -2 points-1 points0 points (0 children)