Revert Dashboard Post Footer

Makes dashboard post footers more like they used to be.

Version au 20/01/2022. Voir la dernière version.

// ==UserScript==
// @name         Revert Dashboard Post Footer
// @namespace    https://greasyfork.org/users/65414
// @description  Makes dashboard post footers more like they used to be.
// @version      0.1
// @match        https://www.tumblr.com/*
// @grant        GM_addStyle
// @locale       en
// @run-at       document-start
// ==/UserScript==

(function() {

  GM_addStyle (`
    #tumblr [aria-label="Post Footer"] {
      display: grid;
      margin-top: 0;
    }
    #tumblr [aria-label="Post Footer"] > * {
      margin: 0px;
    }
    #tumblr [aria-label="Post Footer"] > *:nth-child(1) {
      grid-row: 1;
      grid-column: 1;
    }
    #tumblr [aria-label="Post Footer"] > *:nth-child(2) {
      border-top: none;
      justify-content: end;
      gap: 16px;
      grid-row: 1;
      grid-column: 2;
    }
    #tumblr [aria-label="Post Footer"] > *:nth-child(2) [style*="will-change"] {
      display: none;
    }
    #tumblr [aria-label="Post Footer"] > :nth-child(3) {
      grid-row: 2;
      grid-column: 1 / 3;
    }
    #tumblr [aria-label="Post Footer"] > :nth-child(3) > * {
      margin: 0px;
    }
    #tumblr [aria-label="Post Footer"] [aria-label="Post Activity"],
    #tumblr [aria-label="Post Footer"] > *:nth-child(1),
    #tumblr [aria-label="Post Footer"] > *:nth-child(2) {
      padding: 12px var(--post-padding);
    }
  `);
})();