Skip to content

Instantly share code, notes, and snippets.

View hooftly's full-sized avatar

Matt Hooft hooftly

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hooftly on github.
  • I am hooftly (https://keybase.io/hooftly) on keybase.
  • I have a public key ASCRFkMn5HQnbH5y5mINxwNPhSZtQi2_U1FHCDW-cX7gcgo

To claim this, I am signing this object:

@hooftly
hooftly / Redirect
Last active November 23, 2023 20:51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script>
function getMobileOperatingSystem() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
// Windows Phone must come first because its UA also contains "Android"
if (/windows phone/i.test(userAgent)) {