Greasy Fork is available in English.

DynamoAlarm

🌲kattn

// ==UserScript==
// @name        DynamoAlarm
// @namespace   Zweitmarkt Alarm
// @match       *://karten.dynamo-dresden.de/*
// @grant       none
// @version     1.8.777
// @author      -
// @description 🌲kattn
// ==/UserScript==

function main() {
  const bodyEl = document.body.textContent.toLowerCase();
  if (bodyEl.includes("1. ligaheimspiel")) {
    if (bodyEl.includes("zweitmarkt")) {
      new Audio("http://dl.dropboxusercontent.com/scl/fi/3901qni32qqrwzimcb6vg/alarm.mp3?rlkey=6pvo79inlqhhgxrzmftbo7h9f&st=istrp926&dl=0").play()

      document.getElementsByTagName("body")[0].style = "background: green";
    } else {
      setTimeout(() => {
        location.reload()
      }, 5000)
    }
  }
}

window.addEventListener("load", function() {
  main();
});