您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign
当前为
/* ==UserStyle== @name GitHub - single column with important info on the top @description Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign @namespace myfonj @version 1.0.0 @license CC0 - Public Domain ==/UserStyle== */ @-moz-document domain("github.com") { /* GitHub - single column with important info on the top if this style ceases to work (or has opposite effect), hopefully they reverted that wicked nonsense ("Main content" element is the "last" one. See below.) */ .repository-content > div { flex-direction: column-reverse !important; } .repository-content > div > div { width: auto; } /* This div should be MAIN and should be near H1 or something. It is suffocated at the end of the document in sidebar instead :( */ .repository-content > div > div:last-child > div { display: flex; flex-direction: row; } .repository-content > div > div:last-child > div > div > div { border: none; padding-top: 0; padding-right: 2rem; padding-bottom: 3rem; } /* old-school */ .repository-content > div > div:last-child > div > div:last-child > div { padding-right: 0; } /* "About" heading is superfluous now */ .repository-content > div > div:last-child > div > div:first-child > div > h2 { display: none; } .repository-content > div > div:last-child > div > div:first-child > div > h2 + p { margin-top: 0 !important; } /* shrink contributors list a bit, to give other columns more space */ .repository-content > div > div:last-child > div > div > div > ul.list-style-none.d-flex { max-width: 10.1rem } }