We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45f3bd commit 41dfc66Copy full SHA for 41dfc66
src/cli/share-script-to-scriptkit.ts
@@ -7,11 +7,15 @@ let { filePath } = await selectScript(
7
8
const content = await readFile(filePath, "utf8")
9
await clipboard.writeText(content)
10
+
11
+// Convert script content to base64 for URL parameter
12
+let script_b64 = Buffer.from(content).toString("base64")
13
14
await notify({
15
title: "Script contents copied to clipboard",
16
body: "Opening scriptkit.com/new to paste script"
17
})
18
-await open(`https://scriptkit.com/new`)
19
+await open(`https://scriptkit.com/new?script_b64=${script_b64}`)
20
21
export {}
0 commit comments