Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
hide results with wrong("red") snippet. (maybe not as default? But it works pretty good for me)
allo38c180b28bdc
diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.jsindex 46dee02bf..05e2d536b 100644--- a/htroot/js/yacysearch.js+++ b/htroot/js/yacysearch.js@@ -49,6 +49,12 @@ function requestImageSnippet(url, query){request.send(null);}+function show_hidden_results(){+ results=document.getElementsByName("searchresults");+ for(i=0;i<results.length;i++){+ results[i].setAttribute("style", "display: visible");+ }+}function handleTextState(req) {if(req.readyState != 4){return;@@ -68,6 +74,8 @@ function handleTextState(req) {span.className = "snippetLoaded";} else {span.className = "snippetError";+ span.parentNode.parentNode.setAttribute("style", "display: none");+ document.getElementById("hidden_results").innerHTML='Some results were hidden, because they do not contain your searchwords anymore, or because they are not accessible. Click here to <a href="javascript:show_hidden_results()">show them</a>';}// replace "<b>" text by <strong> node@@ -212,4 +220,4 @@ function addHover() {}}}-}\ No newline at end of file+}diff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex 655be8c73..a2d8e6005 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -134,10 +134,10 @@ document.getElementById("Enter").value = "search again - catch up more links";</p>#(/combine)#<!-- linklist begin -->-+ <div id="hidden_results"></div>#{results}#<!-- link begin -->- <div class="searchresults">+ <div class="searchresults" name="searchresults">#(authorized)#::<div class="urlactions"><a href="/Bookmarks.html?edit=#[urlhash]#" class="bookmarklink" title="bookmark"><img src="/env/grafics/empty.gif" title="bookmark" alt="bookmark" class="bookmarkIcon" /></a>@@ -233,4 +233,4 @@ document.getElementById("Enter").value = "search again - catch up more links";#(/display)#</body>-</html>\ No newline at end of file+</html>