I haven't had any luck getting the track to break on freerider.app, it is possible that it is a mod that is causing it?
as for anything teleports, @Pie42 is the authority on that, so possibly he'll whip something up. but feel free to use this userscript in the meantime:
// ==UserScript==
// @name Teleport Matcher
// @version 0.1
// @description Connects teleports in FRHD.
// @author 1s3k3b
// @match https://freerider.app/*
// @grant none
// ==/UserScript==
let lastHref;
setInterval(() => {
if (window.location.href !== lastHref) {
lastHref = window.location.href;
const i = setInterval(() => {
if (!GameManager.game) return;
clearInterval(i);
const { canvas, currentScene: scene } = GameManager.game;
const ctx = canvas.getContext('2d');
const toScreen = x => scene.track.physicsLines[0].p1.__proto__.toScreen.apply(x, [scene]);
createjs.Ticker.on('tick', () => scene.track.powerups.map(x => {
if (!x.otherPortal) return;
const pos = toScreen(x);
const other = toScreen(x.otherPortal);
ctx.beginPath();
ctx.strokeStyle = '#e56af0';
ctx.lineWidth = scene.camera.zoom * 2;
ctx.moveTo(pos.x, pos.y);
ctx.lineTo(other.x, other.y);
ctx.stroke();
}));
});
}
});