您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes the GitHub Pull Request, Commit, and Blob pages span the full width of the browser, rather than maxing out at the default ~900 pixels.
当前为
// ==UserScript== // @name Make GitHub Pull Request, Commit, and Blob pages full width // @namespace https://bitbucket.org/deadlydog/greasemonkeyscripts // @description Makes the GitHub Pull Request, Commit, and Blob pages span the full width of the browser, rather than maxing out at the default ~900 pixels. // @include https://github.com/*/pull/*/files* // @include https://github.com/*/commit/* // @include https://github.com/*/blob/* // @grant none // @version 1.6.1 // ==/UserScript== elements = document.getElementsByClassName('container'); for (index = 0; index < elements.length; index++) { elements[index].style.width="95%"; // Only 95% to leave room for the "add comment" tooltip icon. } elements = document.getElementsByClassName('repository-content context-loader-container'); for (index = 0; index < elements.length; index++) { elements[index].style.width="96%"; } // Remove the restriction that hides file names from view over a certain length, to use the available width of the element. elements = document.getElementsByClassName('css-truncate css-truncate-target'); for (index = 0; index < elements.length; index++) { elements[index].style.maxWidth="100%"; }