INNER CODE UNIT · Python
getConfig
cwuom/NeriPlayer · tools_pub/ytmusic_api_probe.py:105
const getConfig = (key) => {
try {
if (ytcfg?.get) {
return ytcfg.get(key);
}
return ytcfg?.data_?.[key];
} catch (error) {
return null;
}
};
const findFactory = () => {
try {
const direct = topWindow?.['havuokmhhs-0']?.bevasrs?.wpc;
if (typeof direct === 'function') {
return direct;
}
for (const key of Object.getOwnPropertyNames(topWindow || {})) {
const candidate = topWindow?.[key]?.bevasrs?.wpc;