about summary refs log tree commit diff
path: root/links/~meet
blob: 6e23601ff8bbd0c5e199dfd90c948c0834d4c073 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="fediverse:creator" content="@robertgzr@toot.berlin">
		<link rel="stylesheet" type="text/css" href="links/main.css">
	</head>
	<body>
		<script>
			'use strict'
			function common() {
				return '?' + [
				'r=gzr_' + Math.random().toString(36).substring(2),
				'chroma=000',
				'st=6',
				'cssb64=' + btoa('*{border-radius:2px !important;transition:none !important;}')
				].join('&')
			}
			function link() {
				switch (window.location.pathname.split('/').at(-1)) {
					case "~meet":
					return `https://vdo.ninja/${common()}&webcam&mini`
					case "~call":
					return `https://vdo.ninja/${common()}&miconly`
					case "~send":
					return `https://vdo.ninja/${common()}&fileshare`
					default:
					return `https://vdo.ninja/${common()}`
				}
			}
			window.location.replace(link())
		</script>
	</body>
</html>