Created
February 11, 2024 19:33
-
-
Save third774/abbb1601b050b9e3117f8da5c5d77e2e to your computer and use it in GitHub Desktop.
This file contains 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: Perplexity | |
// Author: Kevin Kipp | |
// Email: [email protected] | |
// Twitter: https://twitter.com/kevin_kipp | |
// Github: https://github.com/third774 | |
import '@johnlindquist/kit'; | |
let focus = 'all'; | |
const focuses = ['all', 'scholar', 'writing', 'wolfram', 'youtube', 'reddit']; | |
let q = await arg({ | |
name: 'Ask a question', | |
tabs: focuses, | |
}); | |
const copilot = 'true'; | |
const params = new URLSearchParams({ q, focus, copilot }); | |
console.log(params); | |
open(`https://perplexity.ai/?${params}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment