Skip to content

Instantly share code, notes, and snippets.

View myfonj's full-sized avatar

Michal Čaplygin myfonj

View GitHub Profile

Localhost, spelled wildly

Oct 15, 2026 · @Michal Čaplygin

Each spelling below parses as http://<spelling>/ to the address of its section, in Node 22 (a URL Standard parser) and Chrome 155; where only Chrome accepts a spelling, the row says so. Firefox 159b2 (Developer Edition) agrees with Node on every row. A real request to a local server also succeeded for every spelling Chrome accepts, with the shown host in the Host header.

Every spelling is a link to / of that host, so a click tests it in your own browser.

Name: localhost

@myfonj
myfonj / _userChrome.css
Last active September 25, 2026 21:35
My userChrome for Firefox Developer edition
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace svg url("http://www.w3.org/2000/svg");
/* ;-,-,
userChrome.css
Version 1.0.0-2024-12-20
*/
@myfonj
myfonj / 0_html-sandbox-2.0.6.datauri.txt
Last active September 14, 2026 09:26
HTML sandbox - editor in data URI 1176 b, with live preview and persistence.
data:text/html;charset=utf-8;verbatim,<!doctype html><html style="color-scheme:dark light"><title>HTML sandbox 2.0.6</title><meta name=viewport content=width=device-width,initial-scale=1><body style=margin:0;display:flex;height:100vh onload="OT=(DC=document).title,H=(L=location).hash.slice(1)||'',RX=/(^data:.+?(;verbatim)?,)?([^]*)/,A.value=H.match(RX)[2]?H:decodeURIComponent(H)||A.value;T=W=0;E=RegExp('^'+(D='data:text/html;charset=utf-8,'));F=()=>{if(W!=(V=A.value))W=V,M=V.match(RX),I.src=M[2]?V:(M[1]||D)+encodeURIComponent(M[3]),DC.title=NT=((TM=V.match(/<title\b[^]*?\x3E([^]*?)<\/title\b/m))&&(NT=TM[1])&&(NT=NT.trim())&&(DC.title=NT+' @ '+OT))||OT};F()"><textarea autocapitalize=off style=resize:horizontal;width:50vw autofocus id=A onkeyup=clearTimeout(T);T=setTimeout(F,400) onblur=try{history.pushState({},NT,'\u0023'+(S=I.src.replace(E,'')))}catch(e){L.hash=S}><!doctype html><html lang="en" style="color-scheme: dark light;">%0A<meta name="viewport" content="width=device-width, initial-scale=1">%0A<title>%
<!doctype html><html lang="en" style="color-scheme: dark light;">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Vanilla HTML + CSS (+ JS) "password strength" app
</title>
<style>
form
{ width: max-content
; padding: 1em
; margin: 1em
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
/\p{General_Category=Lowercase_Letter}/u
/\p{Script=Latin}/u
Count:759
a b c d e f g h i j k l m n o p q r s t u v w x y z ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ ā ă ą ć ĉ ċ č ď đ ē ĕ ė ę ě ĝ ğ ġ ģ ĥ ħ ĩ ī ĭ į ı ij ĵ ķ ĸ ĺ ļ ľ ŀ ł ń ņ ň ʼn ŋ ō ŏ ő œ ŕ ŗ ř ś ŝ ş š ţ ť ŧ ũ ū ŭ ů ű ų ŵ ŷ ź ż ž ſ ƀ ƃ ƅ ƈ ƌ ƍ ƒ ƕ ƙ ƚ ƛ ƞ ơ ƣ ƥ ƨ ƪ ƫ ƭ ư ƴ ƶ ƹ ƺ ƽ ƾ ƿ dž lj nj ǎ ǐ ǒ ǔ ǖ ǘ ǚ ǜ ǝ ǟ ǡ ǣ ǥ ǧ ǩ ǫ ǭ ǯ ǰ dz ǵ ǹ ǻ ǽ ǿ ȁ ȃ ȅ ȇ ȉ ȋ ȍ ȏ ȑ ȓ ȕ ȗ ș ț ȝ ȟ ȡ ȣ ȥ ȧ ȩ ȫ ȭ ȯ ȱ ȳ ȴ ȵ ȶ ȷ ȸ ȹ ȼ ȿ ɀ ɂ ɇ ɉ ɋ ɍ ɏ ɐ ɑ ɒ ɓ ɔ ɕ ɖ ɗ ɘ ə ɚ ɛ ɜ ɝ ɞ ɟ ɠ ɡ ɢ ɣ ɤ ɥ ɦ ɧ ɨ ɩ ɪ ɫ ɬ ɭ ɮ ɯ ɰ ɱ ɲ ɳ ɴ ɵ ɶ ɷ ɸ ɹ ɺ ɻ ɼ ɽ ɾ ɿ ʀ ʁ ʂ ʃ ʄ ʅ ʆ ʇ ʈ ʉ ʊ ʋ ʌ ʍ ʎ ʏ ʐ ʑ ʒ ʓ ʕ ʖ ʗ ʘ ʙ ʚ ʛ ʜ ʝ ʞ ʟ ʠ ʡ ʢ ʣ ʤ ʥ ʦ ʧ ʨ ʩ ʪ ʫ ʬ ʭ ʮ ʯ ᴀ ᴁ ᴂ ᴃ ᴄ ᴅ ᴆ ᴇ ᴈ ᴉ ᴊ ᴋ ᴌ ᴍ ᴎ ᴏ ᴐ ᴑ ᴒ ᴓ ᴔ ᴕ ᴖ ᴗ ᴘ ᴙ ᴚ ᴛ ᴜ ᴝ ᴞ ᴟ ᴠ ᴡ ᴢ ᴣ ᴤ ᴥ ᵫ ᵬ ᵭ ᵮ ᵯ ᵰ ᵱ ᵲ ᵳ ᵴ ᵵ ᵶ ᵷ ᵹ ᵺ ᵻ ᵼ ᵽ ᵾ ᵿ ᶀ ᶁ ᶂ ᶃ ᶄ ᶅ ᶆ ᶇ ᶈ ᶉ ᶊ ᶋ ᶌ ᶍ ᶎ ᶏ ᶐ ᶑ ᶒ ᶓ ᶔ ᶕ ᶖ ᶗ ᶘ ᶙ ᶚ ḁ ḃ ḅ ḇ ḉ ḋ ḍ ḏ ḑ ḓ ḕ ḗ ḙ ḛ ḝ ḟ ḡ ḣ ḥ ḧ ḩ ḫ ḭ ḯ ḱ ḳ ḵ ḷ ḹ ḻ ḽ ḿ ṁ ṃ ṅ ṇ ṉ
@myfonj
myfonj / wk.bat
Created June 2, 2025 11:14
Start WebKit from Playwright
@echo off
echo Launching Playwright's WebKit browser...
@REM npx playwright install puts executables under
@REM C:\Users\user name\AppData\Local\ms-playwright\webkit-12345\Playwright.exe
set "wkpath=%LOCALAPPDATA%\ms-playwright\webkit-*"
set "wkexe=Playwright.exe"
set "params=%*"
if "%params%"=="" (
set "params=http://localhost/utils/sandbox.html"
)
@myfonj
myfonj / check-my-language.md
Last active April 9, 2025 15:52
LLM chat prompts

Could you point out any grammatical errors or instances of awkward or unnatural phrasing I’ve made in this conversation? Please skip minor typos that result in non-existent words, but do let me know if I’ve used the wrong word entirely. Please format the feedback with the original and corrected versions on separate lines, and bold the differences.

icevers dussyurm watiang blemy chitrced unytilic exyenen hawsen foodis jarrksed pantetze dipins dusheds peaglets krat vimpod feanbing rubltum undeed woows tosi greneres azlicas furater osttide tuvirch pispaher plusa albrmo jurplits paspie istrring oveinted fotsaste beathes jarr boookel sheut boact sactir rutfy tondy oprtted renger tuggsied maidoies frinksh staleles hukuene itralals tiseabed sumbi marenge verwalle laffiah gelerned setlll ineries smayl whaelied fooamoid upamo overaced idmaled dedaffs prer rettla pexysint upublind stheam sndaleer folllere rardined edjuste stunyd vilwsese kreoreng nialemia vias ovealily teiottic doliedst mungler gapadis saglonia yaues langieng muthe sicqutes wevked sibeed modirant prabwoss achow nawewite gleelate nouedas chaices egeiates disphmpy sayaoff nenhsit dysealy cobmeded bortrous linve gustered lileny grckeul arambast lotiven miectite bebikng cugjet bowfiang kasplil authomed ceddner regrosed fisoy wepors scrroic undgames freanit feaglis shogaer virmera turatrs clals roiai
@myfonj
myfonj / ezwinports-batch-download-howto.txt
Created November 25, 2018 19:16
ezwinports bulk download and extract
// prereqs: modern browser, wget, 7zip, text editor
// navigate to:
https://sourceforge.net/projects/ezwinports/files/
// press:
ctrl+shift+k
// type/paste, enter
copy($$('[href$="-bin.zip/download"],[href$="README.txt/download"]').map(e=>e.href).join('\n'))
// paste into file
ezwinports.txt
// sort lines
@myfonj
myfonj / dabblet.css
Last active October 17, 2024 14:17
font-feature-values styleset test for Arial and Verdana
/* font-feature-values styleset test for Arial and Verdana */
@font-feature-values Arial { @styleset {slabbed-I: 1; } }
@font-feature-values Verdana { @styleset { slabless-I: 1; } }