Skip to content

Commit ccb514b

Browse files
committed
[Release] v1.5.2
1 parent b924342 commit ccb514b

10 files changed

+3821
-3925
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
"contributions": [
2525
"translation"
2626
]
27+
},
28+
{
29+
"login": "MhzDev",
30+
"name": "Michele Stefanelli",
31+
"avatar_url": "https://avatars1.githubusercontent.com/u/11082895?v=4",
32+
"profile": "https://github.com/MhzDev",
33+
"contributions": [
34+
"translation"
35+
]
2736
}
2837
],
2938
"contributorsPerLine": 6

CHANGELOG.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
# v1.5.1 (May 06, 2020)
2-
* Fix: shortcuts issues
1+
# v1.5.2 (October 24, 2020)
2+
* Fix: 🇬🇧 Translations
3+
* Feature: custom shortcuts ([#5](https://github.com/ptkdev/chrome-extension-aspectratio219/issues/5]))
34

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

67

8+
# v1.5.1 (May 06, 2020)
9+
* Fix: shortcuts issues
10+
711
# v1.5.0 (April 30, 2020)
812
* Feature: shortcuts (#3)
913

1014
# v1.4.0 (March 28, 2020)
1115
* Feature: Disney+
1216
* Feature: 21:9 ratio button
1317
* Feature: 32:9 ratio button
14-
* Feature: 16:10 ratio button
18+
* Feature: 16:9 ratio button
1519

1620
# v1.3.2 (March 17, 2020)
1721
* Security: removed useless permissions

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# 🖥 Chrome & Edge Extension: Aspect Ratio 21:9
66

7-
[![](https://img.shields.io/badge/version-v1.5.1-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://discordapp.com/api/guilds/383373985666301975/embed.png)](http://discord.ptkdev.io)
7+
[![](https://img.shields.io/badge/version-v1.5.2-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://discordapp.com/api/guilds/383373985666301975/embed.png)](http://discord.ptkdev.io)
88

99
> Fit the screen properly in fullscreen mode on monitor with 21:9 aspect ratio. Work on Netflix, Youtube, PrimeVideo, VVVVID, etc...
1010
@@ -97,13 +97,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
9797
<!-- markdownlint-disable -->
9898
<table>
9999
<tr>
100-
<td align="center"><a href="https://ptk.dev"><img src="https://avatars1.githubusercontent.com/u/442844?v=4" width="100px;" alt=""/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href="https://github.com/ptkdev/chrome-extension-aspectratio219/commits?author=ptkdev" title="Code">💻</a> <a href="#translation-ptkdev" title="Translation">🌍</a></td>
101-
<td align="center"><a href="https://www.smodatamente.it"><img src="https://avatars1.githubusercontent.com/u/35865603?v=4" width="100px;" alt=""/><br /><sub><b>Angelica Losi</b></sub></a><br /><a href="#translation-angylosi" title="Translation">🌍</a></td>
100+
<td align="center"><a href="https://ptk.dev"><img src="https://avatars1.githubusercontent.com/u/442844?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href="https://github.com/ptkdev/chrome-extension-aspectratio219/commits?author=ptkdev" title="Code">💻</a> <a href="#translation-ptkdev" title="Translation">🌍</a></td>
101+
<td align="center"><a href="https://www.smodatamente.it"><img src="https://avatars1.githubusercontent.com/u/35865603?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Angelica Losi</b></sub></a><br /><a href="#translation-angylosi" title="Translation">🌍</a></td>
102+
<td align="center"><a href="https://github.com/MhzDev"><img src="https://avatars1.githubusercontent.com/u/11082895?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michele Stefanelli</b></sub></a><br /><a href="#translation-MhzDev" title="Translation">🌍</a></td>
102103
</tr>
103104
</table>
104105

105-
<!-- markdownlint-enable -->
106+
<!-- markdownlint-restore -->
106107
<!-- prettier-ignore-end -->
108+
107109
<!-- ALL-CONTRIBUTORS-LIST:END -->
108110

109111
> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!

client/html/popup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h1 class="title" lang="settings_ratio_title" lang-type="text">Set ratio value</
106106
<div class="column buttons margin-bottom-zero is-centered">
107107
<a id="aspect219"><button class="button is-rounded is-small is-button is-centered"><span>21:9</span></button></a>
108108
<a id="aspect329"><button class="button is-rounded is-small is-button is-centered"><span>32:9</span></button></a>
109-
<a id="aspect1610"><button class="button is-rounded is-small is-button is-centered"><span>16:10</span></button></a>
109+
<a id="aspect1610"><button class="button is-rounded is-small is-button is-centered"><span>16:9</span></button></a>
110110
</div>
111111
</div>
112112
<div class="columns is-mobile">

client/js/commands.js

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ chrome.commands.onCommand.addListener(function(command) {
2020
chrome.storage.local.set({"aspect_x": "1"});
2121
chrome.storage.local.set({"aspect_y": "1"});
2222
break;
23+
case "toggle-force-custom":
24+
chrome.storage.local.get(["aspect_x_custom", "aspect_y_custom"], function(data) {
25+
chrome.storage.local.set({"aspect_x": data.aspect_x_custom});
26+
chrome.storage.local.set({"aspect_y": data.aspect_y_custom});
27+
});
28+
break;
2329
case "toggle-force-219":
2430
chrome.storage.local.set({"aspect_x": "1.33"});
2531
chrome.storage.local.set({"aspect_y": "1"});

client/js/events.js

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function settings_aspect() {
142142

143143
dom.query("#aspect_x")[0].addEventListener("keyup", function() {
144144
chrome.storage.local.set({"aspect_x": this.value});
145+
chrome.storage.local.set({"aspect_x_custom": this.value});
145146
});
146147

147148
dom.query("#aspect_y")[0].addEventListener("change", function() {
@@ -150,6 +151,7 @@ function settings_aspect() {
150151

151152
dom.query("#aspect_y")[0].addEventListener("keyup", function() {
152153
chrome.storage.local.set({"aspect_y": this.value});
154+
chrome.storage.local.set({"aspect_y_custom": this.value});
153155
});
154156

155157
dom.query("#stretch")[0].addEventListener("click", function() {

configs/manifest.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "__MSG_extName__",
33
"description": "__MSG_description__",
44
"manifest_version": 2,
5-
"version": "1.5.1",
5+
"version": "{{version}}",
66
"author": "Patryk Rzucidło [@ptkdev] <[email protected]> (https://ptk.dev)",
77
"browser_action": {
88
"default_icon":"images/icon_app_128x128.png",
@@ -40,6 +40,10 @@
4040
"global": true,
4141
"description": "Force 32:9 aspect ratio"
4242
},
43+
"toggle-force-custom": {
44+
"global": true,
45+
"description": "Force CUSTOM aspect ratio"
46+
},
4347
"toggle-stretch": {
4448
"global": true,
4549
"description": "Force stretch mode"

gulpfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const gulp_sass = require("gulp-sass");
1414
const gulp_minifycss = require("gulp-clean-css");
1515
const gulp_minifyjs = require("gulp-terser");
1616
const gulp_rename = require("gulp-rename");
17+
const gulp_replace = require("gulp-replace");
18+
const version = require("./package.json").version;
1719

1820
gulp.task("build-css", function() {
1921
return gulp.src([`./node_modules/bulma/css/bulma.min.css`, `./node_modules/bulma-extensions/dist/css/bulma-extensions.min.css`, `./node_modules/bulma-extensions/bulma-tagsinput/dist/css/bulma-tagsinput.min.css`, `./client/css/main.scss`, `./client/css/colors.scss`])
@@ -89,6 +91,7 @@ gulp.task("build-manifest", function() {
8991
let files = [`./configs/manifest.json`];
9092

9193
return gulp.src(files)
94+
.pipe(gulp_replace("{{version}}", version))
9295
.pipe(gulp.dest(`./build/`));
9396
});
9497

0 commit comments

Comments
 (0)