From 248bd528fb62e8f2070b6e0af4b9faa774e9f6a2 Mon Sep 17 00:00:00 2001 From: Nishimiya Date: Fri, 6 Sep 2024 00:43:21 +0700 Subject: [PATCH] add search template for hianime and nhentai --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7b933f9..f6e0dda 100644 --- a/index.html +++ b/index.html @@ -66,7 +66,7 @@ // prettier-ignore const COMMANDS = new Map([ - ['h', { name: 'HiAnime', url: 'https://hianime.to' }], + ['h', { name: 'HiAnime', , searchTemplate: '/search?keyword={}', url: 'https://hianime.to' }], ['c', { name: 'ChatGPT', suggestion: [ 'c/perplexity', 'c/deepseek'], url: 'https://chat.openai.com' }], ['c/perplexity', { url: 'https://www.perplexity.ai' }], ['c/deepseek', { url: 'https://chat.deepseek.com/coder' }], @@ -85,7 +85,7 @@ ['s', { name: 'Portal', url: 'https://studentportal.ipb.ac.id' }], ['e', { name: 'E-hentai', suggestions: ['e/nhentai.net'], url: 'https://e-hentai.org' }], - ['e/nhentai', { url: 'https://nhentai.net' }], + ['e/nhentai', searchTemplate: '/search/?q={}', { url: 'https://nhentai.net' }], ['a', { name: 'Chat', suggestions: ['a/claude', 'a/gemini'], url: 'https://chatgpt.com' }], ['a/claude', { url: 'https://claude.ai/new' }],