Widgets and Burritos Blog

Make Cleverbot Talk to Itself with jQuery and GreaseMonkey

Cleverbot is an artificial intelligence conversation bot. It can have somewhat “intelligent” conversations with you. If you’ve never tried it, do it now.

Today I decided to combine the amusement of Cleverbot with GreaseMonkey for FireFox to make it have a conversation with itself. GreaseMonkey allows you to run local JavaScript on top of any site. In this case, we’re doing it on Cleverbot.com. Since Cleverbot provides a “Think for Me” button that will automatically start a conversation, I just created a JavaScript timer to press that button every 2 seconds. For whatever reason, I decided to use jQuery instead of pure javascript to find the button. It’s not a big deal either way.

This was done purely for my own amusement and is no means useful for any purposes other than that. Feel free to tweak it as you see fit.

Download the script

Continue Reading »

Simplified HTML5 Video in WordPress using Degradable HTML5 Audio and Video and Advanced Custom Fields plugins

I was recently working on a WordPress site that needed HTML5 video. While researching plugins, I came across the Degradable HTML5 Audio and Video plugin. According to the developer, the plugin does the following:

  1. If the user has an HTML5 support for video and audio, it will play the media natively in an appropriate format.
  2. Otherwise, if the user hasĀ Flash, it will play the media in lightweight Flash players.
  3. Otherwise, there will be a link for the audio or video files so that the user can still play them using their installed software players.

Continue Reading »

Customizing your WordPress template to set images within blog post content as Facebook thumbnail

Using the og:image meta property tag, Facebook allows you to manually set the thumbnail for the page. For example:

<meta property=”og:image” content=”http://www.widgetsandburritos.com/wp-content/uploads/154349_182859125063635_118277658188449_731837_4043510_n-300×231.jpg” />

This code would set the thumbnail to:
I want to draw a cat for you
Resulting in:
Facebook Thumbnail

Continue Reading »

Facebook Comments – Require CAPTCHA – Unknown Error

***NOTE: This post was about a specific error within the Facebook Commenting IFrame System on external websites that Facebook had in May 2011. That specific bug has been fixed by Facebook. If you are seeing the CAPTCHA within Facebook itself, this is not the same error I was referring to. This usually indicates there is a problem with your specific Facebook account, not a bug in the Facebook Commenting API.***

Today I noticed an error with the IFrame version of the Facebook Commenting System. When commenting (only on certain domains), it popped up a “Require CAPTCHA – Unknown Error” message:

Continue Reading »

Request a Quote