this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Experiment auto-expand spoiler in hero status

+12
+12
src/pages/status.jsx
··· 984 984 [statuses, limit, renderStatus], 985 985 ); 986 986 987 + // If there's spoiler in hero status, auto-expand it 988 + useEffect(() => { 989 + let timer = setTimeout(() => { 990 + if (!heroStatusRef.current) return; 991 + const spoilerButton = heroStatusRef.current.querySelector( 992 + '.spoiler-button:not(.spoiling), .spoiler-media-button:not(.spoiling)', 993 + ); 994 + if (spoilerButton) spoilerButton.click(); 995 + }, 1000); 996 + return () => clearTimeout(timer); 997 + }, [id]); 998 + 987 999 return ( 988 1000 <div 989 1001 tabIndex="-1"