A collection of enhancements for SuttaCentral.net and related websites

Latest Version

Version
0.0.8
Update
November 4, 2024
Size
2.63MiB
Developer
Category
Users
18
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ClipboardWrite
ContextMenus
Storage
See more

SuttaCentral Enhancement Extension Extension

This extension adds several new features to the main SuttaCentral.net website, the discourse.SuttaCentral.net forum, and other websites that contain links to SuttaCentral.net. It also adds quick context search options that take you to SuttaCentral.net.

On SuttaCentral.net:

- New themes
- Customize root and translation language
- New navigation menu
- Add link to random sutta on home page
- Notification of additional translations in user's language
- Notification of Pāli parallels
- Add root to legacy translation.
- Clicking segment number copies URL to that segment to the clipboard
- Adds brackets around text added by translator
- Show current site language above the three dot menu icon
- Show reading time
- c copies the heading and body of the entire text to the clipboard.
- u to copy the bare url
- l to copy a link to the current page in a custom format
- q to open a popup with a QR Code
- . to select only translation
- , to select only root language
- ? to show keyboard hotkeys
- Add custom CSS to the main SuttaCentral.net website.
- Compact view options menu to avoid horizontal scrolling.
- Mirror native hotkeys to numbers for non-Latin keyboard users
- right/left arrows to go to next/previous text


On discourse.SuttaCentral.net:

- Give the forum a unique favicon. ⚠️Experimental
- Add custom CSS to the SC forum website.


On other sites and in the browser

- Context menu to search on SuttaCentral.net
- Context menu to search on discourse.SuttaCentral.net
- Context menu to go to suttaplex citation
- Context menu to go to sutta citation
- Context menu to search PTS citation
- Context menu to look up in DPD
- Sutta summary popups. This allows you to hover over links to SuttaCentral.net and have a summary (aka blurb) pop up in the lower right hand corner.
- Omnibox search. This allows you to type \"sc \" followed by a space and either a citation or the name of a sutta in the omnibox (aka URL bar, aka search bar) to get a direct link to a sutta.

All of these features can be toggled on and off.

About SuttaCentral: SuttaCentral.net is a website dedicated to providing translations of ancient Buddhist texts. While the site already has lots of amazing features, this extension gives you even more and allows you to customize your experience while using it.

Additionally it provides short summaries to any link to the SuttaCentral.net website so you can know the basic topic without having to visit.
Read more

Source Manifest.json

{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version":3,
"name":"SuttaCentral Enhancement Extension",
"description":"A collection of enhancements for SuttaCentral.net and related websites",
"version":"0.0.8",
"icons":{"16":"icon/16.png",
"32":"icon/32.png",
"48":"icon/48.png",
"96":"icon/96.png",
"128":"icon/128.png"},
"web_accessible_resources":[{"resources":["icon/ddFavicon.png",
"icon/favicon.ico"],
"matches":["*://discourse.suttacentral.net/*"]}],
"content_scripts":[{"js":["/js/bootstrap.min.js"],
"matches":["*://suttacentral.net/*"]},{"matches":["*://suttacentral.net/*"],
"css":["content-scripts/vpMenu.css"],
"js":["content-scripts/PreviousNext.js",
"content-scripts/addRootToLegacy.js",
"content-scripts/addedText.js",
"content-scripts/colorTextCustomize.js",
"content-scripts/content.js",
"content-scripts/copyBareLink.js",
"content-scripts/copyCustomLink.js",
"content-scripts/copyId.js",
"content-scripts/copySuttaText.js",
"content-scripts/cssScCustomize.js",
"content-scripts/headingIds.js",
"content-scripts/hotkeyMap.js",
"content-scripts/mirrorHotkeys.js",
"content-scripts/notifyOtherTranslations.js",
"content-scripts/notifySameLangParallelCount.js",
"content-scripts/qrCode.js",
"content-scripts/random.js",
"content-scripts/readingTime.js",
"content-scripts/rootFirst.js",
"content-scripts/selectOnlyOneLanguage.js",
"content-scripts/showLanguage.js",
"content-scripts/shrinkViewSettings.js",
"content-scripts/themes.js",
"content-scripts/vpMenu.js"]},{"matches":["*://discourse.suttacentral.net/*"],
"js":["content-scripts/cssDdCustomize.js",
"content-scripts/ddFavicon.js"]}],
"permissions":["clipboardWrite",
"contextMenus",
"storage"],
"omnibox":{"keyword":"sc"},
"browser_specific_settings":{"gecko":{"id":"[email protected]"}},
"background":{"service_worker":"background.js"},
"action":{"default_title":"SuttaCentral Enhancement Extension",
"default_popup":"popup.html"},
"host_permissions":[""]}
Read more