Greasy Fork is available in English.

Better Searx White Theme(searx.be)

upgrades SearX(BE) white theme.

  1. // ==UserScript==
  2. // @name Better Searx White Theme(searx.be)
  3. // @namespace -
  4. // @version 0.2
  5. // @description upgrades SearX(BE) white theme.
  6. // @author Not You
  7. // @match *searx.be/*
  8. // @require https://code.jquery.com/jquery-3.3.1.min.js
  9. // @license GPLv3
  10. // @license-link https://www.gnu.org/licenses/gpl-3.0.txt
  11. // @grant none
  12. // @run-at document-body
  13. // ==/UserScript==
  14.  
  15. /*
  16. Features:
  17. - Invisible Navigation Bar
  18. - Darker links
  19. - Darker categories font and color under them
  20. - Darker description
  21. - Darker description for Wikipedia bar
  22.  
  23. Bonus Features:
  24. - Change Title
  25. - Replaced Main Logo with old one
  26. - Replaced Favicon with old one
  27. - Fixed Main Logo Margin
  28. - Adding Fake History
  29. */
  30.  
  31.  
  32.  
  33. // Change Main Logo //
  34. if(window.location.pathname.indexOf('/') != -1) {
  35. document.title = "SearX";
  36. $('.center-block.img-responsive').attr('src', 'https://searx.bar/static/themes/oscar/img/logo_searx_a.png')
  37. }
  38.  
  39. // Change Title //
  40. document.title = 'SearX'
  41.  
  42. // Change Favicon //
  43. $('link[rel*="icon"]').prop('href','https://searx.bar/static/themes/oscar/img/favicon.png');
  44.  
  45. // Add Fake History //
  46. window.history.pushState('', '', '/search?q=i%20<3%20GNU&categories=general');
  47. window.history.pushState('', '', '/search?q=microsoft%20malware%20gnu&categories=general');
  48. window.history.pushState('', '', '/search?q=google%20malware%20gnu&categories=general');
  49. window.history.pushState('', '', '/search?q=GNU%20FSF&categories=images');
  50. window.history.pushState('', '', '/search?q=hello%20kitty&categories=general');
  51.  
  52. // CSS //
  53. (function() {
  54. let css = `
  55.  
  56. .searxng-navbar {
  57. background: rgba(0, 0, 0, 0);
  58. }
  59.  
  60. .searxng-navbar .instance a {
  61. color: rgb(22, 22, 22);
  62. }
  63.  
  64. .searxng-navbar a, .searxng-navbar a:hover {
  65. color: rgb(22, 22, 22);
  66. }
  67.  
  68. #main-logo {
  69. margin-top: 10vh;
  70. }
  71.  
  72. #categories input[type="checkbox"]:checked + label, .search_categories input[type="checkbox"]:checked + label {
  73. border-bottom: rgb(22, 22, 22) 5px solid;
  74. color: rgb(22, 22, 22);
  75. }
  76.  
  77. .text-muted > small > a {
  78. color: rgb(10, 10, 10) !important;
  79. }
  80.  
  81. .infobox_part {
  82. color: rgb(23, 23, 23);
  83. }
  84.  
  85. .result-content {
  86. color: rgb(62, 62, 62);
  87. }
  88.  
  89. .result-content, .result-format, .result-source {
  90. margin-top: 2px;
  91. margin-bottom: 0;
  92. word-wrap: break-word;
  93. color: color: rgb(38, 38, 38);
  94. font-size: 13px;
  95. }
  96.  
  97. .result_header a .highlight {
  98. color: rgb(11, 11, 11);
  99. }
  100.  
  101. .result_header {
  102. color: rgb(11, 11, 11);
  103. }
  104.  
  105. .result_header a {
  106. color: rgb(32, 32, 32);
  107. }
  108.  
  109. .result_header a:hover {
  110. color: rgb(14, 14, 14);
  111. }
  112.  
  113. .result_header a:visited {
  114. color: rgb(25, 25, 25);
  115. }
  116.  
  117. a:hover {
  118. text-decoration: underline;
  119. }
  120.  
  121. #categories input[type="checkbox"]:checked + label, .search_categories input[type="checkbox"]:checked + label {
  122. border-bottom: rgb(22, 22, 22) 5px solid;
  123. }
  124.  
  125. `;
  126. if (typeof GM_addStyle !== 'undefined') {
  127. GM_addStyle(css);
  128. } else {
  129. let styleNode = document.createElement("style");
  130. styleNode.appendChild(document.createTextNode(css));
  131. (document.querySelector("head") || document.documentElement).appendChild(styleNode);
  132. }
  133. })();
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160. // Hi There (: