Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>readability is a javascript bookmarklet. meaning its client side code that manipulates the DOM. Look at the javascript and you should be able to see whats going on. </p> <p>Readability's workflow and code:</p> <pre><code>/* * 1. Prep the document by removing script tags, css, etc. * 2. Build readability's DOM tree. * 3. Grab the article content from the current dom tree. * 4. Replace the current DOM tree with the new one. * 5. Read peacefully. */ javascript: (function () { readConvertLinksToFootnotes = false; readStyle = 'style-newspaper'; readSize = 'size-medium'; readMargin = 'margin-wide'; _readability_script = document.createElement('script'); _readability_script.type = 'text/javascript'; _readability_script.src = 'http://lab.arc90.com/experiments/readability/js/readability.js?x=' + (Math.random()); document.documentElement.appendChild(_readability_script); _readability_css = document.createElement('link'); _readability_css.rel = 'stylesheet'; _readability_css.href = 'http://lab.arc90.com/experiments/readability/css/readability.css'; _readability_css.type = 'text/css'; _readability_css.media = 'all'; document.documentElement.appendChild(_readability_css); _readability_print_css = document.createElement('link'); _readability_print_css.rel = 'stylesheet'; _readability_print_css.href = 'http://lab.arc90.com/experiments/readability/css/readability-print.css'; _readability_print_css.media = 'print'; _readability_print_css.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(_readability_print_css); })(); </code></pre> <p>And if you follow the JS and CSS files that the above code pulls in you'll get the whole picture:</p> <p><a href="http://lab.arc90.com/experiments/readability/js/readability.js" rel="noreferrer">http://lab.arc90.com/experiments/readability/js/readability.js</a> (this is pretty well commented, interesting reading)</p> <p><a href="http://lab.arc90.com/experiments/readability/css/readability.css" rel="noreferrer">http://lab.arc90.com/experiments/readability/css/readability.css</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload