GTPlanet TT Assistant

Enhance user info with details about current time trial

Old: v1.5 - 2024-10-30 - Fix connectivity issue with backend service
New: v2.0 - 2025-01-06 - Changed backend configuration. This is a mandatory update. Older versions of the plug-in will no longer work.

  • --- /tmp/diffy20250903-843387-xa5318 2025-09-03 05:54:57.445412596 +0000
  • +++ /tmp/diffy20250903-843387-1a3gjj 2025-09-03 05:54:57.445412596 +0000
  • @@ -2,7 +2,7 @@
  • // @name GTPlanet TT Assistant
  • // @license MIT
  • // @namespace http://www.romeyke.de
  • -// @version 1.5
  • +// @version 2.0
  • // @description Enhance user info with details about current time trial
  • // @match https://www.gtplanet.net/forum/threads/time-trial-discussion.409515/*
  • // @match https://www.gtplanet.net/forum/threads/time-trial-results-and-community-leader-boards.424113/*
  • @@ -21,7 +21,7 @@
  • const myName = document.querySelector('.p-navgroup-link--user').title;
  • names.push(myName);
  • const namesStr = names.join(',');
  • - const data = await fetch(`https://home.romeyke.de:35043/api/entries?gtpNames=${namesStr}&eventFilter=current-all`).then(r => r.json());
  • + const data = await fetch(`https://crome.synology.me:3457/api/entries?gtpNames=${namesStr}&eventFilter=current-all`).then(r => r.json());
  • // navigate to the closest ancestor of the name element that has a class of "message-cell--user" and append a div
  • nameElements.forEach(nameElement => {