Collapse the Greasy Fork Header

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

当前为 2018-08-17 提交的版本,查看 最新版本

// ==UserScript==
// @name        Collapse the Greasy Fork Header
// @namespace   english
// @description Collapse the Greasy Fork Header - remove image, make title text smaller and more subdued 
// @include     http*://*greasyfork.org*
// @version     1.19
// @run-at document-start
// @grant       GM_addStyle
// ==/UserScript==

// Main - Collapse the Greasy Fork Header

var style = document.createElement('style');
style.type = 'text/css';

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://lh3.googleusercontent.com/E88kEAkFDxx0wrHQnyP9cyg4jo_gDUT4qfhhGj4Pktkc7bdg0bTBVfy6atij0cuYLsoAiZv5OuG0gpQFpRoIQkM3Oq8pG4rqik98_lLbxNcOY8lZdDdWb6qluABFQOZ-KngerH1g_MxK5ad9aFEfznQtfhYuV5LJj2fs-kcFj_xGyj0oSuKAVJh98uwZHdfvtPbT749i29DpxGRwMBthQcq8ZKofpeb4A0Iag98F3FW-eLPCO2sZ_eMrlywSA30VzqCpImtnCpnQHNMAjZCitiK4oV0dmvAFf6MQThVJuaPuB3-_6NBQNrbBIK9uxjX_vOHYYqldN1DA1PdgbDnYER_Mw_LdorO5V8yQhmGiNFi2WpUgzcNvpPmgTXv2qyaEh02mAD23p43U9qp9W7lYKfG8AbFM_T0g77Lkw1XaC0RtPZ_Tr6mu7W4teVPNmmBHCpdip0e0pA2O1fkIcNBdH-QODRHY59pKnc4tiQ-80LY3fH3I9Nvu1Hs87W7xK0OsZyES8v_C2Gc_OBtp-JiaZtvMR3Fgu61AC220W9Zh2HVvb0EIKsctaPjRUyJloqGAaD2wr82PRePSqnTDrWBDVp_QxzhLVgGSCv5afqvM=s200-no);/*\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://lh3.googleusercontent.com/Dq2rCE2eRDFw8D2H3n5X4oHw316mFKaWa3YfEUDQS_Bceb30ydmdTU43PDoDLo3H_Vzb7AcPsI2a3GB2igZ4U-KMOTXWJHUrRWMzWRwzDC85zYlOeUZ-3VGzyNCnkdfA1d2h8Gh5gy8OqvmiO9T63ZVHVVBQNbQ2ujQi60Kdu68fYmhhIehCsYzowLp_vddw35IBEO6iVRm3AYVC3g01FDBJuxA2wA7BvNC5Cab3CBjVpupDX6xPKhJNkvhyhZhaJh0l7kCkkmo5V3VVJuMIg1QVuhkVBgYkSB9sKGc04T3bvSPZS2Q3WAyml5fgPwGewOGkyve4gKZ-jLXxb8QJ4wwcg4-nXyYLHggMHgCmuikH9aUpCXXG6cnicvIE3CYW6RmDDSQuBsNFtEuDSMbmLJKaViCrFL6WFt91x_qB0PhuIu9vLCuir0LU-0OBP9tUvompupf2ZEYnOLFEPXSSMgQ6xxFxe8rgbuyVA1jr9ne8asAQan7l8BRO93K7A6zdG4Iajx8KVJrqQ7EImnBi39Ax6FwLELharv4iJMx5kEQTTjF9kyW-rRSMA7DamGLFDDLL8-24dCtyFeNX8_taxfq9_24F7qyV_o60jAsA=s180-no);/*\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://lh3.googleusercontent.com/QgWP8dnDA99qQgY4VqDLokIc9iEXaIEItMiZjXUKHeBuT4eEVDPUEQnvNZvTTxOdcFLvDhiLqT6VhV0Vth5MLSDmhu3Ht2JlMFvkxbDHbc82TLMrhlN--ejSp9d5_Pp9Bq6Yx9UXKKUoNGDDBBHrvDs3gYhLUczd5MM0fhTTea7FN6RCQOv2sj0kpJydeAdv4MkGjYIuYWMOI-j-7NZGMU9muNYR-BpeT4--PAuuLalNF14VTr2f735Ptfm3LdQesgdPSDKQY6FbjPF7SkvFZFbYgng3-vfyH790DhCh_jFp1Lq-TMv1-s24v2qqFd_14wzzaJXv9S3RVWFqlzvC3uuJzzd4gEVMHFcBMPHwHGX7tUq0L4T251WFcjFCX0PE3DWosegayKd3G2vCONfgbxkiMsUs-PiSSPxlI52tjJ7ab_8c9_JwkhUACO5a54bb8AYI1qfomvSv0u3TNJHoNkexm21RFoG3vw1mlp3DoIissOJ9KTF4IwBE0dzs9zIedHsgaDcX0g8eOGisUPSNtn8yjucsgAoPl5IGBdY-1bIwTPkGRQ6DAj1xC_GX7Dv-Z4aCrJiVCSIH9qRQdLNUKHAvE-66BJKw_GY_YXRj=s200-no);/*\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 ;}           ';

document.getElementsByTagName('head')[0].appendChild(style);