谷歌搜索结果居中

Center the Google search results.

  1. // ==UserScript==
  2. // @name 谷歌搜索结果居中
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.3
  5. // @description Center the Google search results.
  6. // @author GDUFXRT
  7. // @match https://www.google.com/search*
  8. // @run-at document-start
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. var style = document.createElement('style');
  15. var cssStyle = '@media(min-width:1410px){#extabar {display: flex;justify-content: center;} #slim_appbar {width: 1280px;margin-left:0;padding-left: 150px;box-sizing: border-box;} #searchform .tsf{margin:0 auto}#hdtb-s{display:flex;justify-content:center}.mw{margin:0 auto}#fbar{text-align:center}#topabar{max-width:1197px;margin:0 auto;min-width:1100px}.K1fSEd{text-align:center;}';
  16.  
  17. style.innerText = cssStyle;
  18. document.querySelector('head').appendChild(style);
  19. })();

QingJ © 2025

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