Skip to content

Instantly share code, notes, and snippets.

@KBalderson
Created January 26, 2017 18:46
Show Gist options
  • Save KBalderson/f2af82a8b0be6124170403d2df4de51e to your computer and use it in GitHub Desktop.
Save KBalderson/f2af82a8b0be6124170403d2df4de51e to your computer and use it in GitHub Desktop.
Production Application Warning Box
// ==UserScript==
// @name Production Application Warning
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://order.universitytees.com/*
// @match https://order.717ink.com/*
// @match https://order.onpointpromos.com/*
// @match http://sosa.717ink.com/*
// @grant none
// ==/UserScript==
(function() {
'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('' +
'body {' +
' padding-top: 30px;' +
'} ' +
'body:after {' +
' position: fixed;' +
' content: "!! PRODUCTION !!";' +
' z-index: 255;' +
' top: 0;' +
' color: white;' +
' display: block;' +
' background-color: #c14f4b;' +
' height: 30px;' +
' line-height: 30px;' +
' font-weight: bold;' +
' width: 100%;' +
' text-align: center;' +
'}' + '');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment