I'm trying to write a chrome extension where I want to be able to start playing a Netflix video from the main page without having to navigate to the video URL using something like window.location.href = '...', which would cause the page to reload. I want to do this without reloading the page because the content script of a chrome extension is re-injected every time a page reload happens, which I don't want to happen every time.
For example, if you go to the netflix website and click on a movie, the video will start playing without actually doing a full page reload. This suggests that changes to the DOM are triggered via JavaScript? Does anyone know how this is done?
I tried looking at some of the Javascript code to see if there was a function I could call to trigger some sort of event, but the code was too complicated to understand. So another approach I thought of was to do a fetch with the url of the video that I want to play, and then simply replace the contents of the body element with that of the fetched html. For example:
Microsoft on Tuesday announced that starting in June an Xbox Live Gold membership will no longer be required for Xbox 360 and Xbox One owners to access streaming apps like Netflix, Hulu Plus, YouTube, and HBO Go. Arstechnica, which was first to report on Microsoft's plans to allow free access to Netflix and Hulu Plus, said Microsoft may decide to put other services behind the Xbox Live Gold paywall to make up for the change. It is unclear whether this would include existing services or only upcoming content.
Microsoft was the only major game company that requireed gamers to pay for its $60-a-year Xbox Live Gold service in order to stream Netflix and Hulu Plus. Neither Sony nor Nintendo place such restrictions on their consoles, and several set-top boxes, including Apple TV, Roku, and the recently launched Amazon Fire TV, also allow for access to Netflix without requiring customers to pay extra.
Starting in June, Microsoft said anyone with an Xbox will be able to access entertainment services including: gaming apps Machinima, Twitch, and Upload; video services like Netflix, Univision Deportes, GoPro, Red Bull TV, and HBO GO; sports experiences like the NFL app for Xbox One, MLB.TV, NBA Game Time, NHL and Game Center. There are services that will remain exclusive for Xbox Live Gold subscribers, including the Games for Gold program, cloud gave saves, and Game DVR.
90f70e40cf