youtubei.js / Utils / getRandomUserAgent
Function: getRandomUserAgent()
getRandomUserAgent(
type
):string
Returns a random user agent.
Parameters
• type: DeviceCategory
mobile | desktop
Returns
string
youtubei.js / Utils / getRandomUserAgent
getRandomUserAgent(
type
):string
Returns a random user agent.
• type: DeviceCategory
mobile | desktop
string