LightUAgen is a fast, configurable, and realistic User-Agent (UA) generator JavaScript module, tailored for lightweight Android browsers such as Via, Pure, Dolphin, and Lightning. It mimics modern Chrome/Firefox on Android/iOS, supports dynamic versioning, and can spoof desktop UAs for advanced use cases.
Enhanced Custom User Agent Generator for Lightweight Browsers.
npm install light-ua-gen
import { generateUA } from "light-ua-gen";
console.log(generateUA({ browser: "Via", platform: "android", engine: "chrome" }));
import { generateUA } from './lightUAgen.js';
const ua = generateUA({
browser: 'Via', // or 'Pure', 'Dolphin', 'Lightning'
platform: 'android', // or 'ios'
engine: 'chrome', // or 'firefox'
desktop: false // or true for desktop spoofing
});
console.log(ua);
See the Live Demo or use index.html
.
src/
– ES6 module source (main logic in lightUAgen.js
)public/
– Demo page, quick copy UI, assetsLightUAgen generates realistic custom user-agent strings for lightweight browsers like Via, Pure, Dolphin, and Lightning. Here’s how you can use it in those browsers:
If your browser supports JavaScript injection or custom scripts, you can:
light-ua-gen
npm package in your own tools.Tip:
Switching user agents can help with compatibility or privacy, but some sites may behave differently. Always keep a backup of your default UA.
MIT