NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
"use strict";
// ==UserScript==
// @name Wide GitHub
// @namespace https://github.com/xthexder/wide-github
// @description Change all GitHub repository and gist pages to be full width and dynamically sized.
// @author xthexder
// @copyright 2013-2025, xthexder (https://github.com/xthexder)
// @contributor Jason Frey (https://github.com/Fryguy)
// @contributor Marti Martz (https://github.com/Martii)
// @contributor Paul "Joey" Clark (https://github.com/joeytwiddle)
// @contributor Robert Laverty (https://github.com/roblav96)
// @contributor Amir Meimari (https://github.com/amirmeimari)
// @license MIT; https://raw.githubusercontent.com/xthexder/wide-github/master/LICENSE
// @version 1.7.1
// @icon https://raw.githubusercontent.com/xthexder/wide-github/master/icons/icon.png
// @homepageURL https://github.com/xthexder/wide-github
// @supportURL https://github.com/xthexder/wide-github/issues
// @match https://github.com/*
// @match https://gist.github.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
var styleSheet = "" +
// General full-page container
"body:not(.wgh-disabled) .application-main .container-xl {" +
"max-width: none !important;" +
"}" +
// General content sub-container
"body:not(.wgh-disabled) .application-main .container-lg {" +
"max-width: none !important;" +
"margin-left: 0px !important;" +
"}" +
// Repository home sidebar
"body:not(.wgh-disabled) .react-repos-overview-margin {" +
"margin-right: 0;" +
"}" +
// Commit History and Branches page
"body:not(.wgh-disabled) #js-repo-pjax-container div[style^=\"--sticky-pane-height:\"] > div[class^='Box-sc-']:first-child {" +
"max-width: none;" +
"}" +
// Repository Tags page
"body:not(.wgh-disabled) .application-main .col-11 {" +
"width: 100%;" +
"}" +
// Issue list Assignee alignment
"body:not(.wgh-disabled) #js-repo-pjax-container .js-issue-row .text-right {" +
"max-width: 303px !important;" +
"}" +
// New React layout (2024)
// Issues list page
"body:not(.wgh-disabled) .application-main div[style^=\"--sticky-pane-height:\"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) > div[class^='Box-sc-'] {" +
"max-width: none;" +
"}" +
// Issue page
"body:not(.wgh-disabled) #js-repo-pjax-container div[data-target=\"react-app.reactRoot\"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] {" +
"max-width: none;" +
"}" +
// New React layout (2025)
// Issues list page
"body:not(.wgh-disabled) .application-main div[data-target=\"react-app.reactRoot\"] div[class^='prc-PageLayout-Content-'] > div[class^='Box-sc-'] {" +
"max-width: none;" +
"}" +
// Issues list page (July 2025)
"body:not(.wgh-disabled) .application-main div[data-target=\"react-app.reactRoot\"] div[class^='ThreePanesLayout-module__ThreePanesLayoutMiddleOnlyPane-'] {" +
"max-width: none;" +
"}" +
// Issue page
"body:not(.wgh-disabled) .application-main div[data-target=\"react-app.reactRoot\"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] {" +
"max-width: none;" +
"}" +
// Issue page (July 2025)
"body:not(.wgh-disabled) .application-main div[data-target=\"react-app.reactRoot\"] div[class^='IssueViewer-module__issueViewerContainer-'] > div[class^='Box-sc-'] {" +
"max-width: none;" +
"}" +
// New issue page
"body:not(.wgh-disabled) .application-main div[data-target=\"react-app.reactRoot\"] div[class^='IssueCreatePage-module__createPaneContainer-'] {" +
"max-width: none;" +
"}" +
// Commit list page
"body:not(.wgh-disabled) .application-main div[data-target=\"react-app.reactRoot\"] div[class^='prc-PageLayout-PageLayoutWrapper-'] {" +
"max-width: none;" +
"}" +
"";
(function () {
var s = document.createElement('style');
s.type = "text/css";
s.innerHTML = styleSheet;
(document.head || document.documentElement).appendChild(s);
})();