Last active
November 2, 2016 13:58
-
-
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.
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
// 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