|
|
@ -67,12 +67,29 @@ const contentTypes = { |
|
|
|
}, |
|
|
|
workflowyFormat: function(data, tab) { |
|
|
|
return { |
|
|
|
name: data.title.trim(), |
|
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
|
description: data.year + " " + data.director + "\n" + "!!" + data.cover |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
"book": [ |
|
|
|
{ |
|
|
|
urlPattern: /^https?:\/\/www.goodreads.com\/book\/show\//, |
|
|
|
fields: { |
|
|
|
title: { selector: 'h1', attribute: 'innerText' }, |
|
|
|
author: { selector: 'span.ContributorLink__name', attribute: 'textContent' }, |
|
|
|
year: { selector: 'p[data-testid="publicationInfo"]', attribute: 'textContent' }, |
|
|
|
cover: { selector: '.BookCover img', attribute: 'src' }, |
|
|
|
}, |
|
|
|
workflowyFormat: function(data, tab) { |
|
|
|
return { |
|
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
|
description: data.year + " " + data.author + "\n" + "!!" + data.cover |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
function initConfigPopup(tab) { // {{{
|
|
|
|