1/** 2 * @version $Id: twitter.js 489 2010-01-23 07:57:05Z happynoodleboy $ 3 * @package JCE MediaBox 4 * @copyright Copyright (C) 2009 - 2010 Ryan Demmer. All rights reserved. 5 * @license GNU/GPL 6 * This version may have been modified pursuant 7 * to the GNU General Public License, and as distributed it includes or 8 * is derivative of works licensed under the GNU General Public License or 9 * other free or open source software licenses. 10 */ 11JCEMediaBox.Popup.setAddons('flash', { 12 /** 13 * Twitvid - http://www.twitvid.com 14 * @param {String} v URL 15 */ 16 twitvid: function(v) { 17 if (/twitvid(.+)\/(.+)/.test(v)) { 18 19 var s = 'http://www.twitvid.com/player/'; 20 21 return { 22 width: 425, 23 height: 344, 24 type: 'flash', 25 'allowFullScreen' : true, 26 'allowscriptaccess' : 'always', 27 'allowNetworking' : 'all', 28 'wmode': 'transparent', 29 'src': v.replace(/(.+)twitvid([^\/]+)\/(.+)/, function(a, b, c, d){ 30 return s + d; 31 }) 32 }; 33 } 34 } 35}); 36JCEMediaBox.Popup.setAddons('image', { 37 /** 38 * Twitpic - http://www.twitpic.com 39 * @param {String} v URL 40 */ 41 twitpic: function(v) { 42 if (/twitpic(.+)\/(.+)/.test(v)) { 43 return { 44 type : 'image' 45 }; 46 } 47 } 48});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.