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
⬛⬛🟨⬛🟨
🟨🟨🟨🟨⬛
🟩🟨⬛🟨🟨
🟩🟩🟩🟩🟩
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Screen recorder</title> | |
</head> | |
<body> | |
<button id="recording-toggle">Start recording</button> | |
<script defer> |
import { build } from "nuxt"; | |
import { Data } from "~/types/generated"; | |
export const useAPI = ( | |
url: string, | |
items: any, | |
meta: any, | |
item: any, | |
status: any, | |
errors: {} |
/* These rules are ignored when ui-monospace is supported. */ | |
@font-face { font-family: ui-monospace; src: | |
/* MacOS (El Capitan +) */ | |
local(Menlo-Regular), | |
/* Windows (11 +) */ | |
local(CascadiaCode-Regular), | |
/* Windows (Vista +) */ | |
local(Consolas), | |
/* Android */ | |
local(RobotoMono-Regular), |
/* | |
Made by Elly Loel - https://ellyloel.com/ | |
With inspiration from: | |
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
Notes: | |
- `:where()` is used to lower specificity for easy overriding. | |
*/ |
/* Simply copy and paste in the browser's console */ | |
function weightToNumber(str) { | |
if (str === 'normal') { | |
return 400; | |
} | |
if (str === 'bold') { | |
return 700; | |
} | |
return parseInt(str, 10); |
class CSSStyleRecord { | |
constructor( | |
/** @type {{ target: Element, propertyName: string, oldValue: string, newValue: string }} */ | |
init | |
) { | |
Object.assign(this, init) | |
} | |
} | |
class CSSStyleObserver { |
/* Ultra lightweight Github REST Client */ | |
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const token = 'github-token-here' | |
const githubClient = generateAPI('https://api.github.com', { | |
headers: { | |
'User-Agent': 'xyz', | |
'Authorization': `bearer ${token}` | |
} | |
}) |
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
⬛⬛🟨⬛🟨
🟨🟨🟨🟨⬛
🟩🟨⬛🟨🟨
🟩🟩🟩🟩🟩
interface Without { | |
without(withoutWord: string): boolean; | |
} | |
// 1. Easiest / the way I'd do it | |
function youCantSpell(word: string): Without { | |
return { | |
without(withoutWord: string) { | |
return word.includes(withoutWord); | |
} |