(function(E,q){"function"===typeof define&&define.amd?define([],q):"object"===typeof exports?module.exports=q():q()})(this,function(){function E(a){if(null===t){for(var g=a.length,b=0,k=document.getElementById(F),f=""}else t(a)}function q(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 G(a){a=a.getElementsByTagName("a");for(var g=a.length-1;0<=g;g--)a[g].setAttribute("target","_blank")}function l(a,g){for(var b=[],k=new RegExp("(^| )"+g+"( |$)"),f=a.getElementsByTagName("*"),h=0,d=f.length;h]*>)|(]*>)/g,"");u||(a.body=a.body.replace(/(]*>|(]*>))/g,""));n||(a.body=a.body.replace(/(]*>)/g,""));var b=document.createElement("div");b.innerHTML=a.body;"undefined"===typeof b.getElementsByClassName&&(C=!1);a=[];var k=[],f=[],h=[],d=[],r=[],p=[],e=0;if(C)for(b=b.getElementsByClassName("timeline-Tweet");eg&&(a.splice(g,a.length-g),k.splice(g,k.length-g),f.splice(g,f.length-g),d.splice(g,d.length-g),h.splice(g,h.length-g),p.splice(g,p.length-g));var b=[],e=a.length,c=0;if(K)for(;c'+q(k[c].innerHTML)+""),d+='

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

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

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

"):d+('

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

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

'+k[c].textContent+"

"),d+='

'+a[c].textContent+"

",A&&(d+='

'+f[c].textContent+"

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

");u&&void 0!==h[c]&&void 0!==y(h[c])&&(d+='
Image from tweet
');u?b.push(d):!u&&a[c].textContent.length&&b.push(d);c++}E(b);z=!1;0