Collapse the Greasy Fork Header

Collapse the Greasy Fork Header - remove image, make title text smaller and more subdued

当前为 2016-01-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Collapse the Greasy Fork Header
  3. // @namespace english
  4. // @description Collapse the Greasy Fork Header - remove image, make title text smaller and more subdued
  5. // @include http*://*greasyfork.org*
  6. // @version 1.17
  7. // @run-at document-start
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. // Main - Collapse the Greasy Fork Header
  12.  
  13. var style = document.createElement('style');
  14. style.type = 'text/css';
  15. style.innerHTML = ' #site-name img { display: none !important;}#main-header h1 { font-size: 32px !important; line-height: 150% !important;}#site-name a { font-size: 32px !important; line-height: 150% !important;}#Head #site-name-text h1 { line-height: 0.1em;}form.inline-form button.browser_id-login{ background-color: #fff;/*\n*/ border: 0;/*\n*/ text-indent: 90000px;/*\n*/ width: 50px;/*\n*/ height: 50px;/*\n*/ padding: 10px;/*\n*/ background-image: url(http://i.imgur.com/xtSWc9s.png); /*\n*/ background-size: 50px;/*\n*/ cursor: pointer;}/*\n*//*\n*/form.inline-form button.github-login{ background-color: #fff;/*\n*/ border: 0;/*\n*/ text-indent: 90000px;/*\n*/ width: 50px;/*\n*/ height: 50px;/*\n*/ padding: 10px;/*\n*/ background-image: url(http://i.imgur.com/0yhimDh.png); /*\n*/ background-size: 50px;/*\n*/ cursor: pointer;}/*\n*//*\n*/form.inline-form button.google_oauth2-login{ background-color: #fff;/*\n*/ border: 0;/*\n*/ text-indent: 90000px;/*\n*/ width: 50px;/*\n*/ height: 50px;/*\n*/ padding: 10px;/*\n*/ background-image: url(http://i.imgur.com/Fil271f.png); /*\n*/ background-size: 50px;/*\n*/ cursor: pointer;}/*\n*/ ';
  16. document.getElementsByTagName('head')[0].appendChild(style);