Greasy Fork is available in English.

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.

Από την 10/01/2020. Δείτε την τελευταία έκδοση.

  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.0
  10. // ==/UserScript==
  11.  
  12. elements = document.getElementsByClassName('container-lg');
  13. for (index = 0; index < elements.length; index++)
  14. {
  15. elements[index].style.width="95%"; // Only 95% to leave room for the "add comment" tooltip icon.
  16. }