Get the selection-popup element in script?

47 views
Skip to first unread message

le zhang

unread,
Aug 17, 2023, 12:51:10 AMAug 17
to zotero-dev
Hi, 

I can find the element with CSS path `html body.sidebar-open div#reader-ui div.split-view div.primary div.view-popup.selection-popup.page-popup-bottom` in Inspector, but I want to get it from the Zotero object. 

Methods I have tried but failed: 
1. click Use in Console and get a object named temp0, but I don't know what the top most html parentelement is obtained by `temp0.parentElement.parentElement.parentElement.parentElement.parentElement` 
2. I thought it would be `ZoteroPanel` or `Zotero.Reader.getByTabID(currentId)`, but they are not

Could anyone please tell me how to get the selection-popup element in script? 

Thanks!

XY Wong

unread,
Aug 18, 2023, 2:39:04 AMAug 18
to zotero-dev
Reply all
Reply to author
Forward
0 new messages