Skip to content

Instantly share code, notes, and snippets.

@SamantazFox
Last active August 29, 2022 09:02
Show Gist options
  • Save SamantazFox/be4a0f224b179c544d7dac85768fdd12 to your computer and use it in GitHub Desktop.
Save SamantazFox/be4a0f224b179c544d7dac85768fdd12 to your computer and use it in GitHub Desktop.
Reversing of youtube client context's names
{
"1:0:embedded": { // client
"1:0:embedded": { // context
"1:string": "fr", // hl
"2:string": "FR", // gl
// 4? "remoteHost": "141.98.6.54",
"10:string": "FR", // ???
"12:string": "Apple", // deviceMake
"13:string": "iPhone11,8", // deviceModel
"14:string": "...%3D%3D", // visitorData
"15:string": "Mozilla/5.0 (Linux; ....", // userAgent
"16:varint": 5, // clientName
"17:string": "16.46.5", // clientVersion
"18:string": "", // osName
"19:string": "15.2.0.19C56", // osVersion
// "originalUrl": "https://m.youtube.com/",
"21:string": "fr-FR",
"21:embedded(?)": {
"12": "0x53552d6e" // ?????
},
"22:string": "FR",
// "playerType": "UNIPLAYER",
// "screenPixelDensity": 1,
// "platform": "MOBILE",
// "clientFormFactor": "SMALL_FORM_FACTOR" / "SMALL_FORM_FACTOR" / ???
"25:string": "ABCDEFGH-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
// "configInfo"
// "screenDensityFloat": 1,
// "browserName": "Firefox",
// "browserVersion": "14.2",
"37:varint": 320, // screenWidthPoints?
"38:varint": 569, // screenHeightPoints?
"39:float32": 2.0,
"40:float32(?)": "0x4063bbbc",
"41:varint": 2,
"46:varint": 1,
"50:varint(?)": 222613015,
"55:varint": 320,
"56:varint": 569,
"61:varint": 3,
"62:embedded": { // Likely tracking
"1:base64": {},
"3:base64": {},
"5:base64": {}
},
"64:varint": 23, // androidSdkVersion
"65:float32": 2.0,
"67:varint": 60, // utcOffsetMinutes
"78:varint": 1, // userInterfaceTheme?
// "mainAppWebInfo"
"80:string": "Europe/Paris", // timeZone
"84:embedded": {...}, // Likely tracking too
"94:varint": 5,
"95:varint": 3768228,
"97:embedded": {
"1:varint": 1,
"2:varint": 175127
},
"98:string": "HONOR",
"99:embedded": {
"1:string": "FRA"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment