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
I am trying to create a note which contains only text highlighted in PDFs. I do not want any reference to any source. I am not a programmer and tried chatgpt. I got my script to work except for the short citations. They remain. I tried regex to remove the references, but no success. Can anyone help?
Example script:
This template is specifically for importing/sharing, using Better Notes 'import from clipboard':
Copy the content and go to Zotero menu bar → Tools → New Template from Clipboard.
Do not copy-paste this to the Better Notes template editor directly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a note which contains only text highlighted in PDFs. I do not want any reference to any source. I am not a programmer and tried chatgpt. I got my script to work except for the short citations. They remain. I tried regex to remove the references, but no success. Can anyone help?
Example script:
This template is specifically for importing/sharing, using Better Notes 'import from clipboard':
Copy the content and go to Zotero menu bar → Tools → New Template from Clipboard.
Do not copy-paste this to the Better Notes template editor directly.
name: "[item] Extract Green Highlights without References"
zoteroVersion: "7.0.11"
pluginVersion: "2.2.7"
savedAt: "2025-02-27T21:00:00.000Z"
content: |-
// @beforeloop-begin
${{
sharedObj = sharedObj || {};
sharedObj.greenReferences = [];
return "";
}}$
// @beforeloop-end
// @default-begin
${{
async function extractGreenHighlights(attachment) {
const annotations = attachment
.getAnnotations()
.filter((annot) => annot.annotationColor && annot.annotationColor.toLowerCase() === "#5fb236");
}}$
// @default-end
// @afterloop-begin
${{
let output =
<h1>${(new Date()).toISOString().slice(0,16).replace('T', ' ')} [item] Extracted Green Highlights (Cleanest Version)</h1>\n
;}}$
// @afterloop-end
Beta Was this translation helpful? Give feedback.
All reactions