@ -194,13 +194,13 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
//td = td.replace(/(#([\w]+))/g,"<a href='http://twitter.com/#search?q=%23$2' target='_blank'>$1</a>");
twit += td ;
twit += "</p></blockquote>" ;
twit += " <a href='https://twitter.com/" + d . user . screen _name + "/status/" + d . id _str + "' target='_blank' alt='link to original tweet' title='link to original tweet'>" + "<span class='created-at'></span>" + " </a>";
//twit += " <a href='https://twitter.com/" + d.user.screen_name + "/status/" + d.id_str + "' target='_blank' alt='link to original tweet' title='link to original tweet'>" + "<span class='created-at'></span>" + " </a>";
twit += "<div class='vcard author'>" ;
twit += "<a class='screen-name url' href='https://twitter.com/" + d . user . screen _name + "' data-screen-name='" + d . user . screen _name + "' target='_blank'>" ;
twit += "<span class='avatar'><img src=' " + d . user . profile _image _url + "' alt=''></span>" ;
twit += "<span class='fn'>" + d . user . name + "</span>" ;
twit += "<span class='nickname'>@" + d . user . screen _name + "</span>" ;
twit += "<span class='nickname'>@" + d . user . screen _name + "<span class='thumbnail-inline'></span>< /span>" ;
twit += "</a>" ;
twit += "</div>" ;
@ -619,14 +619,15 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
wikipedia : {
get : function ( url , id ) {
var api _obj = { url : url , id : id } ;
get : function ( url , id , lang ) {
var api _obj = { url : url , id : id , lang : lang } ;
VMM . master _config . wikipedia . que . push ( api _obj ) ;
VMM . master _config . wikipedia . active = true ;
} ,
create : function ( api _obj ) {
var the _url = "http://" + VMM . master _config . language . api . wikipedia + ".wikipedia.org/w/api.php?action=query&prop=extracts&redirects=&titles=" + api _obj . url + "&exintro=1&format=json&callback=?" ;
var the _url = "http://" + api _obj . lang + ".wikipedia.org/w/api.php?action=query&prop=extracts&redirects=&titles=" + api _obj . url + "&exintro=1&format=json&callback=?" ;
if ( VMM . Browser . browser == "Explorer" && parseInt ( VMM . Browser . version , 10 ) >= 7 && window . XDomainRequest ) {
var temp _text = "<h4><a href='http://" + VMM . master _config . language . api . wikipedia + ".wikipedia.org/wiki/" + api _obj . url + "' target='_blank'>" + api _obj . url + "</a></h4>" ;
temp _text += "<span class='wiki-source'>" + VMM . master _config . language . messages . wikipedia + "</span>" ;
@ -636,12 +637,21 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
VMM . getJSON ( the _url , function ( d ) {
if ( d . query ) {
var wiki _extract = VMM . Util . getObjectAttributeByIndex ( d . query . pages , 0 ) . extract ;
var wiki _title = VMM . Util . getObjectAttributeByIndex ( d . query . pages , 0 ) . title ;
var _wiki = "" ;
var wiki _text = "" ;
var wiki _text _array = wiki _extract . split ( "<p>" ) ;
var wiki _number _of _paragraphs = 1 ;
var wiki _extract ,
wiki _title ,
_wiki = "" ,
wiki _text = "" ,
wiki _number _of _paragraphs = 1 ,
wiki _text _array = [ ] ;
wiki _extract = VMM . Util . getObjectAttributeByIndex ( d . query . pages , 0 ) . extract ;
wiki _title = VMM . Util . getObjectAttributeByIndex ( d . query . pages , 0 ) . title ;
if ( wiki _extract . match ( "<p>" ) ) {
wiki _text _array = wiki _extract . split ( "<p>" ) ;
} else {
wiki _text _array . push ( wiki _extract ) ;
}
for ( var i = 0 ; i < wiki _text _array . length ; i ++ ) {
if ( i + 1 <= wiki _number _of _paragraphs && i + 1 < wiki _text _array . length ) {