From a9ddad2b798f2c105b8899aec3d689bf56c34a27 Mon Sep 17 00:00:00 2001 From: Anton Andriyevskyy Date: Wed, 14 Aug 2013 15:49:40 +0300 Subject: [PATCH] Add oneboxers for popular learning resources --- lib/oneboxer/whitelist.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/oneboxer/whitelist.rb b/lib/oneboxer/whitelist.rb index be247cbe6ad..1eb56c41e0d 100644 --- a/lib/oneboxer/whitelist.rb +++ b/lib/oneboxer/whitelist.rb @@ -88,7 +88,14 @@ module Oneboxer Entry.new(/^https?:\/\/(?:www\.)?tumblr\.com\/.+/, false), Entry.new(/^https?:\/\/(?:www\.)?howtogeek\.com\/.+/, false), Entry.new(/\/\d{4}\/\d{2}\/\d{2}\//, false), # wordpress - Entry.new(/^https?:\/\/[^\/]+\/t\/[^\/]+\/\d+(\/\d+)?(\?.*)?$/) + Entry.new(/^https?:\/\/[^\/]+\/t\/[^\/]+\/\d+(\/\d+)?(\?.*)?$/), + + # Online learning resources + Entry.new(/^https?:\/\/(?:www\.)?coursera\.org\/.+/, false), + Entry.new(/^https?:\/\/(?:www\.)?khanacademy\.org\/.+/, false), + Entry.new(/^https?:\/\/(?:www\.)?ted\.com\/talks\/.+/, false), # only /talks have meta info + Entry.new(/^https?:\/\/(?:www\.)?wikihow\.com\/.+/, false), + Entry.new(/^https?:\/\/(?:\w+\.)?wonderhowto\.com\/.+/, false) ] end