Bewap is a project mainly written in JavaScript, it's free.
Chrome plugin that makes you complete a task before going to a distracting site
BEWAP is a Chrome plugin that makes you complete a task (e.g. reCAPTCHA or identifying a flash card) before letting you through to your favorite distracting sites.