Collapse the Greasy Fork Header

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

当前为 2019-03-27 提交的版本,查看 最新版本

  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.22
  7. // @run-at document-end
  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.  
  16. 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*//*\n*//*\n*/form.inline-form button.google_oauth2-login {/*\n*/ background-color: #fff;/*\n*/ border: 0;/*\n*/ text-indent: 90000px;/*\n*/ width: 50px;/*\n*/ height: 50px;/*\n*/ padding: 10px;/*\n*/ background-image: url(https://i.imgur.com/6HweuVB.png);/*\n*/ background-size: 50px;/*\n*/ cursor: pointer;/*\n*/}/*\n*//*\n*//*\n*//*\n*/form.inline-form button.gitlab-login {/*\n*/ background-color: #fff;/*\n*/ border: 0;/*\n*/ text-indent: 90000px;/*\n*/ width: 50px;/*\n*/ height: 50px;/*\n*/ padding: 10px;/*\n*/ background-image: url(https://i.imgur.com/lr7CAiS.png);/*\n*/ background-size: 50px;/*\n*/ cursor: pointer;/*\n*/}/*\n*//*\n*/ /*\n*/form.inline-form button.github-login {/*\n*/ background-color: #fff;/*\n*/ border: 0;/*\n*/ text-indent: 90000px;/*\n*/ width: 50px;/*\n*/ height: 50px;/*\n*/ padding: 10px;/*\n*/ background-image: url(https://i.imgur.com/97PDoD0.png);/*\n*/ background-size: 50px;/*\n*/ cursor: pointer;/*\n*/}/*\n*//*\n*//*\n*//*\n*/ /*\n*/ .external-login-container button{ text-indent: -999999px !important ; height: 60px !important ; width: 60px !important ;} #main-header { background-image: linear-gradient(#670000, #840000) !important;} ';
  17.  
  18. document.getElementsByTagName('head')[0].appendChild(style);