🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/09 14:52:49
🔄 下次更新时间:2026/01/09 15:52:49
手动刷新缓存

Google search "old style"

Change style in google search results page to look like the old design

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

/* ==UserStyle==
@name:fr      Google page de résultats "classique"
@name         Google search "old style"
@namespace    https://github.com/Procyon-b
@version      1.2.14
@description:fr  Change le style dans la page de résultats de google pour ressembler à l'ancien design (2019, sans icône)
@description  Change style in google search results page to look like the old design
@author       Achernar
@license      CC BY-NC 4.0
@preprocessor stylus

@var checkbox hide-favicon 'Hide favicons' 1
@var checkbox rmv-title    'Remove site title' 1
@var checkbox invert-lines 'Invert lines' 1
@var checkbox font-size    'Reduce results font size' 1
@var range    font-sizeV   '  size' [0.9, 0.7, 1, 0.01]
@var checkbox get-ws       'Recover whitespace' 1
@var checkbox head-mg      '  Title margin' 1
@var range    line-h       "  Text's line height" [1.48, 1.0, 1.7, .01]
@var range    bottom-mg    '  Bottom margin' [15, 0, 30, 1, 'px']
@var checkbox set-font     'Change font' 0
@var text     font-f       '  Font family' 'arial,sans-serif'
==/UserStyle== */
@-moz-document regexp("^https:\\/\\/www.google\\..*?\\/search\\?.*") {
/* version 20230220.1 v1.2.12 */
/* google real values are: (20210626) line-h 1.57/1.58 - bottom-mg 27/30 */

/* font family */
if set-font {
  .std, .g, .g h3 {
    font-family: font-f !important;
    letter-spacing: 0;
  }
}

/* reduce result blocks font size */
if font-size {
  .g {
    --font-sizeV: font-sizeV;
    --sz-norm: 14px;
    --sz-gblk: 16px;
    --margin-b: 27px;
    zoom: font-sizeV;
  }
  .g .g {
    zoom: unset;
  }
  /* target firefox as an alternative to "zoom" */
  @supports (-moz-appearance: none) {
    .g {
      font-size: calc(var(--font-sizeV) * var(--sz-norm));
      margin-bottom: calc(var(--font-sizeV) * var(--margin-b)) !important;
    }
    .g.g-blk span > span {
      font-size: calc(var(--font-sizeV) * var(--sz-gblk));
    }
    .g cite {
      font-size: calc(var(--font-sizeV) * var(--sz-norm));
    }
    .g h3 {
      font-size: calc(var(--font-sizeV) * 20px) !important;
    }
  }
}

/* hide result favicon */
if hide-favicon {
  .g img[height="16"][src*="data:image"][width="16"],
  .g div.yuRUbf a > h3 + div > .H9lube, .g div.yuRUbf a + div > div > span /*20230220*/,
  .g div.DhN8Cf a > h3 + div > .H9lube, .g div.DhN8Cf a + div > div > span /*20230413 variation*/ {
    display: none;
  }
}

/* hide site title 202302 */
if rmv-title or invert-lines {
  .g div.yuRUbf a > h3 + div > div > span, .g div.yuRUbf a + div > div > div > span,
  .g div.DhN8Cf a > h3 + div > div > span, .g div.DhN8Cf a + div > div > div > span /*20230413 variation*/ {
    display: none;
  }
  .g div.yuRUbf a > h3,
  .g div.DhN8Cf a > h3 /*20230413 variation*/ {
    margin-top: 0;
  }
  .g div.yuRUbf a + div > div:first-child + div,
  .g div.DhN8Cf a + div > div:first-child + div /*20230413 variation*/ {
    margin-top: 0;
  }
  if hide-favicon or invert-lines {
    .g div.yuRUbf a + div > div:first-child + div,
    .g div.DhN8Cf a + div > div:first-child + div /*20230413 variation*/ {
      margin-top: -0.4em;
    }
  }
}

/* invert the 2 lines */
if invert-lines {
  .g div.r > a > br:first-child ~ h3,
  .g .rc > div.yuRUbf > a > br:first-child ~ h3,
  .g .tF2Cxc div.yuRUbf > a > br:first-child ~ h3,
  .g .jtfYYd div.yuRUbf > a > br:first-child ~ h3,
  .g .GLI8Bc div.yuRUbf > a > br:first-child ~ h3,
  .g > div.yuRUbf > a > br:first-child ~ h3,
  .g > div.Y3iVZd g-link > a > br:first-child ~ h3,
  .g div.ct3b9e > a > br:first-child ~ h3,
  .g div.yuRUbf a > br:first-child ~ h3,
  .g div.DhN8Cf a > br:first-child ~ h3 /*20230413 variation*/ {
    display: block;
  }
  .g div.r > a > br:first-child ~ h3 ~ div,
  .g .rc > div.yuRUbf > a > br:first-child ~ h3 ~ div,
  .g .tF2Cxc div.yuRUbf > a > br:first-child ~ h3 ~ div,
  .g .jtfYYd div.yuRUbf > a > br:first-child ~ h3 ~ div,
  .g .GLI8Bc div.yuRUbf > a > br:first-child ~ h3 ~ div,
  .g > div.yuRUbf > a > br:first-child ~ h3 ~ div,
  .g > div.Y3iVZd g-link > a > br:first-child ~ h3 ~ div,
  .g div.ct3b9e > a > br:first-child ~ h3 ~ div,
  .g div.yuRUbf a > br:first-child ~ h3 ~ div,
  .g div.DhN8Cf a > br:first-child ~ h3 ~ div /*20230413 variation*/ {
    position: static;
    margin-top: -0.2em;
  }
  .g div.r > a > br:first-child ~ h3 ~ div *,
  .g .rc > div.yuRUbf > a > br:first-child ~ h3 ~ div *,
  .g .tF2Cxc div.yuRUbf > a > br:first-child ~ h3 ~ div *,
  .g .jtfYYd div.yuRUbf > a > br:first-child ~ h3 ~ div *,
  .g .GLI8Bc div.yuRUbf > a > br:first-child ~ h3 ~ div *,
  .g > div.yuRUbf > a > br:first-child ~ h3 ~ div *,
  .g > div.Y3iVZd g-link > a > br:first-child ~ h3 ~ div *,
  .g div.ct3b9e > a > br:first-child ~ h3 ~ div *,
  .g div.yuRUbf a > br:first-child ~ h3 ~ div *,
  .g div.DhN8Cf a > br:first-child ~ h3 ~ div * /*20230413 variation*/ {
    color: green !important;
  }
  .g div.r > a > br:first-child,
  .g .rc > div.yuRUbf > a > br:first-child,
  .g .tF2Cxc div.yuRUbf > a > br:first-child,
  .g .jtfYYd div.yuRUbf > a > br:first-child,
  .g .GLI8Bc div.yuRUbf > a > br:first-child,
  .g > div.yuRUbf > a > br:first-child,
  .g > div.Y3iVZd g-link > a > br:first-child,
  .g div.ct3b9e > a > br:first-child,
  .g div.yuRUbf a > br:first-child,
  .g div.DhN8Cf a > br:first-child /*20230413 variation*/ {
    display: none;
  }
  .g div.r > a ~ div,
  .g .rc > div.yuRUbf > a ~ div,
  .g .tF2Cxc div.yuRUbf > a ~ div,
  .g .jtfYYd div.yuRUbf > a ~ div,
  .g .GLI8Bc div.yuRUbf > a ~ div,
  .g > div.yuRUbf > a ~ div,
  .g > div.Y3iVZd g-link > a ~ div,
  .g div.yuRUbf a ~ div,
  .g div.DhN8Cf a ~ div /*20230413 variation*/ {
    position: static;
    margin-top: -1.7em;
    height: auto;
  }

  .g > div.Y3iVZd > div > .M42dy {
    margin-bottom: 0;
  }

  .g h3 + div .GvPZzd, .g a + div div .GvPZzd {
    font-size: var(--sz-norm);
    line-height: 1.3rem;
  }
  .g h3 + div .byrV5b, .g a + div div .byrV5b {
    padding-top: 1px;
  }
}

/* whitespace */
if get-ws {
  if head-mg {
    .g div.r > a > br:first-child ~ h3,
    .g .rc > div.yuRUbf > a > br:first-child ~ h3,
    .g .tF2Cxc div.yuRUbf > a > br:first-child ~ h3,
    .g .jtfYYd div.yuRUbf > a > br:first-child ~ h3,
    .g .GLI8Bc div.yuRUbf > a > br:first-child ~ h3,
    .g > div.yuRUbf > a > br:first-child ~ h3,
    .g > div.Y3iVZd g-link > a > br:first-child ~ h3,
    .g div.ct3b9e > a > br:first-child ~ h3,
    .g div.yuRUbf a > br:first-child ~ h3,
    .g div.DhN8Cf a > br:first-child ~ h3 {
      margin-bottom: -1px;
    }
    if invert-lines {
    }
  }
  if line-h != 1.57 {
    .g .st, .g .s > div,
    .g .rc .aCOpRe, .g .rc .IsZvec > div,
    .g .tF2Cxc .aCOpRe, .g .tF2Cxc .IsZvec > div, .g.tF2Cxc .IsZvec > div,
    .g .jtfYYd > [data-content-feature],
    .g .GLI8Bc > [data-content-feature],
    .g .dXiKIc > div *,
    .g div > [data-content-feature="1"],
    .g div > .Z26q7c:not(:first-child) /*20230422*/ {
      line-height: line-h;
    }
  }
  if bottom-mg != 27px {
    .g {
      --margin-b: bottom-mg;
      margin-bottom: bottom-mg !important;
    }
    /*sub-result 20220824*/
    .g ul.FxLDp {
      padding-top: 0;
    }
  }

}

/* to prevent the userstyle from disappearing from stylus menu when all options are disabled */
.none {
  dummy:1;
}

}