• Superb@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 months ago

      I guess I understand wanting to focus on other platforms since every device with safari also has a maps app, but the website is supposed to work on an iPad?

      They should’ve at least put a redirect to the native version instead of the browser unsupported message.

  • LinkA
    link
    fedilink
    arrow-up
    8
    ·
    5 months ago

    I thought this was already a thing. DuckDuckGo has been using Apple Maps for a while

  • 2xsaiko@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    5 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