this post was submitted on 25 Jul 2024
32 points (92.1% liked)

Apple

17497 readers
149 users here now

Welcome

to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!

Rules:
  1. No NSFW Content
  2. No Hate Speech or Personal Attacks
  3. No Ads / Spamming
    Self promotion is only allowed in the pinned monthly thread

Lemmy Code of Conduct

Communities of Interest:

Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple

Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode

Community banner courtesy of u/Antsomnia.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] 2xsaiko@discuss.tchncs.de 2 points 3 months ago* (last edited 3 months ago)

I tried to get it to work in Firefox by changing the user agent but it only works if you make the window small enough (???). Even trying to hack patch their stupid redirect away with the userscript below leaves the map empty if you resize above a certain size so there's probably actually something they're doing that doesn't work.

Userscript

// ==UserScript==
// @name        New script apple.com
// @namespace   Violentmonkey Scripts
// @match       https://beta.maps.apple.com/*
// @grant       none
// @version     1.0
// @author      -
// @description 2024-07-25, 15:04:37
// ==/UserScript==

(() => {
  const realSetTimeout = window.setTimeout;

  window.setTimeout = (f, t) => {
    const err = Error();

    if (err.stack.includes("mapNodeDidFail")) {
      console.log(f, t, err);
      return;
    }

    realSetTimeout(f, t);
  };
})();

EDIT: this is probably the same issue as the scaling one on the iPhone