Add search

This commit is contained in:
Ceres 2025-11-15 18:17:45 +00:00
parent 3c97a2eab1
commit 4e09a7b831
Signed by: ceres-sees-all
GPG key ID: 9814758436430045

View file

@ -122,6 +122,7 @@ $('body').terminal({
this.echo("Some commands to get you started:\n" +
"• about: show about info\n" +
"• services: links to all the services i host, run 'services help' to get a full list\n" +
`• search: search the internet using my searxng, run 'search "<query>"'\n`+
"• pgp: import my pgp public key\n" +
"• meow: mrow\n" +
"\n " +
@ -219,6 +220,11 @@ I help moderate the linuxposting community across its many locations, including
let meows = ['meow', 'mrrrp', 'mrow', 'mrreow', 'miao', 'mraa']
let random = Math.floor(Math.random() * meows.length);
this.echo(meows[random])
},
search: function(query) {
let uri = "https://search.ceressees.dev/search?q="+query;
let encodedUri = encodeURI(uri);
open(encodedUri, '_self')
}
},
{