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
| metadata = { | |
| name: "Proxy Screenshots", | |
| } | |
| import "@johnlindquist/kit" | |
| import { chromium } from "playwright" | |
| const MOBILE_USER_AGENT = | |
| "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1" |
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
| metadata = { | |
| name: "Proxy Screenshots", | |
| } | |
| import "@johnlindquist/kit" | |
| import { chromium } from "playwright" | |
| const PROXIES = [ | |
| { url: "us-il-chicago-2.cloudveil.org", port: 26000 }, | |
| { url: "us-va-ashburn-2.cloudveil.org", port: 26000 }, |
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
| // Name: Generate Raycast Scripts | |
| import "@johnlindquist/kit" | |
| const collect = await npm("collect.js") | |
| // get the directory to store the scripts in. Save in an environment variable | |
| const directory = await env("RAYCAST_SCRIPTS_DIRECTORY", async () => { return await selectFolder("Select a directory to store the scripts in") }) | |
| // get all the scripts from Script Kit | |
| let scripts = collect(await getScripts()) | |
| // remove preview from scripts |
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
| // Name: process-youtube | |
| // Shortcut: Shift Control Option Command Y | |
| import "@johnlindquist/kit" | |
| const {ray} = await import("node-ray") | |
| const clipboard = await paste() | |
| const whitelistYoutubeFile = await env("WHITELIST_YOUTUBE_FILE", async () => { | |
| return await path() |
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
| // Name: Generate Raycast Scripts | |
| import "@johnlindquist/kit" | |
| const collect = await npm("collect.js") | |
| // get the directory to store the scripts in. Save in an environment variable | |
| const directory = await env("RAYCAST_SCRIPTS_DIRECTORY", async () => { return await selectFolder("Select a directory to store the scripts in") }) | |
| // get all the scripts from Script Kit | |
| let scripts = collect(await getScripts()) | |
| // remove preview from scripts |
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
| // Name: url tool | |
| // Shortcut: Shift Control Option Command U | |
| import "@johnlindquist/kit" | |
| const {ray} = await npm('node-ray') | |
| // command options | |
| let options = [ | |
| { |
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
| accent: "#3794ff" | |
| background: "#011627" | |
| foreground: "#d6deeb" | |
| details: "darker" | |
| terminal_colors: | |
| normal: | |
| black: "#011627" | |
| red: "#EF5350" | |
| green: "#22da6e" | |
| yellow: "#c5e478" |