-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstatusbar.js
42 lines (40 loc) · 1.28 KB
/
statusbar.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
// Statusbar above panel
// version 2023.4.0
// https://forum.vivaldi.net/post/652235
// Moves the statusbar above the panel, adds style to fit the theme
// (transparency, blur), and lines up the first and last button.
(function statusbarAbovePanel() {
const css = `
.address-top.tabs-bottom .mainbar > .toolbar-mainbar {
border-bottom-color: transparent !important;
}
#tabs-tabbar-container.bottom {
padding: unset;
}
footer {
background-color: var(--colorBgAlphaBlur) !important;
backdrop-filter: var(--backgroundBlur);
}
footer:has(.toolbar-statusbar) {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.toolbar-statusbar > .button-toolbar:first-of-type > button {
padding-left: 3px;
}
.toolbar-statusbar > .button-toolbar:last-of-type > button {
padding-right: 3px;
}
`;
setTimeout(function wait() {
const footer = document.querySelector("footer");
if (footer) {
const style = document.createElement("style");
style.id = "vm-sap-css";
style.innerHTML = css;
document.getElementsByTagName("head")[0].appendChild(style);
document
.getElementById("main")
.insertBefore(footer, document.querySelector(".inner"));
} else setTimeout(wait, 300);
}, 300);
})();