Skip to content

Instantly share code, notes, and snippets.

@mrtns
Last active September 6, 2016 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtns/c90e11881c4b804b0b1ef631e9c5d5ae to your computer and use it in GitHub Desktop.
Save mrtns/c90e11881c4b804b0b1ef631e9c5d5ae to your computer and use it in GitHub Desktop.
A tampermonkey script to improve the output of sense.io consoles
// ==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