Skip to content

Instantly share code, notes, and snippets.

View zwithz's full-sized avatar
:bowtie:
meow~

Zack Zhou zwithz

:bowtie:
meow~
View GitHub Profile
let collection = ZoteroPane.getSelectedCollection();
let itemIDs = collection.getChildItems(true);
const fieldName = 'extra'
const fieldID = Zotero.ItemFields.getID(fieldName);
function extractCodeURL(data) {
if (!data || data.length == 0) return "";
if (data[0].repository && data[0].repository.url) return data[0].repository.url;
return "";