Apparently there's no share button after wordling in my browsers, so I created this copy/paste JS to put in console, which will produce an output like:
Wordle 212 4/6
β¬β¬π¨β¬π¨
π¨π¨π¨π¨β¬
π©π¨β¬π¨π¨
π©π©π©π©π©
The script:
(function($$, $ = (Q, P) => $$(Q, P)[0]) {
const {shadowRoot: app} = $('game-app');
$('#settings-button', app).click();
const page = $('game-page', app);
const {textContent: num} = $('#puzzle-number', $('game-settings', page).shadowRoot);
$('game-icon', page.shadowRoot).click();
const rows = $$('game-row', $('game-theme-manager', app));
const wordle = [];
for (const {shadowRoot} of rows) {
const row = [];
for (const tile of $$('game-tile', shadowRoot)) {
// for a big screenshot instead uncomment following 2 lines
// tile.shadowRoot.appendChild(document.createElement('style')).textContent =
// '*{color:transparent !important;}';
switch (tile.getAttribute('evaluation')) {
case 'absent':
row.push('β¬οΈ');
break;
case 'present':
row.push('π¨');
break;
case 'correct':
row.push('π©');
break;
}
}
wordle.push(row.join(''));
if (row.every(score => score === 'π©'))
break;
}
console.log([
`Wordle ${num.slice(1)} ${wordle.length}/${rows.length}`,
'',
].concat(wordle).join('\n'));
}((Q, P) => (P || document).querySelectorAll(Q)));
Also feel free to learn new words while playing, through this super handy tool.