Save Streetview image on Google Maps

Wanted to say a Google Maps Streetview image - without all the buttons and tags.

Use the code below, then use Snipping Tool to save the image.

Note: the only problem are the new hover icons, I couldn't get the event listeners removed - they disappear anyway a few seconds after the mouse is out of the frame, so not a major problem.

Hit F12 to open inspector, then go to Console and copy/paste the code below to make the buttons disappear!

// hide extra bits on the map
document.getElementById("minimap").style.display="none";
document.getElementById("watermark").style.display="none";
document.getElementById("titlecard").style.display="none";
document.getElementById("runway-expand-button").style.display="none";
document.getElementById("compass").style.display="none";
document.getElementById("zoom").style.display="none";
document.getElementById("streetviewcard").style.display="none";
// hide other elements
var footer=document.getElementsByClassName("scene-footer-container");
var bottom= document.querySelectorAll("app-bottom-content-anchor"); 
var buttons= document.getElementsByTagName('button');
for(var i = 0, len = footer.length; i < len; i++) { 
footer[i].style.display="none";
}
for(var i = 0, len = bottom.length; i < len; i++) { 
bottom[i].style.display="none";
}
for(var i = 0, len = buttons.length; i < len; i++) { 
buttons[i].style.display="none";
}

Leave a Reply