From 28d1f42cbed23d5219be9cf24b00ba93790b299e Mon Sep 17 00:00:00 2001 From: Gregory Leeman Date: Wed, 18 Jun 2025 21:39:52 +0100 Subject: [PATCH] lazygit --- workflowy-helper/main.js | 4 ++-- workflowy-helper/popup.js | 21 +++++++++++++++++++-- workflowy-helper/style.css | 13 +++++++++---- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/workflowy-helper/main.js b/workflowy-helper/main.js index b027078..6e43e2e 100644 --- a/workflowy-helper/main.js +++ b/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"); diff --git a/workflowy-helper/popup.js b/workflowy-helper/popup.js index 78c3dab..c7d2f61 100644 --- a/workflowy-helper/popup.js +++ b/workflowy-helper/popup.js @@ -68,7 +68,7 @@ const contentTypes = { workflowyFormat: function(data, tab) { return { name: '' + data.title.trim() + '', - 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: '' + data.title.trim() + '', - 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: '' + data.title.trim() + '', + description: data.author + " " + data.year + "\n" + "&& " + data.cover }; } } diff --git a/workflowy-helper/style.css b/workflowy-helper/style.css index d4eecaf..dd0f260 100644 --- a/workflowy-helper/style.css +++ b/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; +}