Scripture Search Box is a Google Chrome Extension that provides a search box in your browser to easily search the scriptures of The Church of Jesus Christ of Latter-day Saints found on scriptures.churchofjesuschrist.org. You can enter a scripture reference, such as John 3:16, or a topic, such as love, into the search box and the extension will open the search results in a new tab.
v. 1.0 - Fixed an issue where the link to a scripture wasn't taking you to the highlighted verse.
v. 0.5 -- Now supporting searches in Portuguese! As long as you are running Chrome in a Portuguese locale you will be able to use the Scripture Search Box extension to search the Portuguese scriptures on scriptures.lds.org. The site only has The Book of Mormon, Doctrine & Covenants, and The Pearl of Great Price available in Portuguese, so the extension will only be able to search those books.
v. 0.4.3 -- Now supporting searches in Spanish! If you are running Chrome in a Spanish speaking locale then Scripture Search Box will also run in Spanish, and search the Spanish version of the LDS Scriptures site! Support for other languages are planned in future releases.
v. 0.3.16 -- This version will search the King James Version of the Bible, including the Old Testament and New Testament, The Book of Mormon, Doctrine & Covenants, and The Pearl of Great Price.
The localization of this extension is handled through chrome.i18n. To add support for a new language, you will need to do the following:
-
Create a new language directory in the
_locales
directory of the extension. The name of that directory must correspond with its locale. For example the Spanish language locale is 'es', so there is a directory called 'es' in the locales directory. -
Copy the
messages.json
file from another local directory and then translate the values for each element's message into the language of the locale. -
Create a copy of the
createRequest.js
file and append the name of the language in the file name. For example, the spanish version of thecreateRequest.js
file is calledcreateRequestSpanish.js
. Make sure that the file name matches the one inserted in theCreateRequest
element in themessages.json
file. -
Modify the regex in your new
createRequest.js
file to provide patterns that match book names in the language you're providing a translation for.