Skip to content

Instantly share code, notes, and snippets.

@third774
Created February 11, 2024 19:33
Show Gist options
  • 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: [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