您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Display very large sticky `lock` icon.
- // ==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);
- }
- })();