您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Center the Google search results.
// ==UserScript== // @name 谷歌搜索结果居中 // @namespace http://tampermonkey.net/ // @version 1.3 // @description Center the Google search results. // @author GDUFXRT // @match https://www.google.com/search* // @run-at document-start // @grant none // ==/UserScript== (function() { 'use strict'; var style = document.createElement('style'); 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;}'; style.innerText = cssStyle; document.querySelector('head').appendChild(style); })();