-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub.js
27 lines (24 loc) · 827 Bytes
/
github.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
// ==UserScript==
// @name Github Wiki Width Adjust
// @version 0.1
// @match https://github.com/*
// @copyright 2014 CooperLuan
// @run-at document-end
// ==/UserScript==
$('.header .container').css('width', '90%');
$('.pagehead .container').css('width', '90%');
$($('.main-content .container')[1]).css('width', '90%');
$("#js-pjax-container .container").css('width', '90%');
function adjust_main() {
if ($('.repository-with-sidebar').hasClass('with-full-navigation') === true) {
$('#js-repo-pjax-container').css('width', '89%');
} else {
$('#js-repo-pjax-container').css('width', '97%');
}
$('.discussion-timeline').css('width', '89%');
$('.timeline-new-comment').css('max-width', '100%');
};
adjust_main();
$( document ).ajaxComplete(function() {
adjust_main();
});