DuckDuckGooglyMoogly

DuckDuckGo in Google Theme

  1. // ==UserScript==
  2. // @name DuckDuckGooglyMoogly
  3. // @namespace http://userstyles.org
  4. // @description DuckDuckGo in Google Theme
  5. // @author Kekebo
  6. // @homepage https://userstyles.org/styles/153678
  7. // @include http://duckduckgo.com/*
  8. // @include https://duckduckgo.com/*
  9. // @include http://*.duckduckgo.com/*
  10. // @include https://*.duckduckgo.com/*
  11. // @run-at document-start
  12. // @version 0.20180103192709
  13. // ==/UserScript==
  14.  
  15. var head = document.getElementsByTagName('head')[0];
  16. var icon = document.createElement('link');
  17.  
  18. icon.setAttribute('type', 'image/x-icon');
  19. icon.setAttribute('rel', 'icon');
  20.  
  21. icon.setAttribute('href', 'data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAArdJREFUOI1Nks1rHWUUxn/nvDPjvR1iEj+wmEgs1k3RglFaFSnxqyLoUumqIAouClX8B1yZtbvixoXURSWKH1BwIVrIosVWrS6CYqk1Vmul1Zh7M/fOzPs+Lua29SwP5/mdw/Mce/19vX3mAs/1fLQQk0wpBjMjc9iqhYDcoY7gBkUeYnDTKPUuPLjAZ7ZvWeu5hvOyEJXaYGZIoqrhzlnDDYZjmCmNUS3+3hIhZJEUQ2PlxaxgOJ9uiBWTLA9w4JGcuhV77gns3Zlx/LuGE2stV7eQUhtEiAWDOY+y1DVQ5thgJA49XXDXrcbR1YY3PxyzfiWxrYATa5GbApaEUAxRIbkhl4SDNVHMls7++zN+WE/MlEYb4YNTDc/szpm7xanbhJsZCBTd+V8ZECUyNx66O3B1KOpWDCpx/nJiMBLBO48kw8xwADMjSQSHagzvfFnz7AMZBx/L2T7tPHpv4MgXNaNG+ARg1i29DjAz2gT9Aj4+3fDG0YrpvnHs8DbOric+/77ltiln3Cbcu3kQLmlyfoe8Ftvqj5FPvmkoMnh+MWPH7c5mJXI3UhJIneqJtwa6DjGoW9i/O2PnHc6lf0S/gAMP51QNvPZexZ8bIg8Q1XnmnSFdc7OCl5dyXtybc+xkw6dnGt79qubgkYrg8MpSQVWLEGxywQTg7sQE/UK8sKfg+LctZ3+J9Atj+4yz9ntk5VTTxZrAENdcdCykCURNhNPnIy8t5Ty+K6Nqugh3zTuLOwIffd2QOQgTEpgne2p5oCiLTgpNMt3cw159suC+eefXK+LyvwkHTv4cWf0pUvZMbSvzEKKTgu1b1m+5hnMyj6YUYhJbNcyWxlSvi+qvTTFqYKpnxCTMQzSl0Fh50RcXWKmtPBfclcxjcGO2NMatuLSR+GOj+8zp/g1xcFdt5bnFBVb+A5/wdpTKPeYpAAAAAElFTkSuQmCC');
  22.  
  23. head.appendChild(icon);
  24.  
  25.  
  26. (function() {var css = [
  27. "@namespace url(http://www.w3.org/1999/xhtml);",
  28. "/* author: qaicks | kekebo */",
  29. "/* last edit: 01/03/18 */",
  30. "",
  31. ".svg .logo_homepage {",
  32. " background-image: url(\"https://www.google.com//images/branding/googlelogo/2x/googlelogo_color_272x92dp.png\") !important;",
  33. " background-size: 249px 90px !important;",
  34. "}",
  35. ".svg .header__logo {",
  36. " background-image: url(\"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png\") !important;",
  37. " background-size: 120px 44px !important;",
  38. " width: 120px!important;",
  39. " height: 60px!important;",
  40. " margin-top: -3px!important;",
  41. " margin-left: -5px!important;",
  42. "}",
  43. ".zcm__link {",
  44. " height: 15px;",
  45. " line-height: 15px;",
  46. " padding: 8px 8px 12px;",
  47. " -webkit-font-smoothing: unset!important;",
  48. " font-weight: 400!important;",
  49. " color: #777!important;",
  50. "}",
  51. ".zcm-wrap--header {",
  52. " margin-left: -5px!important;",
  53. "}",
  54. ".dropdown__button {",
  55. " color: #777!important;",
  56. "}",
  57. ".header--aside__msg,",
  58. ".header--aside__twitter {",
  59. " display: none!important;",
  60. "}",
  61. ".feedback-btn {",
  62. " display: none!important;",
  63. "}",
  64. ".header__button--menu {",
  65. " margin-top: -25px!important;",
  66. "}",
  67. "/*.result__check {",
  68. " display:block!important;",
  69. "}*/",
  70. "",
  71. "body {",
  72. " background: white !important;",
  73. " font-family: arial, sans-serif;",
  74. " color: #222;",
  75. "}",
  76. ".header__logo-wrap {",
  77. " margin-left: 20px;",
  78. " width: 120px;",
  79. "}",
  80. ".module {",
  81. " margin-left: 0px;",
  82. "}",
  83. ".module__body {",
  84. " border-bottom: solid 1px #ebebeb;",
  85. " padding-bottom: 25px;",
  86. "}",
  87. ".module--about__img {",
  88. " padding-left: 0px;",
  89. " padding-bottom: 0px;",
  90. "}",
  91. ".module__title {",
  92. " font-size: 19px;",
  93. " color: rgba(0, 0, 0, .87);",
  94. " line-height: 1.2;",
  95. " font-family: arial, sans-serif-light, sans-serif;",
  96. " font-weight: normal;",
  97. " text-align: left;",
  98. "}",
  99. ".module__text {",
  100. " line-height: 1.24;",
  101. " font-size: 13px;",
  102. " text-align: left;",
  103. " color: #222;",
  104. "}",
  105. ".module__more-at js-about-module-more-at-inline {",
  106. " color: red;",
  107. "}",
  108. ".about-info-box {",
  109. " padding-top: 20px;",
  110. "}",
  111. ".about-info-box__info-row {",
  112. " border-top: none;",
  113. "}",
  114. ".about-info-box__info-label {",
  115. " font-size: 13px;",
  116. " text-align: left;",
  117. " color: #222;",
  118. "}",
  119. ".about-info-box__info-value {",
  120. " line-height: 1.24;",
  121. " font-size: 13px;",
  122. " text-align: left;",
  123. " color: #222;",
  124. "}",
  125. ".header__search {",
  126. " padding-left: 56px;",
  127. " min-width: 634px;",
  128. "}",
  129. "#search_form_homepage,",
  130. "#search_form {",
  131. " /*box-shadow: 0px 1.5px 2px .5px lightgray !important;*/",
  132. " ",
  133. " box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08)!important;",
  134. " background-color: white !important;",
  135. " border-radius: 1.5px !important;",
  136. " transition: all 200ms !important;",
  137. " font-size: 100% !important;",
  138. " border: 0px!important;",
  139. "}",
  140. "#search_form_homepage:hover,",
  141. "#search_form:hover,",
  142. "#search_form_homepage:focus,",
  143. "#search_form:focus,",
  144. ".search__autocomplete {",
  145. " box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08)!important;",
  146. " /*border: 1px solid rgba(0,0,0,0.15);*/",
  147. "}",
  148. "#search_button_homepage,",
  149. "#search_form_input_clear {",
  150. " opacity: 0 !important;",
  151. " transition: all 500ms !important;",
  152. "}",
  153. "#search_button_homepage:hover,",
  154. "#search_form_input_clear:hover,",
  155. "#search_button {",
  156. " opacity: 1 !important;",
  157. " background-color: white !important;",
  158. " color: #4285F4 !important;",
  159. " border-top: 1px solid rgba(0, 0, 0, 0.15);",
  160. " border-bottom: 1px solid rgba(0, 0, 0, 0.15);",
  161. " border-right: 1px solid rgba(0, 0, 0, 0.15);",
  162. "}",
  163. ".zcm {",
  164. " padding-top: 17px;",
  165. " color: #666;",
  166. " font-size: 13px;",
  167. " outline: none;",
  168. " font-family: arial, sans-serif;",
  169. "}",
  170. ".zcm-wrap {",
  171. " padding-left: 150px;",
  172. "}",
  173. ".zcm__link.is-active {",
  174. " color: #4285F4 !important;",
  175. " border-bottom-color: #4285F4 !important;",
  176. " font-weight: bold !important;",
  177. " border-bottom: solid 3px #de5833;",
  178. "}",
  179. ".zcm__link.is-highlighted,",
  180. ".zcm__link:focus {",
  181. " color: #4285F4 !important;",
  182. "}",
  183. ".header-wrap {",
  184. " border-top-width: 0px !important;",
  185. " background-color: #FAFAFA !important;",
  186. " box-shadow: 0px 1px 0px #EBEBEB !important;",
  187. "}",
  188. "#header_wrapper {",
  189. " min-height: 105px;",
  190. "}",
  191. "#header {",
  192. " min-height: 105px;",
  193. "}",
  194. "#duckbar {",
  195. " min-height: 58px;",
  196. "}",
  197. "#links_wrapper {",
  198. " padding-left: 150px;",
  199. "}",
  200. ".result__title {",
  201. " font-size: 18px;",
  202. " margin: 0;",
  203. " padding: 0;",
  204. " font-family: arial, sans-serif;",
  205. " line-height: 1.2;",
  206. " text-align: left;",
  207. " color: #1a0dab;",
  208. " padding-bottom: 2px;",
  209. "}",
  210. ".result__snippet {",
  211. " margin: 0;",
  212. " padding: 0;",
  213. " font-size: small;",
  214. " color: #494949;",
  215. "}",
  216. ".result__icon {",
  217. " display: none;",
  218. "}",
  219. ".result__url {",
  220. " font-size: 14px;",
  221. " color: #006621;",
  222. " font-style: normal;",
  223. " line-height: 16px;",
  224. " font-weight: normal;",
  225. "}",
  226. "a.result__a {",
  227. " font-weight: normal;",
  228. " color: #1a0dab;",
  229. "}",
  230. "a.result__a:visited {",
  231. " font-weight: normal;",
  232. " color: #660099;",
  233. "}",
  234. "b {",
  235. " font-weight: normal;",
  236. "}",
  237. ".msg__line {",
  238. " color: #dd4b39;",
  239. " font-size: 18px;",
  240. "}",
  241. ".js-spelling-suggestion-link {",
  242. " color: #1a0dab;",
  243. " font-size: 18px;",
  244. " cursor: pointer;",
  245. " font-weight: bolder;",
  246. " font-style: italic;",
  247. "}",
  248. ".msg__line--small {",
  249. " font-size: 0.9em;",
  250. " color: #333;",
  251. "}",
  252. ".result {",
  253. " margin-bottom: 0.5em;",
  254. "}",
  255. ".result.highlight {",
  256. " background-color: white !important;",
  257. "}",
  258. ".header--aside {",
  259. " padding-top: 20px;",
  260. "}",
  261. ".header--aside__msg {",
  262. " padding-top: 20px;",
  263. "}",
  264. ".module--news {",
  265. " margin-left: 0px !important;",
  266. "}",
  267. ".cw {",
  268. " max-width: 100%;",
  269. "}",
  270. "/*",
  271. ".result__extras",
  272. "{",
  273. "",
  274. "}",
  275. "*/"
  276. ].join("\n");
  277. if (typeof GM_addStyle != "undefined") {
  278. GM_addStyle(css);
  279. } else if (typeof PRO_addStyle != "undefined") {
  280. PRO_addStyle(css);
  281. } else if (typeof addStyle != "undefined") {
  282. addStyle(css);
  283. } else {
  284. var node = document.createElement("style");
  285. node.type = "text/css";
  286. node.appendChild(document.createTextNode(css));
  287. var heads = document.getElementsByTagName("head");
  288. if (heads.length > 0) {
  289. heads[0].appendChild(node);
  290. } else {
  291. // no head yet, stick it whereever
  292. document.documentElement.appendChild(node);
  293. }
  294. }
  295. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址