jQuery.ajax=(function(e){var g=location.protocol,a=location.hostname,c=RegExp(g+"//"+a),b="http"+(/^https/.test(g)?"s":"")+"://query.yahooapis.com/v1/public/yql?callback=?",f='select * from html where url="{URL}" and xpath="*"';function d(h){return !c.test(h)&&/:\/\//.test(h)}return function(i){var h=i.url;if(/get/i.test(i.type)&&!/json/i.test(i.dataType)&&d(h)){i.url=b;i.dataType="json";i.data={q:f.replace("{URL}",h+(i.data?(/\?/.test(h)?"&":"?")+jQuery.param(i.data):"")),format:"xml"};if(!i.success&&i.complete){i.success=i.complete;delete i.complete}i.success=(function(j){return function(k){if(j){j.call(this,{responseText:k.results[0].replace(/<script[^>]+?\/>|<script(.|\s)*?\/script>/gi,"")},"success")}}})(i.success)}return e.apply(this,arguments)}})(jQuery.ajax);
