Created
November 3, 2022 19:46
-
-
Save blockloop/7c786659dc3cdc329ecb876029053296 to your computer and use it in GitHub Desktop.
Tampermonkey Grafana Preview Alerts Table Size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Grafana Preview Alerts Table | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Grow the size of the Grafana Alerts Preview table so that it is legible. | |
// @author blockloop | |
// @match https://*.grafana.net/alerting/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=grafana.net | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function addStyle(cssCode) { | |
const head = document.querySelector('head') | |
if (head) { | |
const style = document.createElement('style') | |
style.type = 'text/css' | |
style.innerHTML = cssCode | |
head.appendChild(style) | |
} | |
} | |
window.setTimeout(function() { | |
addStyle(` | |
/* tampermonkey */ | |
.css-1loi3u5 { | |
min-height: 500px !important; | |
} | |
`) | |
} , 2) | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/