Make GitHub Pull Request, Commit, and Blob pages full width

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.

2020/01/10のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
  1. // ==UserScript==
  2. // @name Make GitHub Pull Request, Commit, and Blob pages full width
  3. // @namespace https://bitbucket.org/deadlydog/greasemonkeyscripts
  4. // @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.
  5. // @include https://github.com/*/pull/*/files*
  6. // @include https://github.com/*/commit/*
  7. // @include https://github.com/*/blob/*
  8. // @grant none
  9. // @version 1.0.1
  10. // ==/UserScript==
  11.  
  12. elements = document.getElementsByClassName('container-lg');
  13. for (index = 0; index < elements.length; index++)
  14. {
  15. elements[index].style.maxWidth="95%"; // Only 95% to leave room for the "add comment" tooltip icon.
  16. }