Firefox ใƒ–ใƒฉใ‚ฆใ‚ถใƒผใ‚ขใƒ‰ใ‚ชใƒณ
  • ๆ‹กๅผตๆฉŸ่ƒฝ
  • ใƒ†ใƒผใƒž
    • Firefox ๅ‘ใ‘
    • ใ‚นใƒšใƒซใƒใ‚งใƒƒใ‚ฏ่พžๆ›ธใจ่จ€่ชžใƒ‘ใƒƒใ‚ฏ
    • ไป–ใฎใƒ–ใƒฉใ‚ฆใ‚ถใƒผใ‚ตใ‚คใƒˆ
    • Android ๅ‘ใ‘ใ‚ขใƒ‰ใ‚ชใƒณ
ใƒญใ‚ฐใ‚คใƒณ
Org Web Capture ใฎใƒ—ใƒฌใƒ“ใƒฅใƒผ

Org Web Capture ไฝœๆˆ่€…: Titan-C

A helper for capturing web pages via org-protocol in emacs and supporting org-roam captures.

5 (2 reviews)5 (2 reviews)
29 Users29 Users
Firefox ใ‚’ใƒ€ใ‚ฆใƒณใƒญใƒผใƒ‰ใ—ใฆๆ‹กๅผตๆฉŸ่ƒฝใ‚’ๅ…ฅๆ‰‹ใ™ใ‚‹
ใƒ•ใ‚กใ‚คใƒซใ‚’ใƒ€ใ‚ฆใƒณใƒญใƒผใƒ‰

ๆ‹กๅผตๆฉŸ่ƒฝใƒกใ‚ฟใƒ‡ใƒผใ‚ฟ

ใ“ใฎๆ‹กๅผตๆฉŸ่ƒฝใซใคใ„ใฆ
1 Org Web Capture Extension
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

This is an extension for Firefox (tm) which adds a โ€œCaptureโ€ button,
sending the site address, title, and selected text (if any) to emacs
via org-protocol.

In case itโ€™s a meetup.com event page it will perform an additional API
call to meetup.com and get the event details.


2 Detailed setup instructions
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

2.1 Install the extension
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Install from <https://addons.mozilla.org> website under the name [Org
Web Capture].


[Org Web Capture]
<https://addons.mozilla.org/en-US/firefox/addon/org-web-capture/>


2.2 Set up org-protocol
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

The gist of it is to make your system recognize emacsclient as the
handler of `org-protocol://' links. In addition, one needs to set up
emacs to load org-protocol and to set up capture templates.


2.2.1 Register emacsclient as the ```org-protocol``` handler
โ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œ

โ—Š 2.2.1.1 Under Linux (non-KDE)

โ”Œโ”€โ”€โ”€โ”€
โ”‚ mkdir -p "${HOME}/.local/share/applications/"
โ”‚ cat > "${HOME}/.local/share/applications/org-protocol.desktop" << EOF
โ”‚ [Desktop Entry]
โ”‚ Name=org-protocol
โ”‚ Exec=emacsclient %u
โ”‚ Type=Application
โ”‚ Terminal=false
โ”‚ Categories=System;
โ”‚ MimeType=x-scheme-handler/org-protocol;
โ”‚ EOF
โ””โ”€โ”€โ”€โ”€

And then
โ”Œโ”€โ”€โ”€โ”€
โ”‚ update-desktop-database ~/.local/share/applications/
โ””โ”€โ”€โ”€โ”€


2.2.2 Configure Emacs
โ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œ

โ—Š 2.2.2.1 Init file

โ”Œโ”€โ”€โ”€โ”€
โ”‚ (server-start)
โ”‚ (require 'org-protocol)
โ””โ”€โ”€โ”€โ”€


โ—Š 2.2.2.2 Capture templates

โ”Œโ”€โ”€โ”€โ”€
โ”‚ ("l" "Web site" entry (file+headline (lambda () (concat org-directory "/webnotes.org")) "Inbox")
โ”‚ "* %a\nCaptured On: %U\nWebsite: %l\n\n%i\n%?")
โ”‚
โ”‚ ("m" "meetup" entry (file "~/nextcloud/caldav.org") "* %?%:description \n%i\n%l")
โ””โ”€โ”€โ”€โ”€


โ—Š 2.2.2.3 Org-roam `roam-ref' templates

`Org-roam' has special capture templates, and thus they are to be
configured differently. Read more org-roam [roam-ref protocol].
โ”Œโ”€โ”€โ”€โ”€
โ”‚ (setq org-roam-capture-ref-templates '(("l" "web" plain "%i\n%?"
โ”‚ :target (file+head "%<%Y%m%d>-${slug}.org"
โ”‚ "#+title: ${title}")
โ”‚ :unnarrowed t)))
โ””โ”€โ”€โ”€โ”€


[roam-ref protocol]
<https://www.orgroam.com/manual.html#The-roam_002dref-protocol>


2.2.3 Configure extension
โ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œโ•Œ

For some reason I need to configure the extension and save a change
before it works.

You can use the shortcut โ€œCtrl+Shift+Lโ€ to trigger the page capture.


3 Development
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Have nodejs installed and install the tool `web-ext'
โ”Œโ”€โ”€โ”€โ”€
โ”‚ npm install --save-dev web-ext
โ””โ”€โ”€โ”€โ”€
To launch the dev instance an a clean browser use:
โ”Œโ”€โ”€โ”€โ”€
โ”‚ npm run start:dev
โ””โ”€โ”€โ”€โ”€
To produce the release build
โ”Œโ”€โ”€โ”€โ”€
โ”‚ npm run build
โ””โ”€โ”€โ”€โ”€


