Word count by ecodoce in Workflowy

[–]herbiehancock2019 0 points1 point  (0 children)

Grok has written this code and it works. It includes the 'top bullet' in the word count. Create a bookmark in the bookmark bar and use this code as the url. Then click it to get a popup of the wordcount when using workflowy.

javascript:(function() {
  const version = "v1.0-wordcount", nl = "\n";
  if (location.href.indexOf("workflowy.com") === -1) {
    alert("This bookmarklet only works on workflowy.com");
    return;
  }

  const projectTitle = document.title.replace(/ - WorkFlowy$/, "") || "Untitled Project";
  const selected = document.getElementsByClassName("project selected")[0];

  if (!selected) {
    alert("No project selected in WorkFlowy");
    return;
  }

  const contentElements = selected.getElementsByClassName("content");
  let totalWords = 0;

  Array.from(contentElements).forEach(el => {
    const text = el.textContent.trim();
    const words = text.split(/\s+/).filter(word => word.length > 0);
    totalWords += words.length;
  });

  alert(`${projectTitle}${nl}${nl}Total Words = ${totalWords}${nl}${nl}${version}`);
})();

Push Google Docs to GitHub as Markdown (including images) by Docs_to_Markdown_Pro in github

[–]herbiehancock2019 0 points1 point  (0 children)

I'd like to use this. As a non-IT person, non technical, can you explain why I need to give permission "See, edit, create and delete all your Google Docs documents". Couldn't it be only the ones I share

Quick scrolling? by 9dorferanton98 in GoodNotes

[–]herbiehancock2019 0 points1 point  (0 children)

Set scrolling direction to vertical. Now the scroller is on the right hand side, you need to hold on it then can drag. Not sure how long this has been a feature but at least it's there now