Google search "old style"

Fix style in google search results page

2020-01-19 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

/* ==UserStyle==
@name         Google search "old style"
@namespace    https://github.com/Procyon-b
@version      1.0.2
@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 {
      font-size: calc(var(--font-sizeV) * var(--sz-gblk));
    }
    .g cite {
      font-size: calc(var(--font-sizeV) * var(--sz-norm));
    }
    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;
}

}