<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Mobile User-Agent</title>
<style>
body{
font-family:Arial,sans-serif;
background:#f5f5f5;
padding:40px;
}
.container{
max-width:900px;
margin:auto;
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 0 10px rgba(0,0,0,.2);
}
textarea{
width:100%;
height:150px;
font-size:15px;
}
button{
padding:12px 20px;
margin-top:15px;
cursor:pointer;
}
</style>
</head>
<body>
<div class="container">
<h2>Random Mobile User-Agent Generator</h2>
<textarea id="ua"></textarea><br>
<button onclick="randomUA()">Generate New</button>
<button onclick="copyUA()">Copy</button>
</div>
<script>
const agents = [
"Mozilla/5.0 (Linux; Android 14; SM-S921B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.7204.92 Mobile Safari/537.36",
"Mozilla/5.0 (Linux; Android 14; Pixel 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.7204.92 Mobile Safari/537.36",
"Mozilla/5.0 (Linux; Android 14; Xiaomi 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.7204.92 Mobile Safari/537.36",
"Mozilla/5.0 (Linux; Android 14; OnePlus 12) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.7204.92 Mobile Safari/537.36",
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1"
];
function randomUA(){
let ua=agents[Math.floor(Math.random()*agents.length)];
document.getElementById("ua").value=ua;
}
function copyUA(){
navigator.clipboard.writeText(document.getElementById("ua").value);
alert("Copied!");
}
randomUA();
</script>
</body>
</html>
0 Comments