• 2xsaiko
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 month 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