- Download: Scripturizer JS 2.2 (3.6kb ZIP, 2006-01-16)
This comment got me thinking -- whether Scripturizer, implemented in PHP or Perl on the server side, is too difficult to use for people who have no scripting language or programming background. Dean Peter's MovableType plugin version requires you to upload files to your MT plugin directory, and then modify templates to invoke it. Glen Davis' and my version for WordPress also both require uploading file(s) to WP's plugin directory, and then activate it from inside the WP -- FTP and template editing knowledge required.
What about other blogging software, like TextPattern, Blosxom or Nucleus? Well, you might be able to hack the PHP/Perl version of Scripturizer to act as a filter for these respective blog software, but coding knowledge required. Using PyBlosxom, Roller Weblogger or .Text? Too bad. You have to hack the regular expression yourself to port the Scripturizer over to the languages these blogging software use -- again coding knowledge required.
What about if your blog is hosted by a blog service, like Blogger or Xanga? What about if it is not a blog, but a couple of static pages hosted on Geocity? When you have no control on the server side software -- a server side solution is simply not feasible.
scripturizer.jsto the root directory of your website.
- Insert the following HTML into your page/template:
srcattribute needs to be altered to point to where you have actually uploaded the file.
- Reload your page, and it should now be scripturized!
You can change how Scripturizer behave by using different query string parameters when you import it into your HTML document.
- Whether to automatically invoke the Scripturizer when the page is loaded. Default is 1, but you might want to disable it if you wish to manually call Scripturizer functions.
- The element ID for the DOM element to be scripturized. If the element does not exist, then the whole
document.bodywill be used.
- Whether to open the Bible text in a new browser window, instead of inside the current window.
- Bible translation version to used. If the value is "esv", then links to Good News Publisher will be used. If the value is "esvpopup", and ESV Popup has also been loaded, ESV reference inside a small pop-up window will be used. Otherwise, links to Bible Gateway will be used.
For example, if you only want to scripturize all references in "sidebar" and use New International Version in a new window, you use the following HTML to import Scripturizer:
All links generated would have CSS class
scripturized. You can change the stylesheets to make these scripturized links look differently.
- Internet Explorer 6, 7 on Windows
- Firebird 1/1.5/2 on Windows
- Safari 1.2.x on Mac OS X
- Opera 8.5/9 on Windows
You are not only able to hyperlink Bible references on your own website, you can now also scripturize other websites! Even been to a website where the webmaster just forgot to provide links for passages to the text (like I usually do)? The Scripturizer bookmarklet is here to provide the fix.
Scripturize It! (ESV popup)
Scripturize It! (NIV)
- Drag one of the above link to your browser's bookmark toolbar.
- Hit that "Scripturize It!" button on your toolbar, whenever you come across a site not linking Bible passage to text.
- There is no step 3.
Note -- if you are unfortunately an Internet Explorer user, it might not let you drag the link to your Links toolbar. You will need to (1) right click on the link to bring out context menu (2) click on "Add to Favorites..." (3) click on "Yes" in the Security Alert dialog box (4) choose "Links" folder in "Add Favorite" dialog box. A bit complicated, or else you can try Firefox or Opera.
GreaseMonkey User Script
- Download scripturizer.user.js 1.0 (6.8kb 2006-01-16)
I have only tested this user script under Firefox 1.5 and GreaseMonkey 0.6.4 on Windows. If you are running a different version of Mozilla, GM or operating system, then your mileage might vary.
This user script will be triggered on all documents by default, but you can re-configure it using "Manage User Script" menu item. It defaults to link Bible passages to ESV at Good News Publisher, but you can change the configuration with these steps:
- Type in about:config in Firefox/Mozilla's address bar.
- Put greasemonkey in the filter.
- You should see:
in the list, and the value is default to "esv". Change it to the Bible translation of your choice.
- 2.2 (2006-01-16)
- Fix a few regular expression bug on value replacing.
- Skip text if it is already inside a link.
- 2.1 (2005-10-13)
- Fix a regular expression bug that prevents scripturizing a lengthy text node.
- Change the onload mechanism.
- 2.0 (2005-10-06)
- Manipulate DOM elements instead of searching and replacing innerHTML.