Emphasize private repo for GitHub

Display very large sticky `lock` icon.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Emphasize private repo for GitHub
// @namespace    http://kyanny.me/
// @version      0.1
// @description  Display very large sticky `lock` icon.
// @author       Kensuke Nagae
// @match        https://github.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    if (document.querySelectorAll('h1.private').length > 0) {
        var svg = document.querySelector('svg.octicon.octicon-lock').cloneNode(true);
        svg.setAttribute('height', 160);
        svg.setAttribute('width', 120);
        var div = document.createElement('div');
        div.style.position = 'fixed';
        div.style.top = '60px';
        div.style.left = '60px';
        div.appendChild(svg);
        document.body.appendChild(div);
    }
})();