Tuesday, August 12, 2014

LDS Scriptures 3.0 - Now Open Source

My most popular Chrome extension, LDS Scriptures, has been moved. You can still download the 2.3 version from the Chrome Web Store, but the newest Alpha and any future updates will be on GitHub. You should have no issues running both side by side, except for when Chrome ends the API's used in version 2.3.

It features a partially completed, total rewrite of version 2. It can now access much more content, including chapter headings and footnotes. Unfortunately, I don't have the time to continue to develop it, so I am leaving it to the open source community if they would like to contribute. I will likely go to it every now and then to make updates and cleanup. I will also look at pull requests, but please don't expect any updates any time soon. This has been a great resource for myself and others, so I hope that it continues to get use. I have been learning a lot about JavaScript and development processes in general as I have been working on this project, but I find the Chrome Extension platform too unstable. The existing code will run somewhat on FireFox. I have not tested it recently, but earlier tries have worked with the help of the PHP file included in the project.

Try it out and see more details in the GitHub project.

Tuesday, June 24, 2014

Javascript Object Browser Update 1.2.0

Hey everyone. I just released an update to my Chrome Extension Javascript Object Browser. Updates include:

  • Alphabetic Sorting (finally) 
  • Newish Icon 
  • The functions and objects the extension uses are now anonymous, so they won't show up in the browser.
  • Updates for Chrome extensions manifest version 2 and security handling.
  • Added a bunch more permissions to allow it to access more chrome APIs

The original version was not very good. This one is a little better, but not a lot. I write the tool when I was brand new to JavaScript and web development. I have started to implement some better standards and code layout.

There is a lot more this tool can do than meets the eye. For example:
  • You can use it as a playground for Chrome and HTML5 APIs. Open up a Chrome JavaScript Console with Ctrl+Shift+J (It is way better than the one I built in.)
  • Use it as a reference. I have found some databases of JavaScript documentation, but I have yet to take the plunge of having the app use these. It can still be useful for learning the DOM, etc.
  • Save the page and use it in another browser. Just hit Ctrl+S and then open it in Firefox or IE.
    • Nevermind, I just checked and it does not work in IE, and you have to view source and save the index.html and index.js files for it to work in Firefox. I will have to fix IE support later.
    • The update for chrome, now makes it no longer a single html file. (That was a feature.)
  • Explore APIs of external libraries. Warning: This uses the eval function and is very dangerous. Even more than running it in a regular web browser. Any JavaScript files you put in there will have access to all the data on all your tabs through the Chrome Extension APIs. Please be careful and use only well known libraries.
Head on over the the Chrome Web Store and try it out.

UPDATE: I just pushed out a fix for a regression introduced with loading libraries. While I was at it, I added a few new features. There is now a toggle for the panel and a clear message about it's usage of eval.

Wednesday, April 23, 2014


I have written a program called Reciplease. I wrote it as a Christmas present for my mom. It is a completely offline recipe organizer. It runs as a shareable *.exe that can be emailed and self installs. The recipes are each stored in a separate file so they can be organized how you like. This program is free to use.

Voting Software

I have written some voting software for use in school elections. It was written in conjunction with my local high school to replace their current solution. If you are interested, please contact me. I can give you further details and pricing. I am also willing to make modifications for your needs.


Welcome to Jonathan Duck's Computer Blog. I am just getting started with this blog. I will be talking about cool computer tricks, programming, and software. I have done Windows, Linux, Android, and web development. Maybe some fireknife. Enjoy.

Sunday, September 5, 2010

Open *.xbap Files in Google Chrome

OUTDATED: This will no longer work because Chrome only allows using the Pepper Plugin API for plugins. On a side note, I was very new to programming when I wrote this, (it says published 2014, but I copied it from a site I don't use written in 2010). I would now dissuade anyone from using the .NET framework, especially the WPF,  for most projects due to vendor lock-in. The appropriate post date has been updated.

You may have happened across a web program that can only be opened in Windows in Internet Explorer or Firefox. The program may have had the extension .xbap this is the extension for what is called a WPF (Windows Presentation Foundation) program. If this is the case then you may want to open this in Google Chrome. I did so I came up with a solution.

If you want the quick solution then unzip these files into your Google Chrome directory using the following steps. Sorry but this still only will work on Windows, no fixes for Mac or Linux yet.
  1. Download the "Xbap for Chrome.zip" file and open it.
  2. Select everything in the file and copy (Ctrl+C) them.
  3. Find a shortcut to Chrome (you should have one if you use it) and right-click on it and choose properties
  4. Click on the button "Find Target" or "Open File Location" to open  the Google Chrome Application folder.
  5. Paste the files into this folder (Ctrl+V)
  6. You should be able to open an *.xbap file and see the application.

Tuesday, August 3, 2010

"Search this Site" from any site with a Bookmarklet or Chrome Omnibox

If you don't already have Google Chrome, I recommend it. Otherwise this can be adapted for FireFox, Internet Explorer, Safari, or any other web browser.

For Google Chrome just copy and paste the code in the URL field for a new Search engine.
Just click the Wrench icon>Options>Manage>Add


To use this just type the keyword you chose followed by what you want to search for.

If you want a bookmark that you can use in any browser, including Chrome, just make a new bookmark with the URL set to this.
javascript:Qr=prompt("Search this Site");if(Qr)location.href='http://www.google.com/search?&q=site:'+encodeURIComponent(window.location.hostname)+'+'+escape(Qr)

To use this one just click on your favorite, bookmark, or link and type what you want to search in the box.