upsetjs export function extractStyleId ( node ) { return Array . from ( node . classList ) . find ( ( d ) => d . startsWith ( 'root-' ) ) ! . slice ( 'root-' . length ) ; } export function extractTitle ( node , styleId ) { return node . querySelector ( `titleTextStyle-${ styleId }` ) ?. textContent ?? 'UpSetJS' ; } export function extractDescription ( node , styleId ) { return node . querySelector ( `descTextStyle-${ styleId }` ) ?. textContent ?? '' ; }