Skip to content

Instantly share code, notes, and snippets.

@AntMooreWebDev
Last active November 2, 2016 13:58
Show Gist options
  • Save AntMooreWebDev/ddff7976f16a18720f4931f86e44d02d to your computer and use it in GitHub Desktop.
Save AntMooreWebDev/ddff7976f16a18720f4931f86e44d02d to your computer and use it in GitHub Desktop.
This hides all elements on the Google Maps page with a class of "noprint". It also hides the Minimap and Popular Times sections, which are undesirable for screenshots.
// Run this in the browser console window to prep Google Maps for screenshotting.
javascript: (function(e, s) {
e.src = s;
e.onload = function() {
jQuery.noConflict();
jQuery('.noprint,#minimap,.section-popular-times').hide();
};
document.head.appendChild(e);
})(document.createElement('script'), '//code.jquery.com/jquery-latest.min.js')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment