Last active
April 7, 2016 21:05
-
-
Save mrtns/2ebdea9633d108534ef3 to your computer and use it in GitHub Desktop.
Domo TV Mode Tampermonkey Script
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 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; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Domo Page TV Mode
scriptdomo-tv-mode.user.js
file: https://gist.github.com/mrtns/2ebdea9633d108534ef3/raw/domo-tv-mode.user.jsDomo Page TV Mode
script