How to Find Your Most-Viewed Video on Google Maps

Hey @WilfriedB and @PrasadVR, I was able to build a quick one-liner that automatically hides photos and only shows videos

Tested it on PrasadVR’s photo contributions:

Here’s the code:

Array.from(document.getElementsByClassName(“m6QErb XiKgde “)[3].children).forEach((e) => {
let hasVideo = Boolean(e.querySelector(”.xUc6Hf[aria-label=Video]”))
if (!hasVideo) {
e.style = “display: none”
}
})

I’m debating if I should make a new user script or add the feature to Enhanced Edits (there’s a lot of code) :thinking: