Update esp-fixes.user.js

This commit is contained in:
2021-06-25 08:29:05 +02:00
parent 464c3ffe30
commit 6fa0fdc698

View File

@@ -11,6 +11,17 @@
// @grant GM_getValue // @grant GM_getValue
// ==/UserScript== // ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
// Force popups into new tabs instead // Force popups into new tabs instead
function OnlyTabs(url, width, heigth) { function OnlyTabs(url, width, heigth) {
window.open(url, "_blank"); window.open(url, "_blank");
@@ -29,9 +40,26 @@ function clearViewState(){
document.getElementById("__EVENTVALIDATION").value = null; document.getElementById("__EVENTVALIDATION").value = null;
} }
var css = `
.sidebar {
flex 0 1 12%;
}
.sidebar .panel-heading {
padding: 2px 10px;
}
.sidebar .nav > li > a {
padding: 0;
}
`;
(function () { (function () {
'use strict'; 'use strict';
// Add custom CSS
addGlobalStyle(css);
// Never open Popup windows // Never open Popup windows
NewWindowWithoutControls = OnlyTabs NewWindowWithoutControls = OnlyTabs