Unknown model· unknown
from ShareGPT 90K (shared ChatGPT conversations)
write a chrome extension that can track all audio source in the browser.
Private research annotation
Sign in to add a private research label or note.
- User
write a chrome extension that can track all audio source in the browser.
- Assistant
Sure, here is a basic outline for a chrome extension that tracks all audio sources in the browser:
- Create a new directory and initialize it as a npm package using
npm init - Install the necessary dependencies, such as the chrome-extension-builder package and any others needed for tracking audio sources
- Create a background script that listens for audio events and tracks their sources
- Use the chrome.tabs API to track which tab each audio source belongs to
- Use the chrome.storage API to store the audio source information
- Create a UI for the extension that displays the tracked audio sources and allows the user to interact with them
- Package the extension and add it to Chrome by going to the "Extensions" page in the Chrome settings and enabling "Developer mode"
Here is some sample code to get you started:
code - Create a new directory and initialize it as a npm package using
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.