Browse Source

lazygit

main
Gregory Leeman 1 week ago
parent
commit
28d1f42cbe
  1. 4
      workflowy-helper/main.js
  2. 21
      workflowy-helper/popup.js
  3. 13
      workflowy-helper/style.css

4
workflowy-helper/main.js

@ -236,8 +236,8 @@
}
const tags = n.querySelectorAll('.contentTag');
console.log(text);
if (text.includes("!!")) {
console.log("found !! in text");
if (text.includes("&&")) {
console.log("found && in text");
const links = [...n.querySelectorAll('a.contentLink')];
links.forEach(link => {
link.classList.add("imgLink");

21
workflowy-helper/popup.js

@ -68,7 +68,7 @@ const contentTypes = {
workflowyFormat: function(data, tab) {
return {
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>',
description: data.year + " " + data.director + "\n" + "!!" + data.cover
description: data.year + " " + data.director + "\n" + "&& " + data.cover
};
}
}
@ -85,7 +85,24 @@ const contentTypes = {
workflowyFormat: function(data, tab) {
return {
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>',
description: data.year + " " + data.author + "\n" + "!!" + data.cover
description: data.author + "\n" + "&& " + data.cover
};
}
}
],
"album": [
{
urlPattern: /^https?:\/\/rateyourmusic.com\/release\//,
fields: {
title: { selector: '.album_title', attribute: 'innerText' },
author: { selector: 'a.artist', attribute: 'textContent' },
year: { selector: 'a[href^="/charts/top/"]', attribute: 'textContent' },
cover: { selector: 'div[class^="coverart_"] > img', attribute: 'src' },
},
workflowyFormat: function(data, tab) {
return {
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>',
description: data.author + " " + data.year + "\n" + "&& " + data.cover
};
}
}

13
workflowy-helper/style.css

@ -141,10 +141,6 @@ body {
}
/* .root:not(.board) > .children, */
/* .root:not(.board) > .name { */
/* /1* max-width: 800px; *1/ */
/* } */
.name > .content > .innerContentContainer::before {
margin-right: 4px;
}
@ -819,3 +815,12 @@ body::-webkit-scrollbar {
.inject {
padding-left: 24px !important;
}
.board.root > .name {
height: initial !important;
}
.board.root > .name > .content {
font-size: 27px !important;
font-weight: bold !important;
}

Loading…
Cancel
Save