Skip to content

Instantly share code, notes, and snippets.

@mrtns
Last active April 7, 2016 21:05
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/2ebdea9633d108534ef3 to your computer and use it in GitHub Desktop.
Save mrtns/2ebdea9633d108534ef3 to your computer and use it in GitHub Desktop.
Domo TV Mode Tampermonkey Script
// ==UserScript==
// @name Domo Page TV Mode
// @version 0.3
// @description Turns a Domo page into a TV info radiator pretty mode. Hides the navigation, page header controls UI elements, and card controls UI elements.
// @match https://*.domo.com/page/*
// @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('#nav { display: none; }');
addGlobalStyle('.app-body { top: 0; }');
addGlobalStyle('.app-body.subnav-visible { top: 0; }');
addGlobalStyle('.page-header .controls { display: none; }');
addGlobalStyle('.card-title-edit { width: 500px !important }');
addGlobalStyle('dm-lock { display: none; }');
addGlobalStyle('.kpiframe .footer { display: none; }');
addGlobalStyle('.page-header { display: none; }');
@mrtns
Copy link
Author

mrtns commented Nov 27, 2015

Usage:

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