diff --git a/files/KeePass_DB.kdbx b/files/KeePass_DB.kdbx index bc10dcc..1dd72ea 100644 Binary files a/files/KeePass_DB.kdbx and b/files/KeePass_DB.kdbx differ diff --git a/files/hosts b/files/hosts index d3cae8e..06135b9 100644 --- a/files/hosts +++ b/files/hosts @@ -16,6 +16,8 @@ 127.0.0.1 twitter.com 127.0.0.1 google.cz 127.0.0.1 www.google.cz +127.0.0.1 youtu.be +127.0.0.1 www.youtu.be # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback diff --git a/files/index.php b/files/index.php index 9437596..bd29e1a 100644 --- a/files/index.php +++ b/files/index.php @@ -28,10 +28,18 @@ $nitter_instances = [ 'https://nitter.snopyta.org', ]; +$host_parts = explode('.', $host); + +$host = ($host_parts[0] === 'www') ? $host_parts[1] . '.' . $host_parts[2] : $host_parts[0] . '.' . $host_parts[1]; + switch ($host) { case 'youtube.com': redirect($invidious_instances[random_int(0, count($invidious_instances) - 1)], $_SERVER['REQUEST_URI']); break; + case 'youtu.be': + $request_uri = '/watch?v=' . substr($_SERVER['REQUEST_URI'], 1); + redirect($invidious_instances[random_int(0, count($invidious_instances) - 1)], $request_uri); + break; case 'pastebin.com': redirect($privatebin_instances[random_int(0, count($privatebin_instances) - 1)]); break; @@ -56,3 +64,4 @@ switch ($host) { } ?> + diff --git a/files/start.sh b/files/start.sh index 3017fbc..d9fa763 100644 --- a/files/start.sh +++ b/files/start.sh @@ -7,6 +7,7 @@ sudo ifconfig wlp3s0 up #Connect to wireguard server sudo wg quick up contabo #Clear output +clear echo Connect to the internet and press any key, system will be updated afterwards. #Wait for input read dummy diff --git a/setup.sh b/setup.sh index 306ea29..b6ed731 100644 --- a/setup.sh +++ b/setup.sh @@ -16,6 +16,7 @@ sudo apt install -y snapd sudo snap install keepassxc sudo snap install codium sudo snap install netbeans --classic +sudo snap install discord #Install wget sudo apt install -y wget apt-transport-https