您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
resizes github repos for smaller window widths.
当前为
- // ==UserScript==
- // @name githubwidth
- // @version 0.1
- // @description resizes github repos for smaller window widths.
- // @match http://github.com/*
- // @match https://github.com/*
- // @match http://*.github.com/*
- // @match https://*.github.com/*
- // @namespace https://greasyfork.org/users/<my_id_here>
- // @run-at document-idle
- // @require https://code.jquery.com/jquery-latest.min.js
- // ==/UserScript==
- $("nav.mt-0")[0].hidden = true;
- $("table.files").map(function(n, t) {
- t.style.tableLayout = "fixed";
- // table>thead>tr>th
- ths = t.children[0].children[0].children;
- ths[0].style.width = "32px"; // icon
- ths[1].style.width = "192px"; // filename
- ths[3].style.width = "128px"; // mtime
- })
- $(".min-width-lg").map(function(i, node) {
- node.style.minWidth = "0";
- })