Google Card-Style UI

Greatly Beautify Google UI!

当前为 2016-05-03 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Google Card-Style UI
// @description Greatly Beautify Google UI!
// @author      Fei Sun
// @version     1.0.8
// @include     http://www.google.*/*
// @include     https://www.google.*/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @grant       GM_getValue
// @grant       GM_setValue
// @grant       GM_deleteValue
// @grant       GM_xmlhttpRequest
// @namespace https://greasyfork.org/users/35010
// ==/UserScript==
var cssblock=document.createElement("div");
/*jshint multistr: true */
var csstext="<style>body {\
  background:#f9f9f9;\
}\
* {\
  font-family:'Segoe UI','Microsoft YaHei'!important;\
}\
div.col,div.col *,div.g {\
  box-sizing:border-box;\
}\
.g {\
  background:white;\
  padding:20px;\
  box-shadow:0px 1px 2px rgba(0,0,0,0.1);\
  margin-bottom:10px!important;\
  margin-right:0px;\
  transition:all 0.5s;\
  position:relative;\
}\
.g:hover {\
  box-shadow:0px 1px 15px rgba(0,0,0,0.1);\
}\
.sfbg.nojsv .sfbgg {\
  background:white!important;\
}\
#searchform {\
  position:fixed!important;\
}\
#top_nav,.appbar {\
  box-shadow:0px 1px 2px rgba(0,0,0,0.1);\
}\
.appbar {\
  margin-top:59px;\
  border-bottom:none;\
}\
.appbar.hdtb-ab-o {\
}\
#top_nav {\
  position:fixed;\
  top:59px;\
  width:100%;\
  z-index:100;\
}\
body.vasq #hdtbMenus.hdtb-td-o {\
  height:44px;\
  box-shadow:0px 1px 2px rgba(0,0,0,0.1);\
  box-sizing:border-box;\
}\
#cnt {\
  width:100%;\
}\
.mw {\
  width:100%;\
  max-width:100%!important;\
}\
#rcnt {\
  width:100%!important;\
  box-sizing:border-box;\
}\
#rcnt .col:nth-child(3) {\
  width:65%!important;\
  min-width:582px;\
  margin-left:6%;\
}\
#rcnt .col:nth-child(4) {\
  width:23%!important;\
  float:left;\
  padding-top:6px;\
}\
#rhs .rhsvw {\
  width:100%;\
}\
.kp-blk {\
  box-shadow:none;\
}\
#center_col {\
  width:100%!important;\
  min-width:0px!important;\
  margin-left:0px!important;\
  padding-top:0px!important;\
}\
#rhscol {\
  width:20%!important;\
  min-width:200px;\
  float:right;\
}\
#rhs {\
  margin-left:0px!important;\
}\
.kp-blk._Jw._Rqb._RJe {\
  margin:0px!important;\
}\
.s {\
  max-width:100%;\
}\
h3.r:after {\
  content:'';\
  display:block;\
  border-top:1px solid #ebebeb;\
  height:0px;\
  margin-top:5px;\
  margin-bottom:5px;\
}\
#center_col .kp-blk {\
  margin-left:0px;\
  margin-right:0px;\
}\
.kno-ftr {\
    margin: 0 -35px 0 -8px;\
    padding: 4px 40px 0;\
}\
.related-question-pair>div>div>div>div {\
  padding-top:10px!important;\
}\
._U7g._grf {\
  padding-top:10px;\
  padding-bottom:10px;\
}\
#extrares {\
  background:transparent;\
  padding:8px!important;\
}\
#botstuff {\
  background:white;\
  padding:20px;\
  box-shadow:0px 1px 2px rgba(0,0,0,0.1);\
  transition:all 0.5s;\
  position:relative;\
}\
#botstuff:hover {\
  box-shadow:0px 1px 15px rgba(0,0,0,0.1);\
}\
._Ugf {\
  overflow:hidden;\
}\
a._Eu._H2 {\
  display:block;\
  width:100%!important;\
  background:white;\
  padding:20px;\
  box-shadow:0px 1px 2px rgba(0,0,0,0.1);\
  transition:all 0.5s;\
  position:relative;\
}\
a._Eu._H2:hover {\
  box-shadow:0px 1px 15px rgba(0,0,0,0.1);\
}\
div#bcenter {\
  display:none;\
}\
/*remove ads*/\
div#tads {\
  display:none;\
}\
div#bottomads {\
  display:none;\
}\
img#hplogo {\
  box-sizing:content-box;\
}\
ol#ab_ctls * {\
  box-sizing:content-box!important;\
}\
g-snapping-carousel {\
  margin-left:12px;\
  margin-right:12px;\
}\
#foot {\
  width:calc(100% - 16px)!important;\
  margin-left:8px;\
  box-sizing:border-box;\
  padding:1px;\
}\
#fbarcnt {\
  padding-left:30%;\
}\
#footcnt {\
  background:#f2f2f2;\
  border-top:1px solid #e4e4e4;\
}\
#fbar {\
  border-top:none;\
  min-width:0px;\
}\
#rhs .kp-blk {\
  margin:0px;\
}\
div#subform_ctrl {\
  margin-top:0px;\
}\
</style>";
cssblock.innerHTML=csstext;
(function () {
    if (window.location.href.search('tbm=isch')==-1) {
document.body.appendChild(cssblock);}
})();