A typical way to do this would e.g. be to use something like ZU.xpath(doc, '//script[contains(text(), "something distinctive about the JSON")]') For anything beyond that, please post to zotero-dev with example URL
I checked the javascript code. Click action will trigger `MoerSummary` function. The full abstract is stored in a `g_Summary` object in the `Common.min.js` file.
I hope I can access `g_Summary` to get full abstract.
OK, I understand. Effectively, the javascript masks the full abstract from the DOM model -- it is in the HTML source, though.
The may be other, more elegant options (e.g. I wonder if we can just mimick the button click when calling innerHTML or the equivalent), but one option is to reload the page as text via ZU.doGet -- that includes the full abstract text which you can grab via regex.
ZU.xpath(doc, '//script[contains(text(), "something distinctive about the JSON")]')
For anything beyond that, please post to zotero-dev with example URL
```
var g_Summary=new Object()
```
I can get this g_Summary by `ZU.xpath`?
This paper has a long abstract(摘要). The javascript script truncates the string at max 500 words. But you can get full abstract by click(更多).
I checked the javascript code. Click action will trigger `MoerSummary` function. The full abstract is stored in a `g_Summary` object in the `Common.min.js` file.
I hope I can access `g_Summary` to get full abstract.
The may be other, more elegant options (e.g. I wonder if we can just mimick the button click when calling innerHTML or the equivalent), but one option is to reload the page as text via ZU.doGet -- that includes the full abstract text which you can grab via regex.