Skip to content

Instantly share code, notes, and snippets.

@runxel
Last active July 5, 2025 18:49
Show Gist options
  • Save runxel/b23f77e0f9f7d06ccd1cb74392a92fd6 to your computer and use it in GitHub Desktop.
Save runxel/b23f77e0f9f7d06ccd1cb74392a92fd6 to your computer and use it in GitHub Desktop.
Clean your Google Maps and Google Streetview for better exploring. Use it as a bookmarklet.
javascript: (function () { var ids = ["titlecard", "omnibox-container", "vasquette", "assistive-chips", "QA0Szd"]; var hidden = (window.getComputedStyle(document.getElementById(ids[0]))).getPropertyValue("display"); var sceneFooters = document.querySelectorAll(".scene-footer"); var buttons = sceneFooters[0].querySelectorAll("button"); var problemSpan = document.querySelector('span[jstcache="307"]'); if (hidden !== "none") { var disp = "none"; document.getElementsByClassName('app-viewcard-strip')[0].style.visibility = 'hidden'; } else { var disp = ""; document.getElementsByClassName('app-viewcard-strip')[0].style.visibility = ''; }; for (var i = 0; i < ids.length; i++) { document.getElementById(ids[i]).style.display = disp; }; buttons.forEach(function (button) { button.style.display = disp; }); problemSpan.style.display = disp; })();
@runxel
Copy link
Author

runxel commented May 8, 2020

Inspired by and based on Dave Maps bookmarklet version, sadly not updated in a while and not working any longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment