/********************************************************************* * #### Twitter Post Fetcher v16.0.1 #### * Coded by Jason Mayes 2015. A present to all the developers out there. * www.jasonmayes.com * Please keep this disclaimer with my code if you use it. Thanks. :-) * Got feedback or questions, ask here: * http://www.jasonmayes.com/projects/twitterApi/ * Github: https://github.com/jasonmayes/Twitter-Post-Fetcher * Updates will be posted to this site. *********************************************************************/ (function(C,p){"function"===typeof define&&define.amd?define([],p):"object"===typeof exports?module.exports=p():p()})(this,function(){function C(a){if(null===r){for(var f=a.length,b=0,k=document.getElementById(D),g=""}else r(a)}function p(a){return a.replace(/]*>(.*?)<\/b>/gi,function(a,b){return b}).replace(/class="(?!(tco-hidden|tco-display|tco-ellipsis))+.*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"")}function E(a){a=a.getElementsByTagName("a"); for(var f=a.length-1;0<=f;f--)a[f].setAttribute("target","_blank")}function l(a,f){for(var b=[],k=new RegExp("(^| )"+f+"( |$)"),g=a.getElementsByTagName("*"),h=0,d=g.length;hf&&(a.splice(f,a.length-f),k.splice(f,k.length-f),g.splice(f,g.length-f),d.splice(f,d.length-f),h.splice(f,h.length-f),n.splice(f,n.length-f));var b=[],e=a.length,c=0;if(K)for(;c'+p(k[c].innerHTML)+""),d+='

'+p(a[c].innerHTML)+"

",y&&(d=J?d+('

'+g[c].getAttribute("aria-label")+"

"):d+('

'+ g[c].getAttribute("aria-label")+"

"))):(w&&(d+='

'+k[c].textContent+"

"),d+='

'+a[c].textContent+"

",y&&(d+='

'+g[c].textContent+"

"));H&&(d+='

");I&&void 0!==h[c]&&(d+='
Image from tweet
');b.push(d);c++}C(b);x=!1;0