Create an Edge and Chrome extension using Manifest V3 that performs the following…
- User
Create an Edge and Chrome extension using Manifest V3 that performs the following functions:
Shortcut: Move the active tab to a new tab window on another monitor, considering different monitor sizes and resolutions. For example, when the user uses the shortcut and the tab is on the left monitor, it should move to the right monitor and vice versa by checking tag windows system. When in a non-tag window, it should move the active tab to a new tag window (if not found tag windows create new one and tag it). If the user is at a tag window, it should move the current tag windows (just move windows so it will contain all tab of that tag windows too) to another monitor.
Shortcut: Merge all tabs into the active window and then sort the tabs by domain.
Shortcut: Sort the active window's tabs by domain and then focus on the previously active tab.
Shortcut: Pause all playing videos in all windows, similar to manually clicking the pause button on each video.
Remove duplicate tabs: Using the URL, wait 6 seconds (debouncing) after a new tab with url is opened. If no new tab is opened, check the active window for duplicate tabs. Close the duplicate tabs, skipping the currently active tab. For instance, if there are three duplicate tabs (e.g., google.com) and the user is on the second tab, close the first and third tabs but keep the second tab open (keeping first occurrence tab ,but if active tab is duplicate keep active tab).
Pause video when it starts playing: Utilize the audio event to pause a video the first time it starts playing by checking tag. Tag the tab to check if the video has been paused before. If the web title changes or the site reloads, clear the tag.
Ensure all functions and code are optimized for speed and performance to reduce overhead and memory leaks. Explain what each function does and wait for confirmation before showing the complete code.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.