Skip to content

Instantly share code, notes, and snippets.

@debloper
Created July 14, 2014 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debloper/d89175c88d959af47d2f to your computer and use it in GitHub Desktop.
Save debloper/d89175c88d959af47d2f to your computer and use it in GitHub Desktop.
Distraction Free Ingress Intel
// 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