Skip to content

Instantly share code, notes, and snippets.

@blockloop
Created November 3, 2022 19:46
Show Gist options
  • Save blockloop/7c786659dc3cdc329ecb876029053296 to your computer and use it in GitHub Desktop.
Save blockloop/7c786659dc3cdc329ecb876029053296 to your computer and use it in GitHub Desktop.
Tampermonkey Grafana Preview Alerts Table Size
// ==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)
})();
@blockloop
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment