Last active
June 2, 2017 18:10
-
-
Save a-pasquale/b1d075e497ee8e265ba899bb9ed88883 to your computer and use it in GitHub Desktop.
no_school.js
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 No School! | |
// @namespace https://holyokecodes.org/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Andrew Pasquale | |
// @match https://www.hps.holyoke.ma.us/ | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.2.1.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var color = '#dc1b05'; | |
var message = 'School is Closed Today'; | |
$('body').prepend('<style>div#banner { position: absolute; top: 0; left: 0; background-color: ' + color +'; width: 100%; z-index:999999999999; }div#banner-content {padding: 40px; color: white; font-size: 2em;} div#main-content { padding-top: 100px;}</style><div id="banner"><div id="banner-content"><center>'+message+'</center></div></div><div id="main-content"></div>'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment