AnesKAM commited on
Commit
b7f7b9e
ยท
verified ยท
1 Parent(s): 363469d

Update results.html

Browse files
Files changed (1) hide show
  1. results.html +3 -5
results.html CHANGED
@@ -385,7 +385,6 @@
385
  .gsc-above-wrapper-area { border: none !important; padding: 0 !important; margin: 0 !important; height: 0 !important; }
386
  .gsc-control-cse, .gsc-control-wrapper-cse { background: transparent !important; border: none !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; }
387
 
388
- /* ุฅุธู‡ุงุฑ ุญุงูˆูŠุฉ ุงู„ุตูˆุฑุฉ ุงู„ู…ุตุบุฑุฉ ุจุดูƒู„ ุทุจูŠุนูŠ */
389
  .gsc-thumbnail-inside { display: block !important; padding: 0 !important; visibility: visible !important; height: auto !important; width: auto !important; margin-bottom: 5px; }
390
 
391
  /* ุฅุฎูุงุก ุงู„ุนู†ุงูˆูŠู† ุงู„ู…ูƒุฑุฑุฉ ุฏุงุฎู„ ุญุงูˆูŠุฉ ุงู„ุตูˆุฑุฉ ุงู„ู…ุตุบุฑุฉ */
@@ -396,7 +395,6 @@
396
  visibility: hidden !important;
397
  }
398
 
399
- /* ุชู†ุณูŠู‚ ุงู„ุนู†ุงูˆูŠู† ูˆุงู„ู…ู„ุฎุตุงุช ุงู„ุฃุณุงุณูŠุฉ */
400
  .gs-title, .gs-title *, a.gs-title {
401
  color: var(--accent) !important;
402
  text-decoration: none !important;
@@ -700,7 +698,7 @@
700
  // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
701
  // Helpers
702
  // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
703
- function truncateWords(text, max = 22) {
704
  if (!text) return '';
705
  const words = text.trim().split(/\s+/);
706
  return words.length <= max ? text : words.slice(0, max).join(' ') + 'โ€ฆ';
@@ -802,7 +800,7 @@
802
  body: JSON.stringify({
803
  api_key: TAVILY_API_KEYS[idx],
804
  query: q,
805
- search_depth: 'basic',
806
  max_results: 20,
807
  include_favicon: true
808
  })
@@ -842,7 +840,7 @@
842
  <div class="tavily-content">
843
  <div class="tavily-domain"><i class="fa-solid fa-link"></i> ${escapeHTML(domain)}</div>
844
  <a class="tavily-title" href="${r.url}" target="_blank" rel="noopener noreferrer">${escapeHTML(r.title || 'ุจุฏูˆู† ุนู†ูˆุงู†')}</a>
845
- <p class="tavily-snippet">${truncateWords(escapeHTML(r.content || r.snippet || ''), 30)}</p>
846
  </div>
847
  </article>`;
848
  }).join('');
 
385
  .gsc-above-wrapper-area { border: none !important; padding: 0 !important; margin: 0 !important; height: 0 !important; }
386
  .gsc-control-cse, .gsc-control-wrapper-cse { background: transparent !important; border: none !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; }
387
 
 
388
  .gsc-thumbnail-inside { display: block !important; padding: 0 !important; visibility: visible !important; height: auto !important; width: auto !important; margin-bottom: 5px; }
389
 
390
  /* ุฅุฎูุงุก ุงู„ุนู†ุงูˆูŠู† ุงู„ู…ูƒุฑุฑุฉ ุฏุงุฎู„ ุญุงูˆูŠุฉ ุงู„ุตูˆุฑุฉ ุงู„ู…ุตุบุฑุฉ */
 
395
  visibility: hidden !important;
396
  }
397
 
 
398
  .gs-title, .gs-title *, a.gs-title {
399
  color: var(--accent) !important;
400
  text-decoration: none !important;
 
698
  // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
699
  // Helpers
700
  // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
701
+ function truncateWords(text, max = 21) {
702
  if (!text) return '';
703
  const words = text.trim().split(/\s+/);
704
  return words.length <= max ? text : words.slice(0, max).join(' ') + 'โ€ฆ';
 
800
  body: JSON.stringify({
801
  api_key: TAVILY_API_KEYS[idx],
802
  query: q,
803
+ search_depth: 'ultra-fast',
804
  max_results: 20,
805
  include_favicon: true
806
  })
 
840
  <div class="tavily-content">
841
  <div class="tavily-domain"><i class="fa-solid fa-link"></i> ${escapeHTML(domain)}</div>
842
  <a class="tavily-title" href="${r.url}" target="_blank" rel="noopener noreferrer">${escapeHTML(r.title || 'ุจุฏูˆู† ุนู†ูˆุงู†')}</a>
843
+ <p class="tavily-snippet">${truncateWords(escapeHTML(r.content || r.snippet || ''), 21)}</p>
844
  </div>
845
  </article>`;
846
  }).join('');