您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix style in google search results page
当前为
- /* ==UserStyle==
- @name Google search "old style"
- @namespace https://github.com/Procyon-b
- @version 1.0.3
- @description Fix style in google search results page
- @author Achernar
- @license CC BY-NC 4.0
- @preprocessor stylus
- @var checkbox hide-favicon 'Hide favicons' 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]
- ==/UserStyle== */
- @-moz-document regexp("^https:\\/\\/www.google\\..*?\\/search\\?.*") {
- /* version 20200119.2130 */
- /* reduce result blocks font size */
- if font-size {
- .g {
- --font-sizeV: font-sizeV;
- --sz-norm: 14px;
- --sz-gblk: 16px;
- /*zoom: 90%;*/
- zoom: font-sizeV;
- }
- @supports (-moz-appearance: none) {
- .g {
- font-size: calc(var(--font-sizeV) * var(--sz-norm));
- margin-bottom: calc(var(--font-sizeV) * 27px);
- }
- .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 {
- img[height="16"][src*="data:image"][width="16"] {
- display: none;
- }
- }
- /* invert the 2 lines */
- if invert-lines {
- br + h3 {
- position: relative;
- top: -1.2em;
- }
- div.r > a > div:first-child {
- position: relative;
- top: 1.9em;
- }
- div.r > a > div:first-child * {
- color: green;
- }
- div.r > a + div {
- top: 1.9em;
- }
- }
- /* to prevent the userstyle from disappearing from stylus menu when all options are disabled */
- .none {
- dummy:1;
- }
- }