Simplified Github Homepage

Hide useless components and only display my repos on Github homepage

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Simplified Github Homepage
// @namespace    http://tampermonkey.net/
// @version      0.0.1
// @description  Hide useless components and only display my repos on Github homepage
// @author       akiyiwen
// @match        https://github.com/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    GM_addStyle(`
        html, body, body>div:first-child, div.application-main, div.color-bg-default, div.feed-background {
            height: 100%;
            width: 100%;
        }
        body>div:first-child, div.color-bg-default {
            display: flex;
            flex-direction: column;
        }
        div.feed-background {
            min-height: 0!important;
        }
        div.application-main div.feed-background>div {
            display: none;
        }
        aside.feed-left-sidebar {
            margin: 20px auto;
            border-radius: 5px;
            width: 768px;
            height: 768px;
        }
        div.js-repos-container ul {
            max-height: 512px;
            overflow: auto;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 5px;
        }
        div.js-repos-container ul li {
            flex: 0 0 24%;
            height: 75px;
            border-radius: 5px;
        }
        div.js-repos-container ul li>div {
            height: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            margin: 0!important;
            padding: 1em;
        }
        div.js-repos-container ul li.private {
            background-color: #644044;
        }
        div.js-repos-container ul li.public {
            background-color: #3d444d;
        }
    `);
    setTimeout(() => {
        document.querySelector("div.js-repos-container button")?.click();
    }, 2048);
})();