forked from drodil/video_auto_pause
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,061 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.idea | ||
.DS_Store | ||
Archive.zip | ||
images/store | ||
package.zip | ||
**/images/store | ||
web-ext-artifacts | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"name": "YouTube Auto Pause", | ||
"version": "1.7.0", | ||
"description": "Stops YouTube (+ other video services) on tab unfocus and continues on focus", | ||
"permissions": ["tabs", "storage", "activeTab", "scripting", "idle"], | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "drodil@youtube_auto_pause", | ||
"strict_min_version": "127.0" | ||
} | ||
}, | ||
"host_permissions": [ | ||
"https://*.youtube.com/*", | ||
"https://*.vimeo.com/*", | ||
"https://*.netflix.com/watch/*", | ||
"https://*.youtubekids.com/*", | ||
"https://*.primevideo.com/*", | ||
"https://*.hbomax.com/*", | ||
"https://*.disneyplus.com/*", | ||
"https://*.twitch.tv/*", | ||
"https://*.udacity.com/*" | ||
], | ||
"homepage_url": "https://github.com/drodil/youtube_auto_pause", | ||
"options_ui": { | ||
"page": "options.html", | ||
"open_in_tab": false | ||
}, | ||
"icons": { | ||
"16": "images/icon_16.png", | ||
"32": "images/icon_32.png", | ||
"64": "images/icon_64.png", | ||
"128": "images/icon_128.png" | ||
}, | ||
"action": { | ||
"default_popup": "options.html", | ||
"default_icon": { | ||
"16": "images/icon_16.png", | ||
"32": "images/icon_32.png", | ||
"64": "images/icon_64.png", | ||
"128": "images/icon_128.png" | ||
} | ||
}, | ||
"background": { | ||
"scripts": ["yt.js"] | ||
}, | ||
"externally_connectable": { | ||
"ids": ["*"], | ||
"matches": [ | ||
"https://*.youtube.com/*", | ||
"https://*.youtubekids.com/*", | ||
"https://*.vimeo.com/*", | ||
"https://*.netflix.com/watch/*", | ||
"https://*.primevideo.com/*", | ||
"https://*.hbomax.com/*", | ||
"https://*.disneyplus.com/*", | ||
"https://*.twitch.tv/*", | ||
"https://*.udacity.com/*" | ||
] | ||
}, | ||
"commands": { | ||
"toggle-extension": { | ||
"suggested_key": { | ||
"default": "Ctrl+Shift+K", | ||
"mac": "Command+Shift+K" | ||
}, | ||
"description": "Toggle auto pause/resume" | ||
}, | ||
"toggle-play": { | ||
"suggested_key": { | ||
"default": "Ctrl+Shift+Space", | ||
"mac": "Command+Shift+Space" | ||
}, | ||
"description": "Toggle play/pause" | ||
}, | ||
"toggle_mute": { | ||
"suggested_key": { | ||
"default": "Ctrl+Shift+O", | ||
"mac": "Command+Shift+O" | ||
}, | ||
"description": "Toggle mute" | ||
} | ||
}, | ||
"manifest_version": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Youtube Auto Pause options</title> | ||
<style> | ||
@charset "UTF-8"; | ||
@import 'https://fonts.googleapis.com/css?family=Nunito:300'; | ||
|
||
body { | ||
font-family: "Nunito", sans-serif; | ||
font-weight: 300; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.container { | ||
padding: 10px; | ||
} | ||
|
||
label { | ||
cursor: pointer; | ||
color: #383A3F; | ||
display: block; | ||
font-size: 1.2em; | ||
} | ||
|
||
p, label { | ||
margin-top: 5px; | ||
margin-bottom: 5px; | ||
} | ||
|
||
h2 { | ||
font-size: 20px; | ||
text-align: center; | ||
user-select: none; | ||
} | ||
|
||
h4, hr, h2 { | ||
margin: 0; | ||
} | ||
|
||
#logo { | ||
margin-right: 6px; | ||
margin-left: 3px; | ||
width: 22px; | ||
height: 22px; | ||
vertical-align: sub; | ||
} | ||
|
||
#version { | ||
float: right; | ||
} | ||
|
||
a, a:hover, a:focus, a:active { | ||
text-decoration: underline; | ||
color: inherit; | ||
} | ||
|
||
.collapsible_button { | ||
cursor: pointer; | ||
color: #383A3F; | ||
background-color: white; | ||
padding: 2px 0 2px 0; | ||
width: 100%; | ||
border: none; | ||
text-align: left; | ||
outline: none; | ||
font-size: 13px; | ||
} | ||
|
||
.collapsible_button::after { | ||
content: ' \25BC' | ||
} | ||
|
||
.collapsible_button.active::after { | ||
content: ' \25B2' | ||
} | ||
|
||
.collapsible_content { | ||
max-height: 0; | ||
overflow: hidden; | ||
transition: max-height 0.2s ease-out; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div style="width: 350px"> | ||
<div class="container"> | ||
<h2><img src="images/icon_32.png" id="logo" alt="YouTube Auto Pause"/>YouTube Auto Pause</h2> | ||
</div> | ||
<hr> | ||
<div class="container"> | ||
<h4>Settings</h4> | ||
<label><input type="checkbox" id="autopause"><span class="label-text">Enable auto pause on tab unfocus</span></label> | ||
<label><input type="checkbox" id="autoresume"><span class="label-text">Enable auto resume on tab focus</span></label> | ||
<label><input type="checkbox" id="focuspause"><span class="label-text">Enable auto pause on window unfocus</span></label> | ||
<label><input type="checkbox" id="focusresume"><span class="label-text">Enable auto resume on window focus</span></label> | ||
<label><input type="checkbox" id="lockpause"><span class="label-text">Enable auto pause on computer lock</span></label> | ||
<label><input type="checkbox" id="lockresume"><span class="label-text">Enable auto resume on computer unlock</span></label> | ||
<label><input type="checkbox" id="scrollpause"><span class="label-text">Enable auto pause when out of viewport</span></label> | ||
<label><input type="checkbox" id="cursorTracking"><span class="label-text">Enable cursor on window tracking</span></label> | ||
<label><input type="checkbox" id="manualPause"><span class="label-text">Manual pause disables auto resume</span></label> | ||
<label><input type="checkbox" id="disabled"><span class="label-text">Disable auto pause/resume</span></label> | ||
</div> | ||
<hr> | ||
<div class="container"> | ||
<button class="collapsible_button">Advanced settings</button> | ||
<div class="collapsible_content"> | ||
<div id="hosts"> | ||
<h4>Enabled sites</h4> | ||
</div> | ||
<h4>Other settings</h4> | ||
<label><input type="checkbox" id="debugMode"><span class="label-text">Enable debug mode</span></label> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="container"> | ||
<h4>Hotkeys</h4> | ||
<div id="hotkeys"> | ||
</div> | ||
<p>You can configure hotkeys in the Extensions menu</p> | ||
</div> | ||
<hr> | ||
<div class="container" style="padding-top: 0"> | ||
<p style="float: left;"><a href="https://github.com/drodil/youtube_auto_pause" target="_blank">Source</a></p> | ||
<p id="version"></p> | ||
</div> | ||
<hr style="clear: both"> | ||
<div class="container" style="padding-top: 0"> | ||
<p style="float: left"><a href="https://github.com/sponsors/drodil" target="_blank">Support on GitHub</a></p> | ||
<p style="float: right"><a href="https://patreon.com/drodil" target="_blank">Support on Patreon</a></p> | ||
</div> | ||
</div> | ||
<script src="options.js"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.