forked from xthexder/wide-github
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwide-github.user.js
87 lines (80 loc) · 2.86 KB
/
wide-github.user.js
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
75
76
77
78
79
80
81
82
83
84
85
86
87
(function () {
"use strict";
if (document.getElementById('js-repo-pjax-container')) {
var s = document.createElement('style');
s.type = "text/css";
s.innerHTML = ".container {" +
"width:90% !important;" +
"min-width:980px;" +
"}" +
".repository-content {" +
"width:100% !important;" +
"margin-right: auto !important;" +
"}" +
// Repository sidebar
".repository-with-sidebar {" +
"margin-left:60px;" +
"}" +
".repository-with-sidebar.with-full-navigation {" +
"margin-left:190px;" +
"}" +
".repository-with-sidebar .repository-content {" +
"margin-left:-60px;" +
"}" +
".repository-with-sidebar.with-full-navigation .repository-content {" +
"margin-left:-190px;" +
"}" +
// Repository sidebar (with .split-diff)
".split-diff .repository-with-sidebar {" +
"padding-right:0px !important;" +
"}" +
".split-diff .repository-with-sidebar .repository-sidebar {" +
"margin-right:0px !important;" +
"}" +
// Repository Issues
".repository-content .discussion-timeline {" + // Issue body
"margin-right:-160px;" +
"padding-right:160px;" +
"width:100% !important;" +
"}" +
".repository-content .discussion-timeline .timeline-new-comment {" + // New Issue / issue comment form
"max-width:100% !important;" +
"}" +
".repository-content .inline-comments .comment-holder {" + // Diff / code comments
"max-width:none !important;" +
"}" +
".repository-content .inline-comments .inline-comment-form-container {" +
"max-width:none !important;" +
"}" +
".repository-content .inline-comments .inline-comment-form {" +
"max-width:none !important;" +
"}" +
// Repository pulse page
".repository-content .boxed-group-inner .summary-stats {" + // Overview PR / Issue counts
"display:table;" +
"width:100%;" +
"}" +
".repository-content .boxed-group-inner .summary-stats li {" +
"width:25% !important;" +
"}" +
".repository-content .authors-and-code .section {" + // Contributors bar graph
"width:50%;" +
"}" +
".repository-content .authors-and-code .section svg {" +
"width:100%;" +
"}" +
// Repository graph page
".repository-content .capped-card {" + // Graph cards on contributors / graph list
"margin:10px 10px 0 0 !important;" +
"}" +
".repository-content .traffic-graph-stats .summary-stats {" + // Traffic view / visitor count
"display:table;" +
"width:100%;" +
"}" +
".repository-content .traffic-graph-stats .summary-stats li {" +
"width:50% !important;" +
"}" +
"";
(document.head || document.documentElement).appendChild(s);
}
})();