Coder Social home page Coder Social logo

infinitely_stellar's People

Contributors

metavida avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yacomink

infinitely_stellar's Issues

Auto-pagination fails if page contains <script> tags

For example, if you visit http://stellar.io/pax/jhTZ and then scroll to the bottom the contents of the page will be replaced with a pair of email addresses.

The problem is that one of the tweets on the following page contains the following HTML (to protect the email addresses from screen scraping).

<p class="tweet">One thing is to sign up for LinkedIn with <script type="text/javascript">
    //<![CDATA[
    var l=new Array();
    l[0]='>';l[1]='a';l[2]='/';l[3]='<';l[4]='|109';l[5]='|111';l[6]='|99';l[7]='|46';l[8]='|121';l[9]='|110';l[10]='|97';l[11]='|112';l[12]='|109';l[13]='|111';l[14]='|99';l[15]='|64';l[16]='|117';l[17]='|111';l[18]='|121';l[19]='>';l[20]='"';l[21]='|109';l[22]='|111';l[23]='|99';l[24]='|46';l[25]='|121';l[26]='|110';l[27]='|97';l[28]='|112';l[29]='|109';l[30]='|111';l[31]='|99';l[32]='|64';l[33]='|117';l[34]='|111';l[35]='|121';l[36]=':';l[37]='o';l[38]='t';l[39]='l';l[40]='i';l[41]='a';l[42]='m';l[43]='"';l[44]='=';l[45]='f';l[46]='e';l[47]='r';l[48]='h';l[49]=' ';l[50]='a';l[51]='<';
    for (var i = l.length-1; i >= 0; i=i-1){
    if (l[i].substring(0, 1) == '|') document.write("&#"+unescape(l[i].substring(1))+";");
    else document.write(unescape(l[i]));}
    //]]>
    </script>, another is with <script type="text/javascript">
    //<![CDATA[
    var l=new Array();
    l[0]='>';l[1]='a';l[2]='/';l[3]='<';l[4]='|109';l[5]='|111';l[6]='|99';l[7]='|46';l[8]='|121';l[9]='|110';l[10]='|97';l[11]='|112';l[12]='|109';l[13]='|111';l[14]='|99';l[15]='|64';l[16]='|108';l[17]='|108';l[18]='|97';l[19]='>';l[20]='"';l[21]='|109';l[22]='|111';l[23]='|99';l[24]='|46';l[25]='|121';l[26]='|110';l[27]='|97';l[28]='|112';l[29]='|109';l[30]='|111';l[31]='|99';l[32]='|64';l[33]='|108';l[34]='|108';l[35]='|97';l[36]=':';l[37]='o';l[38]='t';l[39]='l';l[40]='i';l[41]='a';l[42]='m';l[43]='"';l[44]='=';l[45]='f';l[46]='e';l[47]='r';l[48]='h';l[49]=' ';l[50]='a';l[51]='<';
    for (var i = l.length-1; i >= 0; i=i-1){
    if (l[i].substring(0, 1) == '|') document.write("&#"+unescape(l[i].substring(1))+";");
    else document.write(unescape(l[i]));}
    //]]>
    </script>. And try password reset 2 years after you leave.
</p>

My theory is that the jQuery ajax calls I use to grab the next page's contents automatically executes any code it finds in <script> tags.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.