Skip to content

Commit

Permalink
[Release] v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkdev committed Jan 10, 2020
1 parent 12f50d5 commit b79802f
Show file tree
Hide file tree
Showing 11 changed files with 258 additions and 213 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"returns": "return"
}
},
"snakecasejs/whitelist": ["childList", "bulmaTagsinput", "getMessage"]
"snakecasejs/whitelist": ["childList", "bulmaTagsinput", "getMessage", "webkitIsFullScreen"]
},
"rules": {
"no-multi-spaces": ["error", { "ignoreEOLComments": true, "exceptions": { "VariableDeclarator": true } }],
Expand Down
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# v1.1.0 (January 10, 2019)
* Feature: detect fullscreen

[![](https://img.shields.io/badge/donate-paypal-005EA6.svg)](https://www.paypal.me/ptkdev) [![](https://img.shields.io/badge/donate-patreon-F87668.svg)](https://www.patreon.com/ptkdev) [![](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg)](https://github.com/sponsors/ptkdev/) [![](https://img.shields.io/badge/donate-ko--fi-29abe0.svg)](https://ko-fi.com/ptkdev)


# v1.0.0 (January 09, 2019)
* Fix: youtube on/off switch
* Fix: twitch on/off switch
* Translations (Italian / English / Polish)

[![](https://img.shields.io/badge/donate-paypal-005EA6.svg)](https://www.paypal.me/ptkdev) [![](https://img.shields.io/badge/donate-patreon-F87668.svg)](https://www.patreon.com/ptkdev) [![](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg)](https://github.com/sponsors/ptkdev/) [![](https://img.shields.io/badge/donate-ko--fi-29abe0.svg)](https://ko-fi.com/ptkdev)


# v0.0.3 (January 08, 2019)
* Developer mode: build system
* Support: Crunchyroll
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 🖥 Chrome Extension: Aspect Ratio 21:9

[![](https://img.shields.io/badge/version-v1.0.0-lightgrey.svg)](https://github.com/ptkdev/chrome-extension-aspectratio219/releases) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/ptkdev/chrome-extension-aspectratio219/blob/nightly/LICENSE.md) [![](https://img.shields.io/badge/ES-9-F7DF1E.svg)](https://wikipedia.org/wiki/ECMAScript) [![](https://snyk.io/test/github/ptkdev/chrome-extension-aspectratio219/badge.svg)](https://snyk.io/test/github/ptkdev/chrome-extension-aspectratio219)
[![](https://img.shields.io/badge/version-v1.1.0-lightgrey.svg)](https://github.com/ptkdev/chrome-extension-aspectratio219/releases) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/ptkdev/chrome-extension-aspectratio219/blob/nightly/LICENSE.md) [![](https://img.shields.io/badge/ES-9-F7DF1E.svg)](https://wikipedia.org/wiki/ECMAScript) [![](https://snyk.io/test/github/ptkdev/chrome-extension-aspectratio219/badge.svg)](https://snyk.io/test/github/ptkdev/chrome-extension-aspectratio219)

> Fit the screen properly in fullscreen mode on monitor with 21:9 aspect ratio. Work on Netflix, Youtube, PrimeVideo, VVVVID, etc...
Expand Down
8 changes: 8 additions & 0 deletions client/html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ <h1 class="title" lang="settings_switch_title" lang-type="text">Aspect Ratio for
</div>
</div>
</div>
<div class="columns is-mobile">
<div class="column">
<div class="field">
<input id="checkbox-fullscreen" type="checkbox" name="checkbox-fullscreen" class="switch">
<label for="checkbox-fullscreen" lang="settings_fullscreen" lang-type="text">Active only in fullscreen mode</label>
</div>
</div>
</div>

<hr />

Expand Down
4 changes: 3 additions & 1 deletion client/js/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ function patreon() {
}

function settings_init() {
let checkboxs = ["youtube", "netflix", "primevideo", "dailymotion", "twitch", "vimeo", "vvvvid", "crunchyroll"];
let checkboxs = ["fullscreen", "youtube", "netflix", "primevideo", "dailymotion", "twitch", "vimeo", "vvvvid", "crunchyroll"];

chrome.storage.local.get(checkboxs, function(data) {
data.fullscreen == null ? chrome.storage.local.set({"fullscreen": true}) : null;
data.youtube == null ? chrome.storage.local.set({"youtube": false}) : null;
data.netflix == null ? chrome.storage.local.set({"netflix": false}) : null;
data.primevideo == null ? chrome.storage.local.set({"primevideo": false}) : null;
Expand All @@ -77,6 +78,7 @@ function settings_init() {
data.crunchyroll == null ? chrome.storage.local.set({"crunchyroll": false}) : null;

chrome.storage.local.get(checkboxs, function(data) {
data.fullscreen == true ? dom.id(`#checkbox-fullscreen`).setAttribute("checked", "checked") : dom.id(`#checkbox-fullscreen`).removeAttribute("checked");
data.youtube == true ? dom.id(`#checkbox-youtube`).setAttribute("checked", "checked") : dom.id(`#checkbox-youtube`).removeAttribute("checked");
data.netflix == true ? dom.id(`#checkbox-netflix`).setAttribute("checked", "checked") : dom.id(`#checkbox-netflix`).removeAttribute("checked");
data.primevideo == true ? dom.id(`#checkbox-primevideo`).setAttribute("checked", "checked") : dom.id(`#checkbox-primevideo`).removeAttribute("checked");
Expand Down
Loading

0 comments on commit b79802f

Please sign in to comment.