This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: Roam Workshop Notes Template | |
| let template = ` | |
| clarification questions:: | |
| content ideas:: | |
| [[landing page copy]] | |
| ***General landing page** | |
| ***Workshop Specific** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Author: Taylor Bell | |
| // Name: | |
| // Shortcut: | |
| // Description: Select transcripts and image folders in the current Finder window | |
| await applescript(` | |
| set folderpath to false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Author: Taylor Bell | |
| // Name: replace-markdown-image-tag | |
| // Description: Reformat a markdown image tag to be a placeholder | |
| let allFiles = await drop() | |
| for (let file of allFiles) { | |
| let content = await readFile(file.path, "utf-8") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| let files = await drop() | |
| cd(path.dirname(files[0].path)) | |
| let lengthStrings = [] | |
| let totalSeconds = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: Open VS Code Here | |
| // Shortcut: option+v | |
| // Author: Taylor Bell | |
| let selectedFile = await getSelectedFile() | |
| // remove the filename from the path | |
| let path = selectedFile.replace(/\/[^\/]*$/, '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let MarkdownIt = await npm("markdown-it") | |
| let hljs = await npm("highlight.js") | |
| // import 'highlight.js/styles/night-owl.css'; | |
| import "@johnlindquist/kit" | |
| // Name: markdown-to-html | |
| // Description: Paste Markdown to generate HTML with syntax highlighting | |
| // Author: Taylor Bell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: add-times | |
| let times = await arg("Enter times as HH:MM:SS or MM:SS with + between each") | |
| // example times = "1:23:45+2:34:56+3:45:67" | |
| // split times into array | |
| let timesArray = times.split("+") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: page to markdown | |
| let { extract } = await npm('@extractus/article-extractor') | |
| let TurndownService = await npm('turndown') | |
| let input = await getActiveTab() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Copy Green Text on OpenAI Playground | |
| // @version 0.1 | |
| // @description Create a button that copies the text of all green spans on a page | |
| // @match https://beta.openai.com/playground | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | |
| // @author Taylor Bell | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: bulk-remove-brackets | |
| let files = await drop() | |
| for (let file of files) { | |
| let text = await readFile(`${file.path}`, "utf8") |