Skip to content

Commit 360a278

Browse files
authored
Merge pull request #6 from hadrrb/fix-en&pl&dk
fix english & polish & add quordle & add width changing
2 parents b9c5d8f + 8068931 commit 360a278

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to the "wordle" extension will be documented in this file.
44

5+
## 1.0.2
6+
7+
- Changed English Wordle to <a href="https://mikhad.github.io/wordle/#daily">Wordle+</a> because the original cannot be loaded as an iframe because of X-Frame-Options policy.
8+
- Changed Polish Wordle to <a href="https://www.kurnik.pl/slowoku/">Słowoku</a> because of compatibility issues.
9+
- Added <a href="https://www.quordle.com/#/">Quordle</a> (English Wordle with 4 words to guess)
10+
- Added the possibility to change the width from settings of VSCode.
11+
512
## 1.0.1
613

714
- Added Danish https://www.wørdle.dk

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@ A simple Visual Studio Code extension allowing to play Wordle directly from the
44

55
The game is available directly from Visual Studio Code sidebar and the extension allows to load different versions of Wordle.
66

7+
**The original English version is not available anymore, since the transition to New York Times website, because of the impossibility to embed it into a simple html file.**
8+
9+
**Instead you can play Wordle+ by @MikhaD.**
10+
711
![illustration](resources/usage.png)
812

913
There is the possibility to adjust manually the height of the container in which the Wordle game is displayed.
1014

1115
## Supported Wordle Games
12-
- [The English original](https://www.powerlanguage.co.uk/wordle/)
16+
- [English](https://mikhad.github.io/wordle/#daily)
17+
- [English 4 words](https://www.quordle.com/#/)
1318
- [German](https://wordle.at)
1419
- [French](https://wordle.louan.me)
15-
- [Polish](https://literalnie.fun)
20+
- [Polish](https://www.kurnik.pl/slowoku/)
1621
- [Spanish](https://wordle.danielfrg.com)
1722
- [Italian](https://sebastianomorando.github.io/wordle-it/)
1823
- [Portuguese](https://term.ooo)

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-wordle",
33
"displayName": "Wordle for VSCode",
44
"description": "Play Wordle in your VSCode",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"keywords": ["wordle", "word game", "game"],
77
"publisher": "RamziHadrich",
88
"author": {
@@ -36,6 +36,7 @@
3636
"default": "English",
3737
"enum": [
3838
"English",
39+
"English 4 words",
3940
"German",
4041
"French",
4142
"Polish",
@@ -48,6 +49,11 @@
4849
"Russian",
4950
"Mathematics"
5051
]
52+
},
53+
"wordle.width": {
54+
"type": "string",
55+
"description": "Wordle width (in px or in %)",
56+
"default": "100%"
5157
}
5258
}
5359
}

resources/usage.png

24.5 KB
Loading

src/pick_language.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ type wordleType = {
77
};
88

99
export const wordles: wordleType = {
10-
"English": "https://www.powerlanguage.co.uk/wordle/",
10+
"English": "https://mikhad.github.io/wordle/#daily",
11+
"English 4 words": "https://www.quordle.com/#/",
1112
"German": "https://wordle.at",
1213
"French": "https://wordle.louan.me",
13-
"Polish": "https://literalnie.fun",
14+
"Polish": "https://www.kurnik.pl/slowoku/",
1415
"Spanish": "https://wordle.danielfrg.com",
1516
"Italian": "https://sebastianomorando.github.io/wordle-it/",
1617
"Portuguese": "https://term.ooo",

src/wordle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class WordleProvider implements vscode.WebviewViewProvider {
3737
}
3838

3939
private _getHtmlForWebview() {
40+
let width = vscode.workspace.getConfiguration("wordle").get<string>("width");
4041
return `<!DOCTYPE html>
4142
<html>
4243
<head>
@@ -46,7 +47,7 @@ export class WordleProvider implements vscode.WebviewViewProvider {
4647
4748
</head>
4849
<body>
49-
<iframe src="${this.wordleLink}" height="${this.height}" width="100%" scrolling="no" frameborder="0" wmode="transparent"></iframe>
50+
<iframe src="${this.wordleLink}" height="${this.height}" width="${width}" scrolling="no" frameborder="0" wmode="transparent"></iframe>
5051
</body>
5152
</html>`;
5253
}

0 commit comments

Comments
 (0)