Skip to content

Instantly share code, notes, and snippets.

@third774
Created February 11, 2024 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save third774/abbb1601b050b9e3117f8da5c5d77e2e to your computer and use it in GitHub Desktop.
Save third774/abbb1601b050b9e3117f8da5c5d77e2e to your computer and use it in GitHub Desktop.
// Name: Perplexity
// Author: Kevin Kipp
// Email: kevin.kipp@gmail.com
// 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