Browse Source

lazygit

main
Gregory Leeman 1 week ago
parent
commit
672aa11c69
  1. 19
      workflowy-helper/popup.js
  2. 10
      workflowy-helper/style.css

19
workflowy-helper/popup.js

@ -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) { // {{{

10
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;
}

Loading…
Cancel
Save