JSFiddle - React, Tailwind, and code Playground

by dynamis

JavaScript

var matches = navigator.userAgent.match(/Android.+Gecko.+Firefox\/(\d+)\./);
var connection = navigator.connection || navigator.mozConnection;

if (matches) {
    // Android Firefox
    if (matches[1] > 10 && connection && connection.bandwidth < Infinity) {
        // NativeUI Android Firefox
        alert("キャンペーン参加ありがとう!")
    } else {
        alert("生まれ変わった Firefox でアクセスしてね!")        
    }
} else {
    // PC Firefox or other browsers
    alert("Android 版の Firefox でアクセスしてね!")
}