Hi!
Ich hab ein Script geschrieben, welches euch beim ersten Klick auf der Seite verbal begrüßt.
.
JavaScript
// ==UserScript==
// @name Say hello to the Player!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.rettungssimulator.online
// @match https://rettungssimulator.online
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
/* global $ */
(function() {
'use strict';
var clicked = false;
$("body").on("click", function(){
if(clicked) return;
var msg = new SpeechSynthesisUtterance();
var voices = window.speechSynthesis.getVoices();
msg.voice = voices[0];
msg.voiceURI = '';
msg.volume = 1;
msg.rate = 1;
msg.pitch = 1;
msg.text = `Hallo ${$(".username").text()}, du hast ${parseInt($(".call-next").text()) + 1} offene Anrufe. Es gibt ${$(".mission-list-icon-1").length} rote Einsätze!`;
msg.lang = 'de-DE';
speechSynthesis.speak(msg);
clicked = true;
});
})();
Alles anzeigen
Viel Spaß!