Unknown model· unknown
from NVIDIA HelpSteer3 Preference
I need a simple chrome extension built that allows a person to stream an HBO Max show…
- User
I need a simple chrome extension built that allows a person to stream an HBO Max show and generate a link that they can invite other friends to watch the show with
- Assistant
To build a Chrome extension that allows users to stream an HBO Max show and generate a link to invite friends, follow these steps:
- Set up the project: Create a new directory for your project and initialize it with a
manifest.jsonfile. Here's a basic structure for the manifest file:
json{ "name": "HBO Max Watch Party", "version": "1.0.0", "description": "Stream HBO Max shows and invite friends to watch together.", "manifest_version": 3, "permissions": ["activeTab", "storage", "tabs", "https://*.hbomax.com/*"], "action": { "default_popup": "popup.html" }, "content_scripts": [ { "matches": ["https://*.hbomax.com/*"], "js": ["contentScript.js"] } ] }- Create the popup UI: Create a
popup.htmlfile with a simple UI for generating the invite link. Here's an example:
html<!DOCTYPE html> <html> <head> <title>HBO Max Watch Party</title> <script src="popup.js"></script> </head> <body> <button id="generateLink">Generate Invite Link</button> <div id="linkContainer"></div> </body> </html>- Implement the popup logic: Create a
popup.jsfile to handle the button click and generate the invite link. You'll need to use a third-party service like Scener or Teleparty to create the shared viewing session. Here's an example using Scener:
javascriptdocument.getElementById('generateLink').addEventListener('click', async () => { const currentTab = await chrome.tabs.query({ active: true, currentWindow: true }); const scenerUrl = `https://scener.com/watch/hbomax?url=${encodeURIComponent(currentTab[0].url)}`; const linkContainer = document.getElementById('linkContainer'); linkContainer.innerHTML = `<a href="${scenerUrl}" target="_blank">Invite Link</a>`; }); - Set up the project: Create a new directory for your project and initialize it with a
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.