-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWide GitHub.user.js
More file actions
74 lines (63 loc) · 2.6 KB
/
Copy pathWide GitHub.user.js
File metadata and controls
74 lines (63 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"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-2024, 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.6.6
// @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
// ==/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;" +
"}" +
"";
(function () {
var s = document.createElement('style');
s.type = "text/css";
s.innerHTML = styleSheet;
(document.head || document.documentElement).appendChild(s);
})();