Created
July 14, 2014 11:05
-
-
Save debloper/d89175c88d959af47d2f to your computer and use it in GitHub Desktop.
Distraction Free Ingress Intel
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
// Here are the elements we don't need to see | |
// Feel free to remove the ones you _do_ need | |
var elements = [ | |
"header", | |
"comm", | |
"geotools", | |
"game_stats", | |
"player_stats", | |
"bottom_right_stack", | |
"portal_filter_header", | |
"butterbar", | |
"footer" | |
] | |
// Let's chuck those elements in the gutter | |
for (var i in elements) { | |
$("#" + elements[i]).style.display = "none" | |
} | |
// Now, some style tweaks for maximizing real-estate | |
var mapStyles = { width: "100%", height: "100%", left: 0, top: 0 } | |
// Let's apply that on map-container, for the win! | |
for (var i in mapStyles) { | |
$("#dashboard_container").style[i] = mapStyles[i] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment