Menu
Home
About
Our Role
Goals
The Team
Roadmap
Tokenomics
How To Buy
Knowledge Base
Contacts
Sitemap & Links
A.I.
Chart
Shop
IMMORTALITY
🏠
⬇️
SearXNG Changes
New name
B
I
U
S
link
image
code
HTML
list
Show page
Syntax
!! Change the logo * Logo location: /usr/local/searxng/searxng-src/searx/static/themes/simple/img * sudo nemo and edit the file with graphics editor. {pre} sudo chown searxng:searxng /usr/local/searxng/searxng-src/searx/static/themes/simple/img/searxng.png sudo systemctl restart uwsgi {/pre} Change the css spacing: 0 out the margin in title in the css or in index.html in templates/simple add the margin {pre} <div class="title" style="margin-bottom: -20px"><h1>SearXNG</h1></div> {/pre} !!Add category to the homepage Take the code below from search.html and paste it into simple_search.html, inside the form. /searx/templates/simple_search.html:3 <div id="search_header"> {pre} <div> {% set display_tooltip = true %} {% include 'simple/categories.html' %} </div> {/pre} <div id="search_view"> and it is essential to comment out line 16 {pre} <!-- <input type="hidden" name="category_{{ category }}" value="1" > --> {/pre} and change the css spacing: 0 out the margin in title in the css or in index.html in templates/simple add the margin {pre} <div class="index" style="margin-top: -40px"> {/pre} !!Do not auto-execute the autocomplete dropdown combo box Unintended execution, if the mouse selects the autocomplete option the combo box executes the search form. Disable the auto exection and make the user commit. This means that the selection is added to the imput box allowing further drop options. /searx/static/themes/simple/js/searxng.core.min.js Delete the line {pre} //document.querySelector(`#search`)?.submit() {/pre} !!Trim left and right whitespace from queries /searx/static/themes/simple/js/search.min.js '''Before:''' {pre} var u=document.querySelector(`#search`);t(u),e(`submit`,u,e=>{e.preventDefault();let t=document.querySelector(`#selected-categories`);t&&(t.value=l.filter(e=>e.classList.contains(`selected`)).map(e=>e.name.replace(`category_`,``)).join(`,`)),u.submit()}); {/pre} '''After:''' {pre} var u = document.querySelector('#search'); t(u); let submitting = false; e('submit', u, (event) => { if (submitting) return; event.preventDefault(); const q = document.getElementById('q'); if (!q) return; // Trim leading and trailing spaces q.value = q.value.trim(); // 🚫 If empty after trimming, do NOT submit if (q.value === '') { return; // Stop here — nothing to search } // Handle selected categories (existing logic) const selectedCategories = document.querySelector('#selected-categories'); if (selectedCategories) { selectedCategories.value = l .filter((btn) => btn.classList.contains('selected')) .map((btn) => btn.name.replace('category_', '')) .join(','); } // Safely submit only once submitting = true; u.submit(); }); {/pre} !!Add a favicon to the search results This has been added and requires a resolver in settings.yml
Password
Summary of changes
📜
⏱️
⬆️