4 License
โ•โ•โ•โ•โ•โ•โ•โ•โ•

4.1 This is a fork of <https://github.com/sprig/org-capture-extension>
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

This repository is licensed as MIT license, see the LICENSE file for
details.


5 Changes
โ•โ•โ•โ•โ•โ•โ•โ•โ•

5.1 v0.3.1
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

โ€ข Some code cleanup. Ship CSS instead of pulling tachyons from unpkg


5.2 v0.3.0
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

โ€ข Support capturing to org-roam roam-ref-templates. Just mark the
checkbox on the config and the standard web request will go to
`roam-ref' instead of capture.


5.3 v0.2.6
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

โ€ข Include the how to find information in meetup template
Rated 5 by 2 reviewers
ใƒญใ‚ฐใ‚คใƒณใ—ใฆใ“ใฎๆ‹กๅผตๆฉŸ่ƒฝใ‚’่ฉ•ไพก
ใพใ ่ฉ•ไพกใ•ใ‚Œใฆใ„ใพใ›ใ‚“

ๆ˜Ÿใฎ่ฉ•ไพกใ‚’ไฟๅญ˜ใ—ใพใ—ใŸ

5
2
4
0
3
0
2
0
1
0
ใ™ในใฆใฎใƒฌใƒ“ใƒฅใƒผ (2) ใ‚’่ชญใ‚€
Permissions and data่ฉณ็ดฐๆƒ…ๅ ฑ

ๅฟ…่ฆใชๆจฉ้™:

  • api.meetup.com ใฎใƒฆใƒผใ‚ถใƒผใƒ‡ใƒผใ‚ฟใธใฎใ‚ขใ‚ฏใ‚ปใ‚น
่ฉณใ—ใ„ๆƒ…ๅ ฑ
ใ‚ขใƒ‰ใ‚ชใƒณใƒชใƒณใ‚ฏ
  • ใƒ›ใƒผใƒ ใƒšใƒผใ‚ธ
  • ใ‚ตใƒใƒผใƒˆใ‚ตใ‚คใƒˆ
ใƒใƒผใ‚ธใƒงใƒณ
0.3.3
ใ‚ตใ‚คใ‚บ
20.91 KB
ๆœ€็ต‚ๆ›ดๆ–ฐๆ—ฅ
9ใƒถๆœˆๅ‰ (2025ๅนด1ๆœˆ23ๆ—ฅ)
้–ข้€ฃใ‚ซใƒ†ใ‚ดใƒชใƒผ
  • ใƒ•ใ‚ฃใƒผใƒ‰๏ผใƒ‹ใƒฅใƒผใ‚น๏ผใƒ–ใƒญใ‚ฐ
  • ใƒ–ใƒƒใ‚ฏใƒžใƒผใ‚ฏ
ใƒฉใ‚คใ‚ปใƒณใ‚น
MIT License
ใƒใƒผใ‚ธใƒงใƒณๅฑฅๆญด
  • ใ™ในใฆใฎใƒใƒผใ‚ธใƒงใƒณใ‚’่ฆ‹ใ‚‹
ใ‚ณใƒฌใ‚ฏใ‚ทใƒงใƒณใธ่ฟฝๅŠ 
ใ“ใฎใ‚ขใƒ‰ใ‚ชใƒณใ‚’ๅ ฑๅ‘Š
0.3.3 ใฎใƒชใƒชใƒผใ‚นใƒŽใƒผใƒˆ
Bugfix avoid over escaping for non org-roam capture templates
Mozilla ใฎใƒ›ใƒผใƒ ใƒšใƒผใ‚ธใธ

ใ‚ขใƒ‰ใ‚ชใƒณ

  • ใ“ใฎใ‚ตใ‚คใƒˆใซใคใ„ใฆ
  • Firefox ใ‚ขใƒ‰ใ‚ชใƒณใƒ–ใƒญใ‚ฐ
  • ๆ‹กๅผตๆฉŸ่ƒฝใƒฏใƒผใ‚ฏใ‚ทใƒงใƒƒใƒ—
  • ้–‹็™บ่€…ใ‚ปใƒณใ‚ฟใƒผ
  • ้–‹็™บ่€…ใƒใƒชใ‚ทใƒผ
  • ใ‚ณใƒŸใƒฅใƒ‹ใƒ†ใ‚ฃใƒ–ใƒญใ‚ฐ
  • ใƒ•ใ‚ฉใƒผใƒฉใƒ 
  • ใƒใ‚ฐใ‚’ๅ ฑๅ‘Š
  • ใƒฌใƒ“ใƒฅใƒผใ‚ฌใ‚คใƒ‰

ใƒ–ใƒฉใ‚ฆใ‚ถใƒผ

  • Desktop
  • Mobile
  • Enterprise

่ฃฝๅ“ๆƒ…ๅ ฑ

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • ใƒ—ใƒฉใ‚คใƒใ‚ทใƒผ
  • Cookie
  • ๆณ•็š„ๆƒ…ๅ ฑ

็‰นใซ ๆ˜Ž่จ˜ใ•ใ‚Œใฆใ„ใ‚‹ ๅ ดๅˆใ‚’้™คใใ€ๅฝ“ใ‚ตใ‚คใƒˆไธŠใฎใ‚ณใƒณใƒ†ใƒณใƒ„ใฏ Creative Commons ่กจ็คบใƒป็ถ™ๆ‰ฟใƒฉใ‚คใ‚ปใƒณใ‚น v3.0 ใ‚ใ‚‹ใ„ใฏใใ‚Œไปฅ้™ใฎใƒใƒผใ‚ธใƒงใƒณใงๅ…ฌ้–‹ใ•ใ‚Œใฆใ„ใพใ™ใ€‚