Github Gist Compact View

Add custom styles to Sergi0's Gist pages

2025-03-13 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Github 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;}
    `);
})();