MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. leer0ybr0wn
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    L
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    leer0ybr0wn

    @leer0ybr0wn

    0
    Reputation
    248
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    leer0ybr0wn Unfollow Follow

    Latest posts made by leer0ybr0wn

    • RE: MMM-SoccerLiveScore

      @bminer1 I had the same issue so I made a function to overwrite the headings. It’s done client-side post load so not ideal but it’s a start :-)
      You can change the time interval at which it refreshes (it needs to keep doing this if you cycle through leagues).

      setInterval (changePrem,10000);
      
      function changePrem() {
          var prem = document.querySelector("#module_6_MMM-SoccerLiveScore div.module-content header").innerHTML; 
          var premchange = prem.replace("Pr. League", "Premier League");
          document.querySelector("#module_6_MMM-SoccerLiveScore div.module-content header").innerHTML = premchange;
      }
      

      Make a js file out of this and load it at the bottom of the main index.html file

      posted in Sport
      L
      leer0ybr0wn