Last active
August 29, 2015 14:22
-
-
Save jasonleonhard/5f0e672ee57207a36f2b to your computer and use it in GitHub Desktop.
Google Calendar Improved
This file contains hidden or 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
/* GOOGLE CALENDAR Improved | |
You use google calendar right? Try this for fun (it is really quick): | |
open google chrome, | |
type command-Shift-C, | |
hit escape twice to see the console, | |
then paste this whole message in | |
and hit enter: | |
You can then hit command-shit-i to remove the console.... | |
Just refresh if you don't like it... and it will go away. */ | |
function GC_hide(){ | |
// move margin | |
var m = document.getElementById("mainbody").setAttribute("style", "margin-left:0px;"); | |
//remove classes | |
// var c1 = document.getElementsByClassName("gb_5b")[0]; c1.remove(); | |
var c1 = document.getElementsByClassName("gb_5b")[0].setAttribute("style", "display:none"); | |
var c2 = document.getElementsByClassName("applogo")[0].setAttribute("style", "display:none"); | |
//remove ids | |
var h1 = document.getElementById("topRightNavigation").setAttribute("style", "display:none"); | |
var h2 = document.getElementById("terms-and-privacy").setAttribute("style", "display:none"); | |
var h3 = document.getElementById("nav-footer").setAttribute("style", "display:none"); | |
}; | |
GC_hide(); | |
function GC_show(){ | |
// move margin | |
var m = document.getElementById("mainbody").setAttribute("style", "margin-left:184px;"); | |
//remove classes | |
var c1 = document.getElementsByClassName("gb_5b")[0].setAttribute("style", "display:block"); | |
var c2 = document.getElementsByClassName("applogo")[0].setAttribute("style", "display:block"); | |
//remove ids | |
var h1 = document.getElementById("topRightNavigation").setAttribute("style", "display:block"); | |
var h2 = document.getElementById("terms-and-privacy").setAttribute("style", "display:block"); | |
var h3 = document.getElementById("nav-footer").setAttribute("style", "display:block"); | |
}; | |
//GC_show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment