全屏版Github Trending

加强版Github Trending

2023-02-15 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         全屏版Github Trending
// @license MIT
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  加强版Github Trending
// @author       twfb
// @match        https://github.com/trending*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant        none
// ==/UserScript==

function change(){
    document.querySelector('main div.Box').style="position: fixed;bottom: 0;left: 0;z-index: 999;width: 100vw;height: 100vh;overflow: scroll;padding: 0 10vw 0 10vw"
    let rows = document.querySelectorAll('.Box-row');
    for(let i=0;i<rows.length;i++){rows[i].style.width='26vw'}
    document.querySelector('main div.Box > div:nth-child(2)').style = 'display: flex;flex-wrap: wrap;'
}


(function() {
    'use strict';
    change()
    let currentPage = location.href;
    setInterval(function()
                {
        if (currentPage != location.href && location.href.includes('https://github.com/trending'))
        {
            currentPage = location.href;
            change()
        }
    }, 500);
})();