Pause other audio and video sources if audio is playing on active tab with automatic resume
AutoPause Extension
Browser extension to pause other audio and video sources if audio is playing on the active tab with automatic resume, fast forward and media controls.
Features:
- Automatic pause (per tab or new media)
- Optional automatic resume
- Global Fast forward
- ShadowDOM support
- Mark tab for automatic resume
- Custom media controls for play, pause, next, previous
- Shortcut to mark a tab as ignored
- Shortcut to rewind media in 30 second increments
- Pause media when muted and not visible
- Option to mute a tab when media is paused (Allows media switching without tab change using the unmute button)
- Ignore other tabs
- Mark window for autopause usage
- No permission mode :)
Code can be viewed at https://github.com/NDevTK/AutoPause under the MIT license.
Optional permissions are used so you can control what gets paused.
Security:
The extension may ask for access to websites that you add to its options page.
This is so the extension can receive media events like \"play\" \"pause\" and so it can control the media playbackRate it will also use the audible property of the tab which does not require any permission.
On websites that it has permission for where media elements are not added to the pages DOM the extension will insert a local script in the pages context to add it automatically.
Fingerprinting:
The use of this extension maybe detected by the website you use such as if the media gets paused on window.open
Firefox listing: https://addons.mozilla.org/en-US/firefox/addon/autopause/
Read more
Features:
- Automatic pause (per tab or new media)
- Optional automatic resume
- Global Fast forward
- ShadowDOM support
- Mark tab for automatic resume
- Custom media controls for play, pause, next, previous
- Shortcut to mark a tab as ignored
- Shortcut to rewind media in 30 second increments
- Pause media when muted and not visible
- Option to mute a tab when media is paused (Allows media switching without tab change using the unmute button)
- Ignore other tabs
- Mark window for autopause usage
- No permission mode :)
Code can be viewed at https://github.com/NDevTK/AutoPause under the MIT license.
Optional permissions are used so you can control what gets paused.
Security:
The extension may ask for access to websites that you add to its options page.
This is so the extension can receive media events like \"play\" \"pause\" and so it can control the media playbackRate it will also use the audible property of the tab which does not require any permission.
On websites that it has permission for where media elements are not added to the pages DOM the extension will insert a local script in the pages context to add it automatically.
Fingerprinting:
The use of this extension maybe detected by the website you use such as if the media gets paused on window.open
Firefox listing: https://addons.mozilla.org/en-US/firefox/addon/autopause/
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "AutoPause", "version": "2.8.4", "description": "Pause other audio and video sources if audio is playing on active tab with automatic resume", "content_security_policy": { "extension_pages": "default-src 'none'; script-src 'self'; frame-ancestors 'none'; form-action 'none'; upgrade-insecure-requests; block-all-mixed-content" }, "cross_origin_embedder_policy": { "value": "require-corp" }, "cross_origin_opener_policy": { "value": "same-origin" }, "commands": { "gotoaudible": { "suggested_key": { "default": "Alt+K", "mac": "Alt+K" }, "description": "Go to tab with audio" }, "disableresume": { "description": "Toggle auto resume" }, "toggleFastPlayback": { "suggested_key": { "default": "Alt+Q", "mac": "Alt+Q" }, "description": "Toggle fast playback" }, "Rewind": { "description": "Rewind" }, "pauseoninactive": { "suggested_key": { "default": "Alt+I", "mac": "Alt+I" }, "description": "Toggle pause on inactive" },\t "backgroundaudio": {\t "suggested_key": { "default": "Alt+O",\t "mac": "Alt+O"\t },\t "description": "Set tab to play when nothing else is"\t }, "togglePlayback": { "description": "Toggle media playback" }, "next": { "description": "Go to end of media" }, "previous": { "description": "Go to start of media" }, "ignoretab": { "description": "Ignore a tab" }, "previoustab": { "description": "Play media from previous tab" }, "autopausewindow": { "description": "Limit autopause usage to a window" } }, "permissions": [ "storage", "scripting", "idle" ], "background": { "service_worker": "background.js" }, "icons": {"48": "icon48.png"}, "options_ui": { "page": "options.html", "open_in_tab": false }, "optional_host_permissions": [""], "manifest_version": 3}
Read more