No description
Find a file
Mark Bloomfield cdae0d1c1e
Change demo image to new GIF format
Updated demo image link in README.
2026-03-26 12:42:45 +02:00
.DS_Store verse parse sidebar 2026-03-03 09:40:06 +02:00
.gitignore verse parse sidebar 2026-03-03 09:40:06 +02:00
bibleBooks.ts verse tweaks 2026-03-05 11:29:03 +02:00
CLAUDE.md prompts and docs 2026-03-26 10:50:26 +02:00
css.d.ts styles + types 2026-03-26 10:50:49 +02:00
esbuild.config.mjs styles + types 2026-03-26 10:50:49 +02:00
LICENSE prompts and docs 2026-03-26 10:50:26 +02:00
main.js wol verse styles + sidebar cache 2026-03-26 11:59:43 +02:00
main.ts wol verse styles + sidebar cache 2026-03-26 11:59:43 +02:00
manifest.json reference popover 2026-03-26 10:50:58 +02:00
package-lock.json verse parse sidebar 2026-03-03 09:40:06 +02:00
package.json styles + types 2026-03-26 10:50:49 +02:00
README.md Change demo image to new GIF format 2026-03-26 12:42:45 +02:00
reference-stylist.ts styles + types 2026-03-26 10:50:49 +02:00
ReferenceEditorPlugin.ts reference popover 2026-03-26 10:50:58 +02:00
ReferenceModal.ts reference popover 2026-03-26 10:50:58 +02:00
ReferenceParser.ts reference popover 2026-03-26 10:50:58 +02:00
ReferencePopover.ts reference popover 2026-03-26 10:50:58 +02:00
referenceService.ts wol verse styles + sidebar cache 2026-03-26 11:59:43 +02:00
ReferenceSidebarView.ts wol verse styles + sidebar cache 2026-03-26 11:59:43 +02:00
styles.css wol verse styles + sidebar cache 2026-03-26 11:59:43 +02:00
tsconfig.json reference popover 2026-03-26 10:50:58 +02:00
types.ts styles + types 2026-03-26 10:50:49 +02:00
version-bump.mjs verse parse sidebar 2026-03-03 09:40:06 +02:00
versions.json verse parse sidebar 2026-03-03 09:40:06 +02:00

WOL Reference Tools

An Obsidian plugin that lets you look up Bible verses and references from wol.jw.org, and add them to your notes inline, in a modal or popover, or in the sidebar.

How it works

The plugin sends the 'value' of the reference - whatever is within the !!, and send that value to a Cloudflare worker, which does a search on wol.jw.org, eg: [https://wol.jw.org/en/wol/l/r1/lp-e?q=ps83:18](https://wol.jw.org/en/wol/l/r1/lp-e?q=ps83:18). It then uses cheerio to parse the HTML, and returns an object containing the reference text and the verse text.

{
  "results": [
    "<p class=\"line\"><span class=\"verse\"><span class=\"verse-number\">18</span>May people know that you, whose name is Jehovah,</span></p><p class=\"line-secondary\"><span class=\"verse\">You alone are the Most High over all the earth.</span></p>"
  ]
}

Some light formatting is applied for styling purposes, but the results are left otherwise unchanged.

How to use

Wrap any reference in !!double exclamation marks!! and it becomes a clickable link. Click it to see the full text from wol.jw.org in a modal or popover. The sidebar panel automatically lists and loads all references in the active note.

To show a verse inline within your note as you're typing, add a > after the double exclamation marks:

!!John 3:16!!>

Add scriptures to your frontmatter using the double exclamation marks and combine that with a dataviewjs query to show any references you've added:

---
scriptures:
  - "!!Daniel 12:1!!"
  - "!!Revelation 12:7, 9!!"
---
const scriptures = dv.current().scriptures ?? [];
scriptures.forEach(s => dv.paragraph(s + "> <br />"));

Demo


Features

  • Inline reference links!!John 3:16!! renders as a styled, clickable link in both Reading and Live Preview modes
  • Modal & popover display — choose how results appear (configurable in settings)
  • Sidebar panel — all references in the current note are fetched and displayed in the right panel
  • Inline callout!!John 3:16!!> renders the full result as an inline block directly in the editor
  • In-memory caching — results are cached for 30 minutes per session to avoid redundant requests

Usage

Syntax Result
!!John 3:16!! Clickable inline link; click to open result
!!Isaiah 40:8!! Works for any Bible book or WOL search term
!!John 3:16!!> Renders result inline as a callout block
!!John 3:16; Romans 8:28!! Semicolons separate multiple refs in one marker

Settings

Setting Description
Reference Display Option Choose Modal Dialog or Pop-over for click behaviour
Reference cache Clear the in-memory cache to force fresh fetches

Author

@iaremarkus