From 16ea4da9b28263a1d608cf057313ee75e699363b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 5 Sep 2023 00:00:18 -0400 Subject: [PATCH] Don't show underline or text annotations in Zotero 6 --- chrome/content/zotero/xpcom/data/item.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 640b14d703..45cd1f6a0f 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3964,7 +3964,9 @@ Zotero.Item.prototype.getAnnotations = function (includeTrashed) { } var ids = rows.map(row => row.itemID); this._annotations[cacheKey] = ids; - return Zotero.Items.get(ids); + return Zotero.Items.get(ids) + // Filter out underline and text annotations in Zotero 6 + .filter(x => !['underline', 'text'].includes(x.annotationType)); };