Expand all the events in Calendar View on page load SharePoint
The method to expand all the events in Calendar View on load using Content Editor WebPart. You should add this code. You should copy and paste it to html file, save this file to document library and set its path into the settings of CEWP.
_spBodyOnLoadFunctionNames.push('changeCalendarEventLinkIntercept');
//Expand all the calendar events
function changeCalendarEventLinkIntercept()
{
var OldCalendarNotify4a = SP.UI.ApplicationPages.CalendarNotify.$4b;
SP.UI.ApplicationPages.CalendarNotify.$4b = function ()
{
OldCalendarNotify4a();
changeCalendarEventLinks();
}
}
function changeCalendarEventLinks()
{
//expand all
$("a[evtid='expand_collapse']").each(function(){
$(this)[0].click();
});
}

Azure.RequestFailedException when start App in Visual Studio
Determine the first and last days of a quarter with Day.js
Login as another user in SharePoint 2019 on-premises site in Chrome