-
Notifications
You must be signed in to change notification settings - Fork 0
/
outlook.user.js
106 lines (88 loc) · 2.2 KB
/
outlook.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// ==UserScript==
// @name Outlook Online whitespace remover
// @description Removes all redundant whitespace from mailbox view
// @downloadURL https://github.com/dnelson-1901/greasemonkey-scripts/raw/master/outlook.user.js
// @version 1.2021.10.05.1
// @grant GM_addStyle
// @include https://outlook.office.com/*
// @include https://outlook.office365.com/*
// @include https://outlook.live.com/*
// ==/UserScript==
this.GM_addStyle = (aCss) => {
'use strict';
let head = document.getElementsByTagName('head')[0];
if (head) {
let style = document.createElement('style');
style.setAttribute('type', 'text/css');
style.textContent = aCss;
head.appendChild(style);
return style;
}
return null;
};
var css = `
/* index header */
._12RFwqyytlNdLGTEvbkGEF, /* old */
.R13rCAdCs2xraNrPX7bVq, /* current */
zz {
padding: unset !important;
}
/* index line */
._3NWSCOrMG7qAJvS4DNJDxC, /* old */
.kShdRtQbaZr987nI2CuD5, /* old */
.VRsPBiUohxRKvkOKoyH9O, /* old */
._3RNhHhUHeoKc1ufD-hcz7q, /* old */
._316svK5096JRBjmaETrl2_, /* old */
._2FcNRal5hM-Af4xO2znaeJ, /* current */
zz {
height: auto !important;
}
/* index group line */
._3am_5-Qakpw6Y1uciOunxX, /* old */
._3Ib_26e5i7pKHbAhry3OpA, /* old */
div[role="heading"], /* current */
zz {
height: auto !important;
background-color: inherit !important;
}
/* index checkbox column */
._2mUsG1A3iMqm06ISyGknWQ, /* old */
._2Cj0mOm3MaOSjSdUp5B4_7, /* old */
._2xkBpjoOewQl-YKzYlwpxg, /* current */
zz {
min-height: auto !important;
}
/* regular button column */
._2J2xhHNDKTaEc2jsqXOSwx,
zz {
height: auto !important;
}
/* hover button column */
._24HWQfh2dYswYUsTsCac5t,
zz {
height: auto !important;
}
/* subject column */
.YWkvAfVxfWoYoGc_xj-4c, /* old */
._1kjvmojDabff5PKSUKF8FM, /* old */
.WMC3lvisWmjP1pJq8OiwG, /* current */
zz {
height: auto !important;
}
/* folder list */
._2DD-RIgHo7Z3_Rr8o0zxLz, /* old */
._34_bqC0c1-8H3B0lGzop-9, /* old */
.qDw7SZ9r6S7r0_qZS1aIG, /* old */
._2f5JzhIau1fYVnCdnF6jed, /* current */
zz {
height: auto !important;
}
/* remove thin scrollbar */
.customScrollBar,
body,
zz {
scrollbar-width: auto !important;
scrollbar-color: auto !important;
}
`;
GM_addStyle(css);