You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// starts with$('div[style^="width:100;"]');// contains$('div[style*="width:100;"]');// ends with$('div[style$="width:100;"]');// contains 2 styles (anywhere in inline styles)$('div[style*="width:100;"][style*="display:flex;"]');// one of the classes should exactly be "notion-view"$('div[class~="notion-view"]');// select first element of its type among a group of sibling$('div[style*="width:100;"]:first-of-type');
functionsimulatePointerdownEvent(element){// const element = document.querySelector('div.sticky div[type="button"][id]');// Calculate the center of the elementconstrect=element.getBoundingClientRect();constcenterX=rect.left+rect.width/2;constcenterY=rect.top+rect.height/2;// Create the pointerdown eventconstevent=newPointerEvent("pointerdown",{pointerId: 1,bubbles: true,cancelable: true,clientX: centerX,clientY: centerY,button: 0,// Additional properties can be added as needed});// Dispatch the event on the target elementelement.dispatchEvent(event);}