Gist Compact View

Add custom styles to Sergi0's Gist pages

Від 13.03.2025. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Gist Compact View
// @namespace    http://tampermonkey.net/
// @version      1
// @description  Add custom styles to Sergi0's Gist pages
// @author       Sergi0
// @match        https://gist.github.com/*
// @grant        GM_addStyle
// @icon         https://gist.github.com/favicon.ico
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    GM_addStyle(`
         /* main container */
        .gist-snippet {margin-bottom:2px!important;}
         /* icon */
        #gist-pjax-container > div > div > div.col-9.col-md-9.col-12 > div > div.gist-snippet-meta.d-flex.flex-lg-row.flex-column.width-full > div > div.d-lg-inline-block.d-none.v-align-top.mt-1 > a{display:none!important;}
        /* code */
        .gist-snippet .js-gist-file-update-container.js-task-list-container {display: none;}
        /* links */
        #gist-pjax-container > div > div > div.col-9.col-md-9.col-12 > div > div.gist-snippet-meta.d-flex.flex-lg-row.flex-column.width-full > div > div.d-inline-block.px-lg-2.px-0 > span:nth-child(1){display:none;}
        /* date */
        #gist-pjax-container > div > div > div.col-9.col-md-9.col-12 > div > div.gist-snippet-meta.d-flex.flex-lg-row.flex-column.width-full > div > div.d-inline-block.px-lg-2.px-0 > div {display:none}
        /* font size */
        #gist-pjax-container > div > div > div.col-9.col-md-9.col-12 > div > div.gist-snippet-meta.d-flex.flex-lg-row.flex-column.width-full > div > div.d-inline-block.px-lg-2.px-0 > span.f6.color-fg-muted{font-size:14px!important;}
    `);
})();