This repository has been archived by the owner on Aug 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompact-editor.user.js
65 lines (55 loc) · 1.93 KB
/
compact-editor.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
// ==UserScript==
// @name Compact Editor for Scratch 3
// @description Makes the Scratch 3 editor ever so slighlty more compact.
// @version 0.1
// @namespace https://github.com/forkphorus/cat-plus
// @homepageURL https://github.com/forkphorus/cat-plus#readme
// @match https://scratch.mit.edu/projects/*
// @grant GM_addStyle
// @run-at document-end
// ==/UserScript==
GM_addStyle(`
.gui_target-wrapper_36Gbz {
padding-top: 0.25rem !important;
}
.sprite-info_row-primary_10JrS {
margin-bottom: 0 !important;
}
.sprite-info_sprite-input_17wjb {
width: 5rem !important;
}
.sprite-info_larger-input_1UEs0 input {
width: 3rem !important;
}
.sprite-info_icon-wrapper_3Wbqq {
width: calc(1.4rem + 2px) !important;
height: calc(1.4rem + 2px) !important;
padding: 0.2rem !important;
}
.sprite-info_sprite-info_3EyZh {
padding: 0.4rem !important;
padding-bottom: 0.2rem !important;
}
div.sprite-info_row_1om5V:nth-child(1) > div:nth-child(1) > label:nth-child(1) > span:nth-child(1),
div.sprite-info_row_1om5V:nth-child(1) > div:nth-child(2) > div:nth-child(1),
div.sprite-info_row_1om5V:nth-child(1) > div:nth-child(3) > div:nth-child(1),
div.sprite-info_row_1om5V:nth-child(2) > div:nth-child(1) > label:nth-child(1),
div.sprite-info_larger-input_1UEs0:nth-child(3) > label:nth-child(1) > span:nth-child(1),
div.sprite-info_larger-input_1UEs0:nth-child(2) > label:nth-child(1) > span:nth-child(1),
div.sprite-info_row_1om5V:nth-child(1) > div:nth-child(2) > label:nth-child(2) > span:nth-child(1),
div.sprite-info_row_1om5V:nth-child(1) > div:nth-child(3) > label:nth-child(2) > span:nth-child(1),
.label_input-label_3KjCa,
.label_input-label_3KjCa {
display: none !important;
}
div.sprite-info_row_1om5V:nth-child(2),
div.sprite-info_row_1om5V:nth-child(1) {
display: inline-flex !important;
}
div.sprite-info_row_1om5V:nth-child(1) {
transform: translateY(-4px) !important;
}
.sprite-selector_scroll-wrapper_3NNnc {
height: 100% !important;
}
`);