diff --git a/workflowy-helper/popup.js b/workflowy-helper/popup.js
index b9e617f..78c3dab 100644
--- a/workflowy-helper/popup.js
+++ b/workflowy-helper/popup.js
@@ -67,12 +67,29 @@ const contentTypes = {
},
workflowyFormat: function(data, tab) {
return {
- name: data.title.trim(),
+ name: '' + data.title.trim() + '',
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: '' + data.title.trim() + '',
+ description: data.year + " " + data.author + "\n" + "!!" + data.cover
+ };
+ }
+ }
+ ],
};
function initConfigPopup(tab) { // {{{
diff --git a/workflowy-helper/style.css b/workflowy-helper/style.css
index 8223c79..d4eecaf 100644
--- a/workflowy-helper/style.css
+++ b/workflowy-helper/style.css
@@ -25,7 +25,7 @@
--cyan: #2aa198;
--green: #859900;
- --card: 600px;
+ --card: 300px;
}
@@ -713,8 +713,8 @@ body::-webkit-scrollbar {
/* width: max-content !important; */
/* max-width: var(--card) !important; */
width: -webkit-fill-available;
- max-width: var(--card) !important;
- /* min-width: max-content; */
+ min-width: max-content;
+ /* min-width: var(--card) !important; */
}
.boardCard .name,
@@ -812,6 +812,10 @@ body::-webkit-scrollbar {
background: none !important;
}
+.boardCard > .name > .bullet {
+ opacity: 1 !important;
+}
+
.inject {
padding-left: 24px !important;
}