MDN: Content first (Header to Footer)

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

20.08.2021 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

/* ==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;
 }
 /* */
}