MDN: Content first (Header to Footer)

Moves main content to the top, so the header with dropdown menus lands above footer.

2021-08-20 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

/* ==UserStyle==
@name           MDN: Content first (Header to Footer)
@description    Moves main content to the top, so the header with dropdown menus lands above footer.
@namespace      myfonj
@version        1.0.4
@license        CC0 - Public Domain
==/UserStyle== */
@-moz-document domain("developer.mozilla.org") {
 /*
    https://greasyfork.org/en/scripts/409087/versions/new
    2020-12-15 they switched to "signle column grid"
    With explicity set template-row, that matches matural source order.
    Makes no sense to me. Education? Showing off? Questions…
    You know what?
    Flexbox is fine. I think. Natural order, no need to keep track, no overlays.
    2021-03-11 switched to shallow grid with aside and main besides each other
  */
 /*
 § First row (header): move after content
  both header and footer have z-index of 9999
  https://github.com/mdn/yari/blob/c8e3837e2646d4433ad97899afcbd1ced94e3b0f/client/src/ui/organisms/header/index.scss#L58
  increasing is necessary foro dropdowns to not be covered with following footer
 */
 .document-page .page-header {
  grid-row: 8/9; /* was 1/2 */
  z-index: 10000;
 }
 /*
 § Breadcrumbs: stick to top
 */
 .breadcrumb-locale-container {
  margin: 0;
 }
 /* 
 § Breadcrumbs: Hide last (current) item
 Redundant: URL is already in location bar, text is in H1
 * OFF /
 .breadcrumb-locale-container nav li:nth-last-child(1) {
  display: none;
 }
 .breadcrumb-locale-container nav li:nth-last-child(2) a::after{
  --REM: 'caron separator';
  content: none;
 }
 /* */
}