summaryrefslogtreecommitdiffstats
path: root/.config/qutebrowser/greasemonkey/density-stackexchange.js
blob: 8ed577669dbf24513889178dcb23f2837103a054 (plain) (blame)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147

// ==UserScript==
// @name         density-userstyle
// @match        https://*.stackexchange.com/*
// @match        https://*.stackoverflow.com/*
// @match        https://*.askubuntu.com/*
// @match        https://*.superuser.com/*
// @grant        none
// ==/UserScript==

GM_addStyle(`
  #mainbar,
  .mainbar {
    width: calc(100% - 230px - var(--su-static24));
  }
  #sidebar {
    width: 230px !important;
  }
  .question table,
  .answer table {
    table-layout: fixed;
    width: 100%;
  }
  .js-comment-form-layout td:last-child {
    width: 115px;
  }
  .js-comment-form-layout textarea {
    padding: 0;
    width: 100% !important;
  }
  .comments > table > tfoot > tr:first-child > td:first-child,
  .comments > table > tbody > tr:first-child > td:first-child {
    width: 15px;
  }
  #content,
  .inner-content,
  .answer,
  #answers,
  .post-text,
  .comments,
  #answers-header,
  .post-editor,
  #wmd-preview,
  #questions,
  #header,
  .container {
    width: initial !important;
    max-width: initial !important;
  }
  .wmd-ybutton-bar,
  .wmd-input,
  .grippie {
    width: 100% !important;
  }
  .grippie {
    background-position: 50% -364px !important;
  }
  .votecell {
    width: 45px;
  }
  .page {
    width: unset;
  }
  body {
    --su24: 8px;
    padding-top: 25px;
    --lh-md: var(--lh-md);
    --lh-lg: var(--lh-md);
    --lh-xl: var(--lh-md);
    --lh-xxl: var(--lh-md);
  }
  .s-navigation .s-navigation--item {
    padding: 2px 8px;
  }
  .s-input,
  .s-textarea {
    padding: unset;
  }
  .s-topbar .s-topbar--content .s-topbar--item__unset,
  .s-btn,
  .s-btn.s-btn__xs {
    padding: 2px 8px;
  }
  .s-topbar {
    height: unset;
  }
  .mb8 {
    margin-bottom: 2px !important;
  }
  .mb16 {
    margin-bottom: 4px !important;
  }
  .mt16 {
    margin-top: 4px !important;
  }
  #answers {
    padding-top: unset;
  }
  .space {
    padding-top: 4px;
  }
  .s-sidebarwidget--header {
    padding: 2px;
  }
  .s-sidebarwidget--item {
    margin: 2px;
    padding: 0 !important;
  }
  .s-sidebarwidget--content,
  .s-sidebarwidget--content.s-sidebarwidget__items {
    padding: 4px;
  }
  .py16 {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  #sidebar h4,
  .sidebar h4 {
    margin-bottom: unset;
  }
  .mb24,
  .mb12 {
    margin-bottom: 4px !important;
  }
  .mt8 {
    margin-top: 2px !important;
  }
  .s-post-summary {
    padding: 4px;
  }
  .s-card {
    padding: 4px;
  }
  .subtabs a,
  .filter a {
    padding: 2px;
  }
  .user-info {
    padding: 2px;
  }
  .p12 {
    padding: 2px !important;
  }
  .g8 {
    gap: 2px;
  }
`)
remember that computers suck.