Last active
September 6, 2016 14:02
-
-
Save mrtns/c90e11881c4b804b0b1ef631e9c5d5ae to your computer and use it in GitHub Desktop.
A tampermonkey script to improve the output of sense.io consoles
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 Sense.io Embetter Output | |
// @version 0.5 | |
// @description Embetters the output of the sense.io console | |
// @match https://*.cloudfront.net/dashboard.*.html?origin=https%3A%2F%2Fsense.io | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
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); | |
} | |
addGlobalStyle('.dashboard-html { max-width: 100%; }'); | |
addGlobalStyle('.dashboard-html > div { max-width: 100% !important; max-height: 100% !important; }'); | |
addGlobalStyle('.dataframe { font-family: monospace; font-size: x-small; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment