Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View shunshunNi's full-sized avatar

Shun(ji) Nishitani shunshunNi

View GitHub Profile
@shunshunNi
shunshunNi / browsermMemo.html
Created October 21, 2023 05:00
open tab can be editable. add this to bookmark let.
data:text/html,
<html contenteditable="true">
<head>
<title>BrowserMemo</title>
<link
rel="icon"
href="https://icon-icons.com/downloadimage.php?id=16112&root=96/ICO/128/&file=accessories_text_editor_16842.ico"
/>
</head>
<body contenteditable="true"></body>
function open
if test (count $argv) -eq 0
explorer.exe .
else
if test -f $argv[1]
cmd.exe /c start (wslpath -w $argv[1]) 2> /dev/null
else if test -d $argv[1]
explorer.exe (wslpath -w $argv[1])
else
echo "open: $1 : No such file or directory"