Browse files

Readable++: add support for Pygments

  • Loading branch information...
1 parent 6edc7c9 commit 5df447768dc8ca38463872703f593529a3b88fcf @janmoesen committed Oct 12, 2012
Showing with 6 additions and 2 deletions.
  1. +2 −2 bookmarks.html
  2. +4 −0 read.js
View
4 bookmarks.html
@@ -42,7 +42,7 @@
See COPYING for licence details. Or "license details", if you are so inclined.
-These bookmarks were exported on Sun, 2012/09/30 16:25:11 +0200.</P>
+These bookmarks were exported on Fri, 2012/10/12 10:14:00 +0200.</P>
<DL><P>
<DT><H3>Development</H3>
<DD><P>Tools to help development.</P>
@@ -264,7 +264,7 @@
<DT><A HREF="javascript:%28function%20tdwtf%28%29%20%7Bdocument.head.appendChild%28document.createElement%28%27style%27%29%29.textContent%20%3D%20%27.ForumPostFooterArea%2C%20.ForumPostSignature%20%7Bborder-top%3A%201px%20dotted%3B%20font-size%3A%20smaller%3B%7D.ForumPostFooterArea%20li%3Aempty%20%7Bdisplay%3A%20none%3B%7D.ForumPostUserContent%20%7Bpadding-right%3A%201em%3B%7D%3Avisited%2C%20.ForumLastPost%20a%20%7Bopacity%3A%200.25%3B%7Dtr%3Ahover%20th%2C%20tr%3Ahover%20td%3Anot%28.code%29%2C%20tr%20th%3Ahover%2C%20tr%20td%3Anot%28.code%29%3Ahover%20%7Bbackground%3A%20inherit%3B%7D%27%3B%7D%29%28%29%3B" ADD_DATE="1306533777" LAST_MODIFIED="1322424840" SHORTCUTURL="tdwtf">TDWTF</A>
<DD><P>Fix the forum for The Daily WTF after having applied Readable++.</P></DD>
</DL>
-<DT><A HREF="javascript:%28function%20read%28%29%20%7Bvar%20id%20%3D%20%27jan-css%27%3Bvar%20css%20%3D%20%27%40namespace%20svg%20%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3B%2A%20%7Bline-height%3A%201.5%3B%7Dhtml%20%7Bbackground%3A%20%23fff%3Bcolor%3A%20%23222%3B%7Dbody%20%7Bmax-width%3A%2052em%3Bmargin%3A%200%20auto%3Bpadding%3A%201em%3Bfont-family%3A%20%22Calibri%22%2C%20sans-serif%3B%7D%3Alink%20%7Bcolor%3A%20%2300e%3B%7D%3Avisited%20%7Bcolor%3A%20%23528%3B%7D%3Alink%3Afocus%2C%20%3Avisited%3Afocus%2C%20%3Alink%3Ahover%2C%20%3Avisited%3Ahover%20%7Bcolor%3A%20%23e30%3B%7D%3Alink%3Aactive%2C%20%3Avisited%3Aactive%20%7Bcolor%3A%20%23e00%3B%7Dcenter%2C%20%5Balign%5D%20%7Btext-align%3A%20left%3B%7Db%3Anot%28.%27%20%2B%20id%20%2B%20%27-probably-structure%29%2C%20u%2C%20blink%20%7Bfont-weight%3A%20inherit%3Bfont-style%3A%20inherit%3Btext-decoration%3A%20inherit%7Db.%27%20%2B%20id%20%2B%20%27-probably-structure%20%7Bfont-size%3A%20larger%3B%7D.%27%20%2B%20id%20%2B%20%27-probably-layout%20%7Bfont%3A%20inherit%3B%7Dpre%20%7Bpadding%3A%201ex%3Bborder%3A%201px%20dotted%3B%7Dcode%2C%20pre%2C%20.syntaxhighlighter%2C%20.dp-highlighter%20%7Bfont-family%3A%20%22Consolas%22%2C%20monospace%3Bfont-size%3A%20small%3Bbackground%3A%20%23ffe%3B%7D.dp-highlighter%20%2B%20pre%5Bname%3D%22code%22%5D%20%7Bdisplay%3A%20none%3B%7Dtextarea%20%7Bwidth%3A%20100%25%3Bheight%3A%2032ex%3B%7Dth%2C%20td%20%7Bvertical-align%3A%20top%3Btext-align%3A%20left%3Bpadding%3A%200.5ex%3B%7D.%27%20%2B%20id%20%2B%20%27-has-tables-for-layout%20td%20%7Bdisplay%3A%20inline-block%3B%7Dcaption%20%7Bfont-weight%3A%20bold%3Bborder-bottom%3A%201px%20dotted%3B%7Dbody%3Anot%28%3Ahover%29%20img%2C%20body%3Anot%28%3Ahover%29%20input%5Btype%3D%22image%22%5D%2C%20body%3Anot%28%3Ahover%29%20object%2C%20body%3Anot%28%3Ahover%29%20embed%2C%20body%3Anot%28%3Ahover%29%20video%2C%20body%3Anot%28%3Ahover%29%20audio%2C%20body%3Anot%28%3Ahover%29%20iframe%2C%20body%3Anot%28%3Ahover%29%20canvas%2C%20body%3Anot%28%3Ahover%29%20%3Anot%28svg%7C%2A%29%20%3E%20svg%7C%2A%20%7Bopacity%3A%200.25%3B%7D.cufon-canvas%20canvas%20%7Bdisplay%3A%20none%3B%7D.post_share%2C%20%23janrain-social-sharebar%2C%20%23sharebar%20%7Bdisplay%3A%20none%3Bleft%3A%20-1000px%3B%7D.postprofile%2C%20.signature%20%7Bfont-size%3A%20smaller%3Bborder-top%3A%201px%20dotted%3Bopacity%3A%200.5%3B%7D.google-src-text%20%7Bdisplay%3A%20none%3B%7Diframe%5Bsrc%2A%3D%22.facebook.com%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22.twitter.com%2Fwidgets%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fplusone.google.com%2F_%2F%2B1%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fwww.reddit.com%2Fstatic%2Fbutton%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fs7.addthis.com%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fwww.stumbleupon.com%2Fbadge%2Fembed%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fwidgets.bufferapp.com%2F%22%5D%20%7Bwidth%3A%2012em%3Bheight%3A%204ex%3Bborder%3A%201px%20dotted%3B%7D.twtr-widget.twtr-scroll%20%7Bmax-height%3A%2030ex%3Boverflow%3A%20auto%3B%7D%5Bstyle%2A%3D%22position%3A%20fixed%22%5D%2C%20%5Bstyle%2A%3D%22position%3Afixed%22%5D%20%7Bposition%3A%20static%20%21important%3B%7D%27%3Bvar%20dataTableCss%20%3D%20%27tr%3Anth-child%28odd%29%20td%3Anot%28.%27%20%2B%20id%20%2B%20%27-active-col%29%20%7Bbackground%3A%20%23eef%3B%7Dtr%3Ahover%20td%3Anot%28.code%29%2C%20.%27%20%2B%20id%20%2B%20%27-active-col%20%7Bbackground%3A%20%23ddf%3B%7Dth%2C%20tr%20td%3Anot%28.code%29%3Ahover%20%7Bbackground%3A%20%23bbf%3B%7Dth%20code%2C%20td%20code%20%7Bbackground%3A%20inherit%3B%7D%27%3Bvar%20attrs%20%3D%20%5B%27style%27%2C%27background%27%2C%20%27bgcolor%27%2C%20%27color%27%2C%20%27text%27%2C%20%27link%27%2C%20%27vlink%27%2C%20%27alink%27%2C%20%27hlink%27%2C%27table%40width%27%2C%20%27colgroup%40width%27%2C%20%27col%40width%27%2C%20%27tr%40width%27%2C%20%27td%40width%27%2C%20%27th%40width%27%2C%20%27table%40height%27%2C%20%27tr%40height%27%2C%20%27td%40height%27%2C%20%27th%40height%27%2C%27border%27%2C%27frameborder%27%2C%27align%27%2C%27face%27%2C%20%27font%40size%27%2C%20%27basefont%40size%27%5D%3Bvar%20contentSelectors%20%3D%20%5B%27%3Anot%28body%29%23article%27%2C%27article%3Anot%28.p_like%29%3Anot%28.p_response%29%2C%20%3Anot%28%23spotlight%29%20%3E%20%3Anot%28body%29.article%2C%20.articleContent%27%2C%27%23article_top%27%2C%27%23article_body%27%2C%27%23article_main%27%2C%27.post-body%3Anot%28.field-item%29%27%2C%27%3Anot%28input%29%3Anot%28textarea%29.post%2C%20%3Anot%28input%29%3Anot%28textarea%29.blogpost%2C%20%3Anot%28input%29%3Anot%28textarea%29.blogPost%27%2C%27%5Bid%5E%3D%22post0%22%5D%2C%20%5Bid%5E%3D%22post1%22%5D%2C%20%5Bid%5E%3D%22post2%22%5D%2C%20%5Bid%5E%3D%22post3%22%5D%2C%20%5Bid%5E%3D%22post4%22%5D%2C%20%5Bid%5E%3D%22post5%22%5D%2C%20%5Bid%5E%3D%22post6%22%5D%2C%20%5Bid%5E%3D%22post7%22%5D%2C%20%5Bid%5E%3D%22post8%22%5D%2C%20%5Bid%5E%3D%22post9%22%5D%2C%20%5Bid%5E%3D%22post-0%22%5D%2C%20%5Bid%5E%3D%22post-1%22%5D%2C%20%5Bid%5E%3D%22post-2%22%5D%2C%20%5Bid%5E%3D%22post-3%22%5D%2C%20%5Bid%5E%3D%22post-4%22%5D%2C%20%5Bid%5E%3D%22post-5%22%5D%2C%20%5Bid%5E%3D%22post-6%22%5D%2C%20%5Bid%5E%3D%22post-7%22%5D%2C%20%5Bid%5E%3D%22post-8%22%5D%2C%20%5Bid%5E%3D%22post-9%22%5D%27%2C%27%23entry%27%2C%27.entry%27%2C%27%23content%27%2C%27.content%27%2C%27%5Bid%5E%3D%22content%22%5D%2C%20%5Bclass%5E%3D%22content%22%5D%27%2C%27%23main%27%2C%27.main%27%2C%27h1%3Anot%28%3Aempty%29%27%2C%27%23header%27%2C%27header%27%2C%27.header%27%2C%27h2%27%2C%27big%27%5D%3Bvar%20structureElementsForLayoutSelectors%20%3D%20%5B%27%2F%2F%2A%5Bcontains%28%22%20h1%20h2%20h3%20h4%20h5%20h6%20h7%20%22%2C%20concat%28%22%20%22%2C%20local-name%28%29%2C%20%22%20%22%29%29%20and%20string-length%28normalize-space%28%29%29%20%3E%20120%5D%27%5D%3Bvar%20layoutElementsForStructureSelectors%20%3D%20%5B%27br%20%2B%20b%20%2B%20br%27%2C%27div%20%3E%20b%3Aonly-child%2C%20p%20%3E%20b%3Aonly-child%27%5D%3Bvar%20syntaxHighlightHrefRegex%20%3D%20%2F%5Cb%28%28syntax%7Cpygments%29%28hi%28ghlight%28er%29%3F%7Clite%28r%29%3F%29%29%3F%7Csh%28Core%7CTheme%5B%5E.%5D%2A%29%7Cgeshi%7Ccodecolorer%29%5B.%2F%5D%2Fi%3B%28function%20execute%28document%29%20%7Bfunction%20addClass%28element%2C%20classNames%29%20%7BclassNames.split%28%2F%5Cs%2B%2F%29.forEach%28function%20%28className%29%20%7Belement.className%20%3D%20%28%28%27%20%27%20%2B%20element.className%20%2B%20%27%20%27%29.replace%28%27%20%27%20%2B%20className.trim%28%29%20%2B%20%27%20%27%2C%20%27%27%29%20%2B%20%27%20%27%20%2B%20className%29.trim%28%29%3B%7D%29%3B%7Dfunction%20removeClass%28element%2C%20classNames%29%20%7BclassNames.split%28%2F%5Cs%2B%2F%29.forEach%28function%20%28className%29%20%7Belement.className%20%3D%20%28%27%20%27%20%2B%20element.className%20%2B%20%27%20%27%29.replace%28%27%20%27%20%2B%20className.trim%28%29%20%2B%20%27%20%27%2C%20%27%27%29.trim%28%29%3B%7D%29%3B%7Dfunction%20toArray%28arrayLike%29%20%7Breturn%20Array.prototype.slice.call%28arrayLike%29%3B%7Dvar%20all%20%3D%20toArray%28document.getElementsByTagName%28%27%2A%27%29%29%2C%20%20%20%20ourStyleSheet%20%3D%20document.getElementById%28id%29%2C%20%20%20%20allStyleSheets%20%3D%20toArray%28document.styleSheets%29%2C%20%20%20%20prettyPrintStyleSheet%2C%20%20%20%20matches%3Bwindow.TextResizeDetector%20%26%26%20TextResizeDetector.stopDetector%20%26%26%20TextResizeDetector.stopDetector%28%29%3Bif%20%28%21ourStyleSheet%29%20%7B%28ourStyleSheet%20%3D%20document.createElement%28%27style%27%29%29.id%20%3D%20id%3BourStyleSheet.innerHTML%20%3D%20css%3Bvar%20hasTablesForLayout%20%3Ddocument.querySelector%28%27table%20table%27%29%20%7C%7CtoArray%28document.querySelectorAll%28%27table%27%29%29.some%28function%20%28table%29%20%7Bif%20%28document.compatMode%20%3D%3D%3D%20%27BackCompat%27%20%26%26%20document.documentElement.scrollHeight%20%3E%20window.innerHeight%20%26%26%20table.scrollHeight%20%3E%203%2F4%20%2A%20document.documentElement.scrollHeight%29%20%7Breturn%20true%3B%7Dif%20%28table.rows.length%20%3C%203%29%20%7Breturn%20false%3B%7Dvar%20numCellsPerRow%20%3D%20%5B%5D%3BtoArray%28table.rows%29.forEach%28function%20%28row%29%20%7Bif%20%28numCellsPerRow.indexOf%28row.cells.length%29%20%3D%3D%3D%20-1%29%20%7BnumCellsPerRow.push%28row.cells.length%29%3B%7D%7D%29%3Breturn%20%28%28document.compatMode%20%3D%3D%3D%20%27BackCompat%27%20%26%26%20numCellsPerRow.length%20%3E%3D%203%29%20%7C%7C%28numCellsPerRow.length%20%3D%3D%3D%201%20%26%26%20numCellsPerRow%5B0%5D%20%3D%3D%3D%201%29%29%3B%7D%29%3Bif%20%28hasTablesForLayout%29%20%7Bvar%20bodyClassName%20%3D%20id%20%2B%20%27-has-tables-for-layout%27%3BaddClass%28document.body%2C%20bodyClassName%29%3B%7D%20else%20%7BourStyleSheet.innerHTML%20%2B%3D%20dataTableCss%3Bfunction%20columnMouseHandler%28e%29%20%7Bif%20%28%21%2F%5Et%5Bdh%5D%24%2Fi.test%28%27%27%20%2B%20e.target.nodeName%29%29%20%7Breturn%3B%7Dvar%20targetCell%20%3D%20e.target%2C%20nthChild%20%3D%20targetCell.cellIndex%20%2B%201%2C%20table%20%3D%20targetCell.parentNode%3Bwhile%20%28table%20%26%26%20table.nodeName.toLowerCase%28%29%20%21%3D%3D%20%27table%27%29%20%7Btable%20%3D%20table.parentNode%3B%7Dvar%20activeColumnClassName%20%3D%20id%20%2B%20%27-active-col%27%3BtoArray%28table.querySelectorAll%28%27td%3Anth-child%28%27%20%2B%20nthChild%20%2B%20%27%29%27%29%29.forEach%28function%20%28cell%29%20%7Bif%20%28e.type%20%3D%3D%3D%20%27mouseenter%27%29%20%7BaddClass%28cell%2C%20activeColumnClassName%29%3B%7D%20else%20%7BremoveClass%28cell%2C%20activeColumnClassName%29%3B%7D%7D%29%3B%7Ddocument.addEventListener%28%27mouseenter%27%2C%20columnMouseHandler%2C%20true%29%3Bdocument.addEventListener%28%27mouseleave%27%2C%20columnMouseHandler%2C%20true%29%3B%7Ddocument.head.appendChild%28ourStyleSheet%29.disabled%20%3D%20true%3Bif%20%28document.querySelector%28%27.prettyprint%27%29%29%20%7BprettyPrintStyleSheet%20%3D%20document.createElement%28%27style%27%29%3BprettyPrintStyleSheet.textContent%20%3D%20%27%40import%20url%28http%3A%2F%2Fjanmoesen.github.com%2Fbookmarklets%2Fcss%2Fprettify.css%29%27%3Bdocument.head.appendChild%28prettyPrintStyleSheet%29%3B%7D%20else%20if%20%28document.querySelector%28%27.syntaxhighlighter%27%29%29%20%7BprettyPrintStyleSheet%20%3D%20document.createElement%28%27style%27%29%3BprettyPrintStyleSheet.textContent%20%3D%20%27%40import%20url%28http%3A%2F%2Fjanmoesen.github.com%2Fbookmarklets%2Fcss%2Fsyntaxhighlighter.css%29%27%3Bdocument.head.appendChild%28prettyPrintStyleSheet%29%3B%7Dvar%20probablyLayoutClassName%20%3D%20id%20%2B%20%27-probably-layout%27%3BstructureElementsForLayoutSelectors.forEach%28function%20%28selector%29%20%7Bvar%20xpathResult%20%3D%20document.evaluate%28selector%2C%20document%2C%20null%2C%20XPathResult.ORDERED_NODE_SNAPSHOT_TYPE%2C%20null%29%3Bfor%20%28var%20i%20%3D%200%3B%20i%20%3C%20xpathResult.snapshotLength%3B%20i%2B%2B%29%20%7Bvar%20elem%20%3D%20xpathResult.snapshotItem%28i%29%3BaddClass%28elem%2C%20probablyLayoutClassName%29%3B%7D%7D%29%3Bvar%20probablyStructureClassName%20%3D%20id%20%2B%20%27-probably-structure%27%3BlayoutElementsForStructureSelectors.forEach%28function%20%28selector%29%20%7BtoArray%28document.querySelectorAll%28selector%29%29.forEach%28function%20%28elem%29%20%7Bif%20%28elem.tagName.toLowerCase%28%29%20%21%3D%3D%20%27b%27%29%20%7Belem%20%3D%20elem.previousElementSibling%3B%7DaddClass%28elem%2C%20probablyStructureClassName%29%3B%7D%29%3B%7D%29%3B%7Dfunction%20toggleStyles%28%29%20%7BourStyleSheet.disabled%20%3D%20%21ourStyleSheet.disabled%3Bif%20%28prettyPrintStyleSheet%29%20%7BprettyPrintStyleSheet.disabled%20%3D%20ourStyleSheet.disabled%3B%7DallStyleSheets.forEach%28function%20%28styleSheet%2C%20i%29%20%7Bif%20%28styleSheet.ownerNode%20%21%3D%3D%20ourStyleSheet%20%26%26%20%21syntaxHighlightHrefRegex.test%28styleSheet.href%29%29%20%7Bif%20%28ourStyleSheet%5Bid%20%2B%20%27-originally-disabled-%27%20%2B%20i%5D%20%3D%3D%3D%20undefined%29%20%7BourStyleSheet%5Bid%20%2B%20%27-originally-disabled-%27%20%2B%20i%5D%20%3D%20styleSheet.disabled%3B%7Dif%20%28ourStyleSheet.disabled%29%20%7BstyleSheet.disabled%20%3D%20ourStyleSheet%5Bid%20%2B%20%27-originally-disabled-%27%20%2B%20i%5D%3B%7D%20else%20%7BstyleSheet.disabled%20%3D%20true%3Btry%20%7Bif%20%28styleSheet.cssRules%5B0%5D%20%26%26%20styleSheet.cssRules%5B0%5D.type%20%3D%3D%3D%20styleSheet.cssRules%5B0%5D.IMPORT_RULE%20%26%26%20styleSheet.cssRules%5B0%5D.href%29%20%7BstyleSheet.disabled%20%3D%20%21styleSheet.cssRules%5B0%5D.href.match%28%2F%5Ehttp%3A%5C%2F%5C%2Fjanmoesen%5C.github%5C.com%5C%2F%2F%29%3B%7D%7D%20catch%20%28e%29%20%7B%7D%7D%7D%7D%29%3Ball.forEach%28function%20%28elem%2C%20i%29%20%7Battrs.forEach%28function%20%28attr%2C%20j%29%20%7Bif%20%28%21%28matches%20%3D%20attr.match%28%2F%28%5B%5E%40%5D%2B%29%40%28%5B%5E%40%5D%2B%29%2F%29%29%20%7C%7C%20%28elem.tagName%20%26%26%20elem.tagName.toLowerCase%28%29%20%3D%3D%20matches%5B1%5D%29%29%20%7Battr%20%3D%20matches%20%3F%20matches%5B2%5D%20%3A%20attr%3Bvar%20names%20%3D%20%7B%20enabled%3A%20attr%2C%20disabled%3A%20id%20%2B%20%27-%27%20%2B%20attr%20%7D%3Bif%20%28elem.hasAttribute%28names.enabled%29%29%20%7Belem.setAttribute%28names.disabled%2C%20elem.getAttribute%28names.enabled%29%29%3Belem.removeAttribute%28names.enabled%29%3B%7D%20else%20if%20%28elem.hasAttribute%28names.disabled%29%29%20%7Belem.setAttribute%28names.enabled%2C%20elem.getAttribute%28names.disabled%29%29%3Belem.removeAttribute%28names.disabled%29%3B%7D%7D%7D%29%3B%7D%29%3Bvar%20disabledStyleAttr%20%3D%20id%20%2B%20%27-style%27%3BtoArray%28document.querySelectorAll%28%27.wp_syntax%20%5B%27%20%2B%20disabledStyleAttr%20%2B%20%27%5D%27%29%29.forEach%28function%20%28elem%29%20%7Belem.setAttribute%28%27style%27%2C%20elem.getAttribute%28disabledStyleAttr%29%29%3Belem.removeAttribute%28disabledStyleAttr%29%3B%7D%29%3B%7Dfunction%20findContentElement%28%29%20%7Bif%20%28location.hash%29%20%7BcontentSelectors.unshift%28%27a%5Bname%3D%22%27%20%2B%20location.hash.substring%281%29%20%2B%20%27%22%5D%27%29%3BcontentSelectors.unshift%28location.hash.replace%28%2F%5C.%2Fg%2C%20%27%5C%5C.%27%29%29%3B%7Dfor%20%28var%20i%20%3D%200%3B%20i%20%3C%20contentSelectors.length%3B%20i%2B%2B%29%20%7Btry%20%7Bvar%20element%20%3D%20document.querySelector%28contentSelectors%5Bi%5D%29%3Bif%20%28element%20%26%26%20%28element.tagName.toLowerCase%28%29%20%3D%3D%3D%20%27a%27%20%7C%7C%20element.offsetWidth%20%7C%7C%20element.offsetHeight%29%29%20%7Bwindow.console%20%26%26%20console.log%28%27Readable%2B%2B%3A%20matching%20selector%3A%20%27%20%2B%20contentSelectors%5Bi%5D%20%2B%20%27%5CnElement%3A%20%27%2C%20element%29%3Breturn%20element%3B%7D%7Dcatch%20%28e%29%20%7Bwindow.console%20%26%26%20console.log%28%27Readable%2B%2B%3A%20bad%20selector%3A%20%27%20%2B%20contentSelectors%5Bi%5D%20%2B%20%27%5CnException%3A%20%27%20%2B%20e%29%3B%7D%7D%7Dvar%20contentElement%2C%20shouldScrollContentIntoView%20%3D%20false%3Bif%20%28ourStyleSheet.disabled%29%20%7BcontentElement%20%3D%20findContentElement%28%29%3Bif%20%28contentElement%29%20%7Bvar%20tmpElement%20%3D%20contentElement%2C%20contentTop%20%3D%200%3Bdo%20%7BcontentTop%20%2B%3D%20tmpElement.offsetTop%3B%7D%20while%20%28%28tmpElement%20%3D%20tmpElement.offsetParent%29%29%3BshouldScrollContentIntoView%20%3D%20%21window.scrollY%20%7C%7C%20window.scrollY%20%3D%3D%3D%20contentTop%3B%7D%7DtoggleStyles%28%29%3BshouldScrollContentIntoView%20%26%26%20contentElement.scrollIntoView%28%29%3Btry%20%7BtoArray%28document.querySelectorAll%28%27frame%2C%20iframe%2C%20object%5Btype%5E%3D%22text%2Fhtml%22%5D%2C%20object%5Btype%5E%3D%22application%2Fxhtml%2Bxml%22%5D%27%29%29.forEach%28function%20%28elem%29%20%7Bexecute%28elem.contentDocument%29%3B%7D%29%3B%7D%20catch%20%28e%29%20%7B%7D%7D%29%28document%29%3B%7D%29%28%29%3B" ADD_DATE="1304084286" LAST_MODIFIED="1336713155" SHORTCUTURL="read">Readable++</A>
+<DT><A HREF="javascript:%28function%20read%28%29%20%7Bvar%20id%20%3D%20%27jan-css%27%3Bvar%20css%20%3D%20%27%40namespace%20svg%20%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3B%2A%20%7Bline-height%3A%201.5%3B%7Dhtml%20%7Bbackground%3A%20%23fff%3Bcolor%3A%20%23222%3B%7Dbody%20%7Bmax-width%3A%2052em%3Bmargin%3A%200%20auto%3Bpadding%3A%201em%3Bfont-family%3A%20%22Calibri%22%2C%20sans-serif%3B%7D%3Alink%20%7Bcolor%3A%20%2300e%3B%7D%3Avisited%20%7Bcolor%3A%20%23528%3B%7D%3Alink%3Afocus%2C%20%3Avisited%3Afocus%2C%20%3Alink%3Ahover%2C%20%3Avisited%3Ahover%20%7Bcolor%3A%20%23e30%3B%7D%3Alink%3Aactive%2C%20%3Avisited%3Aactive%20%7Bcolor%3A%20%23e00%3B%7Dcenter%2C%20%5Balign%5D%20%7Btext-align%3A%20left%3B%7Db%3Anot%28.%27%20%2B%20id%20%2B%20%27-probably-structure%29%2C%20u%2C%20blink%20%7Bfont-weight%3A%20inherit%3Bfont-style%3A%20inherit%3Btext-decoration%3A%20inherit%7Db.%27%20%2B%20id%20%2B%20%27-probably-structure%20%7Bfont-size%3A%20larger%3B%7D.%27%20%2B%20id%20%2B%20%27-probably-layout%20%7Bfont%3A%20inherit%3B%7Dpre%20%7Bpadding%3A%201ex%3Bborder%3A%201px%20dotted%3B%7Dcode%2C%20pre%2C%20.syntaxhighlighter%2C%20.dp-highlighter%20%7Bfont-family%3A%20%22Consolas%22%2C%20monospace%3Bfont-size%3A%20small%3Bbackground%3A%20%23ffe%3B%7D.dp-highlighter%20%2B%20pre%5Bname%3D%22code%22%5D%20%7Bdisplay%3A%20none%3B%7Dtextarea%20%7Bwidth%3A%20100%25%3Bheight%3A%2032ex%3B%7Dth%2C%20td%20%7Bvertical-align%3A%20top%3Btext-align%3A%20left%3Bpadding%3A%200.5ex%3B%7D.%27%20%2B%20id%20%2B%20%27-has-tables-for-layout%20td%20%7Bdisplay%3A%20inline-block%3B%7Dcaption%20%7Bfont-weight%3A%20bold%3Bborder-bottom%3A%201px%20dotted%3B%7Dbody%3Anot%28%3Ahover%29%20img%2C%20body%3Anot%28%3Ahover%29%20input%5Btype%3D%22image%22%5D%2C%20body%3Anot%28%3Ahover%29%20object%2C%20body%3Anot%28%3Ahover%29%20embed%2C%20body%3Anot%28%3Ahover%29%20video%2C%20body%3Anot%28%3Ahover%29%20audio%2C%20body%3Anot%28%3Ahover%29%20iframe%2C%20body%3Anot%28%3Ahover%29%20canvas%2C%20body%3Anot%28%3Ahover%29%20%3Anot%28svg%7C%2A%29%20%3E%20svg%7C%2A%20%7Bopacity%3A%200.25%3B%7D.cufon-canvas%20canvas%20%7Bdisplay%3A%20none%3B%7D.post_share%2C%20%23janrain-social-sharebar%2C%20%23sharebar%20%7Bdisplay%3A%20none%3Bleft%3A%20-1000px%3B%7D.postprofile%2C%20.signature%20%7Bfont-size%3A%20smaller%3Bborder-top%3A%201px%20dotted%3Bopacity%3A%200.5%3B%7D.google-src-text%20%7Bdisplay%3A%20none%3B%7Diframe%5Bsrc%2A%3D%22.facebook.com%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22.twitter.com%2Fwidgets%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fplusone.google.com%2F_%2F%2B1%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fwww.reddit.com%2Fstatic%2Fbutton%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fs7.addthis.com%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fwww.stumbleupon.com%2Fbadge%2Fembed%2F%22%5D%2C%20iframe%5Bsrc%2A%3D%22%2F%2Fwidgets.bufferapp.com%2F%22%5D%20%7Bwidth%3A%2012em%3Bheight%3A%204ex%3Bborder%3A%201px%20dotted%3B%7D.twtr-widget.twtr-scroll%20%7Bmax-height%3A%2030ex%3Boverflow%3A%20auto%3B%7D%5Bstyle%2A%3D%22position%3A%20fixed%22%5D%2C%20%5Bstyle%2A%3D%22position%3Afixed%22%5D%20%7Bposition%3A%20static%20%21important%3B%7D%27%3Bvar%20dataTableCss%20%3D%20%27tr%3Anth-child%28odd%29%20td%3Anot%28.%27%20%2B%20id%20%2B%20%27-active-col%29%20%7Bbackground%3A%20%23eef%3B%7Dtr%3Ahover%20td%3Anot%28.code%29%2C%20.%27%20%2B%20id%20%2B%20%27-active-col%20%7Bbackground%3A%20%23ddf%3B%7Dth%2C%20tr%20td%3Anot%28.code%29%3Ahover%20%7Bbackground%3A%20%23bbf%3B%7Dth%20code%2C%20td%20code%20%7Bbackground%3A%20inherit%3B%7D%27%3Bvar%20attrs%20%3D%20%5B%27style%27%2C%27background%27%2C%20%27bgcolor%27%2C%20%27color%27%2C%20%27text%27%2C%20%27link%27%2C%20%27vlink%27%2C%20%27alink%27%2C%20%27hlink%27%2C%27table%40width%27%2C%20%27colgroup%40width%27%2C%20%27col%40width%27%2C%20%27tr%40width%27%2C%20%27td%40width%27%2C%20%27th%40width%27%2C%20%27table%40height%27%2C%20%27tr%40height%27%2C%20%27td%40height%27%2C%20%27th%40height%27%2C%27border%27%2C%27frameborder%27%2C%27align%27%2C%27face%27%2C%20%27font%40size%27%2C%20%27basefont%40size%27%5D%3Bvar%20contentSelectors%20%3D%20%5B%27%3Anot%28body%29%23article%27%2C%27article%3Anot%28.p_like%29%3Anot%28.p_response%29%2C%20%3Anot%28%23spotlight%29%20%3E%20%3Anot%28body%29.article%2C%20.articleContent%27%2C%27%23article_top%27%2C%27%23article_body%27%2C%27%23article_main%27%2C%27.post-body%3Anot%28.field-item%29%27%2C%27%3Anot%28input%29%3Anot%28textarea%29.post%2C%20%3Anot%28input%29%3Anot%28textarea%29.blogpost%2C%20%3Anot%28input%29%3Anot%28textarea%29.blogPost%27%2C%27%5Bid%5E%3D%22post0%22%5D%2C%20%5Bid%5E%3D%22post1%22%5D%2C%20%5Bid%5E%3D%22post2%22%5D%2C%20%5Bid%5E%3D%22post3%22%5D%2C%20%5Bid%5E%3D%22post4%22%5D%2C%20%5Bid%5E%3D%22post5%22%5D%2C%20%5Bid%5E%3D%22post6%22%5D%2C%20%5Bid%5E%3D%22post7%22%5D%2C%20%5Bid%5E%3D%22post8%22%5D%2C%20%5Bid%5E%3D%22post9%22%5D%2C%20%5Bid%5E%3D%22post-0%22%5D%2C%20%5Bid%5E%3D%22post-1%22%5D%2C%20%5Bid%5E%3D%22post-2%22%5D%2C%20%5Bid%5E%3D%22post-3%22%5D%2C%20%5Bid%5E%3D%22post-4%22%5D%2C%20%5Bid%5E%3D%22post-5%22%5D%2C%20%5Bid%5E%3D%22post-6%22%5D%2C%20%5Bid%5E%3D%22post-7%22%5D%2C%20%5Bid%5E%3D%22post-8%22%5D%2C%20%5Bid%5E%3D%22post-9%22%5D%27%2C%27%23entry%27%2C%27.entry%27%2C%27%23content%27%2C%27.content%27%2C%27%5Bid%5E%3D%22content%22%5D%2C%20%5Bclass%5E%3D%22content%22%5D%27%2C%27%23main%27%2C%27.main%27%2C%27h1%3Anot%28%3Aempty%29%27%2C%27%23header%27%2C%27header%27%2C%27.header%27%2C%27h2%27%2C%27big%27%5D%3Bvar%20structureElementsForLayoutSelectors%20%3D%20%5B%27%2F%2F%2A%5Bcontains%28%22%20h1%20h2%20h3%20h4%20h5%20h6%20h7%20%22%2C%20concat%28%22%20%22%2C%20local-name%28%29%2C%20%22%20%22%29%29%20and%20string-length%28normalize-space%28%29%29%20%3E%20120%5D%27%5D%3Bvar%20layoutElementsForStructureSelectors%20%3D%20%5B%27br%20%2B%20b%20%2B%20br%27%2C%27div%20%3E%20b%3Aonly-child%2C%20p%20%3E%20b%3Aonly-child%27%5D%3Bvar%20syntaxHighlightHrefRegex%20%3D%20%2F%5Cb%28%28syntax%7Cpygments%29%28hi%28ghlight%28er%29%3F%7Clite%28r%29%3F%29%29%3F%7Csh%28Core%7CTheme%5B%5E.%5D%2A%29%7Cgeshi%7Ccodecolorer%29%5B.%2F%5D%2Fi%3B%28function%20execute%28document%29%20%7Bfunction%20addClass%28element%2C%20classNames%29%20%7BclassNames.split%28%2F%5Cs%2B%2F%29.forEach%28function%20%28className%29%20%7Belement.className%20%3D%20%28%28%27%20%27%20%2B%20element.className%20%2B%20%27%20%27%29.replace%28%27%20%27%20%2B%20className.trim%28%29%20%2B%20%27%20%27%2C%20%27%27%29%20%2B%20%27%20%27%20%2B%20className%29.trim%28%29%3B%7D%29%3B%7Dfunction%20removeClass%28element%2C%20classNames%29%20%7BclassNames.split%28%2F%5Cs%2B%2F%29.forEach%28function%20%28className%29%20%7Belement.className%20%3D%20%28%27%20%27%20%2B%20element.className%20%2B%20%27%20%27%29.replace%28%27%20%27%20%2B%20className.trim%28%29%20%2B%20%27%20%27%2C%20%27%27%29.trim%28%29%3B%7D%29%3B%7Dfunction%20toArray%28arrayLike%29%20%7Breturn%20Array.prototype.slice.call%28arrayLike%29%3B%7Dvar%20all%20%3D%20toArray%28document.getElementsByTagName%28%27%2A%27%29%29%2C%20%20%20%20ourStyleSheet%20%3D%20document.getElementById%28id%29%2C%20%20%20%20allStyleSheets%20%3D%20toArray%28document.styleSheets%29%2C%20%20%20%20prettyPrintStyleSheet%2C%20%20%20%20matches%3Bwindow.TextResizeDetector%20%26%26%20TextResizeDetector.stopDetector%20%26%26%20TextResizeDetector.stopDetector%28%29%3Bif%20%28%21ourStyleSheet%29%20%7B%28ourStyleSheet%20%3D%20document.createElement%28%27style%27%29%29.id%20%3D%20id%3BourStyleSheet.innerHTML%20%3D%20css%3Bvar%20hasTablesForLayout%20%3Ddocument.querySelector%28%27table%20table%27%29%20%7C%7CtoArray%28document.querySelectorAll%28%27table%27%29%29.some%28function%20%28table%29%20%7Bif%20%28document.compatMode%20%3D%3D%3D%20%27BackCompat%27%20%26%26%20document.documentElement.scrollHeight%20%3E%20window.innerHeight%20%26%26%20table.scrollHeight%20%3E%203%2F4%20%2A%20document.documentElement.scrollHeight%29%20%7Breturn%20true%3B%7Dif%20%28table.rows.length%20%3C%203%29%20%7Breturn%20false%3B%7Dvar%20numCellsPerRow%20%3D%20%5B%5D%3BtoArray%28table.rows%29.forEach%28function%20%28row%29%20%7Bif%20%28numCellsPerRow.indexOf%28row.cells.length%29%20%3D%3D%3D%20-1%29%20%7BnumCellsPerRow.push%28row.cells.length%29%3B%7D%7D%29%3Breturn%20%28%28document.compatMode%20%3D%3D%3D%20%27BackCompat%27%20%26%26%20numCellsPerRow.length%20%3E%3D%203%29%20%7C%7C%28numCellsPerRow.length%20%3D%3D%3D%201%20%26%26%20numCellsPerRow%5B0%5D%20%3D%3D%3D%201%29%29%3B%7D%29%3Bif%20%28hasTablesForLayout%29%20%7Bvar%20bodyClassName%20%3D%20id%20%2B%20%27-has-tables-for-layout%27%3BaddClass%28document.body%2C%20bodyClassName%29%3B%7D%20else%20%7BourStyleSheet.innerHTML%20%2B%3D%20dataTableCss%3Bfunction%20columnMouseHandler%28e%29%20%7Bif%20%28%21%2F%5Et%5Bdh%5D%24%2Fi.test%28%27%27%20%2B%20e.target.nodeName%29%29%20%7Breturn%3B%7Dvar%20targetCell%20%3D%20e.target%2C%20nthChild%20%3D%20targetCell.cellIndex%20%2B%201%2C%20table%20%3D%20targetCell.parentNode%3Bwhile%20%28table%20%26%26%20table.nodeName.toLowerCase%28%29%20%21%3D%3D%20%27table%27%29%20%7Btable%20%3D%20table.parentNode%3B%7Dvar%20activeColumnClassName%20%3D%20id%20%2B%20%27-active-col%27%3BtoArray%28table.querySelectorAll%28%27td%3Anth-child%28%27%20%2B%20nthChild%20%2B%20%27%29%27%29%29.forEach%28function%20%28cell%29%20%7Bif%20%28e.type%20%3D%3D%3D%20%27mouseenter%27%29%20%7BaddClass%28cell%2C%20activeColumnClassName%29%3B%7D%20else%20%7BremoveClass%28cell%2C%20activeColumnClassName%29%3B%7D%7D%29%3B%7Ddocument.addEventListener%28%27mouseenter%27%2C%20columnMouseHandler%2C%20true%29%3Bdocument.addEventListener%28%27mouseleave%27%2C%20columnMouseHandler%2C%20true%29%3B%7Ddocument.head.appendChild%28ourStyleSheet%29.disabled%20%3D%20true%3Bif%20%28document.querySelector%28%27.prettyprint%27%29%29%20%7BprettyPrintStyleSheet%20%3D%20document.createElement%28%27style%27%29%3BprettyPrintStyleSheet.textContent%20%3D%20%27%40import%20url%28http%3A%2F%2Fjanmoesen.github.com%2Fbookmarklets%2Fcss%2Fprettify.css%29%27%3Bdocument.head.appendChild%28prettyPrintStyleSheet%29%3B%7D%20else%20if%20%28document.querySelector%28%27.syntaxhighlighter%27%29%29%20%7BprettyPrintStyleSheet%20%3D%20document.createElement%28%27style%27%29%3BprettyPrintStyleSheet.textContent%20%3D%20%27%40import%20url%28http%3A%2F%2Fjanmoesen.github.com%2Fbookmarklets%2Fcss%2Fsyntaxhighlighter.css%29%27%3Bdocument.head.appendChild%28prettyPrintStyleSheet%29%3B%7D%20else%20if%20%28document.querySelector%28%27.highlight%20.c%2C%20.highlight%20.k%2C%20.highlight%20.m%2C%20.highlight%20.s%2C%20.highlight%20.w%27%29%29%20%7BprettyPrintStyleSheet%20%3D%20document.createElement%28%27style%27%29%3BprettyPrintStyleSheet.textContent%20%3D%20%27%40import%20url%28http%3A%2F%2Fjanmoesen.github.com%2Fbookmarklets%2Fcss%2Fpygments.css%29%27%3Bdocument.head.appendChild%28prettyPrintStyleSheet%29%3B%7Dvar%20probablyLayoutClassName%20%3D%20id%20%2B%20%27-probably-layout%27%3BstructureElementsForLayoutSelectors.forEach%28function%20%28selector%29%20%7Bvar%20xpathResult%20%3D%20document.evaluate%28selector%2C%20document%2C%20null%2C%20XPathResult.ORDERED_NODE_SNAPSHOT_TYPE%2C%20null%29%3Bfor%20%28var%20i%20%3D%200%3B%20i%20%3C%20xpathResult.snapshotLength%3B%20i%2B%2B%29%20%7Bvar%20elem%20%3D%20xpathResult.snapshotItem%28i%29%3BaddClass%28elem%2C%20probablyLayoutClassName%29%3B%7D%7D%29%3Bvar%20probablyStructureClassName%20%3D%20id%20%2B%20%27-probably-structure%27%3BlayoutElementsForStructureSelectors.forEach%28function%20%28selector%29%20%7BtoArray%28document.querySelectorAll%28selector%29%29.forEach%28function%20%28elem%29%20%7Bif%20%28elem.tagName.toLowerCase%28%29%20%21%3D%3D%20%27b%27%29%20%7Belem%20%3D%20elem.previousElementSibling%3B%7DaddClass%28elem%2C%20probablyStructureClassName%29%3B%7D%29%3B%7D%29%3B%7Dfunction%20toggleStyles%28%29%20%7BourStyleSheet.disabled%20%3D%20%21ourStyleSheet.disabled%3Bif%20%28prettyPrintStyleSheet%29%20%7BprettyPrintStyleSheet.disabled%20%3D%20ourStyleSheet.disabled%3B%7DallStyleSheets.forEach%28function%20%28styleSheet%2C%20i%29%20%7Bif%20%28styleSheet.ownerNode%20%21%3D%3D%20ourStyleSheet%20%26%26%20%21syntaxHighlightHrefRegex.test%28styleSheet.href%29%29%20%7Bif%20%28ourStyleSheet%5Bid%20%2B%20%27-originally-disabled-%27%20%2B%20i%5D%20%3D%3D%3D%20undefined%29%20%7BourStyleSheet%5Bid%20%2B%20%27-originally-disabled-%27%20%2B%20i%5D%20%3D%20styleSheet.disabled%3B%7Dif%20%28ourStyleSheet.disabled%29%20%7BstyleSheet.disabled%20%3D%20ourStyleSheet%5Bid%20%2B%20%27-originally-disabled-%27%20%2B%20i%5D%3B%7D%20else%20%7BstyleSheet.disabled%20%3D%20true%3Btry%20%7Bif%20%28styleSheet.cssRules%5B0%5D%20%26%26%20styleSheet.cssRules%5B0%5D.type%20%3D%3D%3D%20styleSheet.cssRules%5B0%5D.IMPORT_RULE%20%26%26%20styleSheet.cssRules%5B0%5D.href%29%20%7BstyleSheet.disabled%20%3D%20%21styleSheet.cssRules%5B0%5D.href.match%28%2F%5Ehttp%3A%5C%2F%5C%2Fjanmoesen%5C.github%5C.com%5C%2F%2F%29%3B%7D%7D%20catch%20%28e%29%20%7B%7D%7D%7D%7D%29%3Ball.forEach%28function%20%28elem%2C%20i%29%20%7Battrs.forEach%28function%20%28attr%2C%20j%29%20%7Bif%20%28%21%28matches%20%3D%20attr.match%28%2F%28%5B%5E%40%5D%2B%29%40%28%5B%5E%40%5D%2B%29%2F%29%29%20%7C%7C%20%28elem.tagName%20%26%26%20elem.tagName.toLowerCase%28%29%20%3D%3D%20matches%5B1%5D%29%29%20%7Battr%20%3D%20matches%20%3F%20matches%5B2%5D%20%3A%20attr%3Bvar%20names%20%3D%20%7B%20enabled%3A%20attr%2C%20disabled%3A%20id%20%2B%20%27-%27%20%2B%20attr%20%7D%3Bif%20%28elem.hasAttribute%28names.enabled%29%29%20%7Belem.setAttribute%28names.disabled%2C%20elem.getAttribute%28names.enabled%29%29%3Belem.removeAttribute%28names.enabled%29%3B%7D%20else%20if%20%28elem.hasAttribute%28names.disabled%29%29%20%7Belem.setAttribute%28names.enabled%2C%20elem.getAttribute%28names.disabled%29%29%3Belem.removeAttribute%28names.disabled%29%3B%7D%7D%7D%29%3B%7D%29%3Bvar%20disabledStyleAttr%20%3D%20id%20%2B%20%27-style%27%3BtoArray%28document.querySelectorAll%28%27.wp_syntax%20%5B%27%20%2B%20disabledStyleAttr%20%2B%20%27%5D%27%29%29.forEach%28function%20%28elem%29%20%7Belem.setAttribute%28%27style%27%2C%20elem.getAttribute%28disabledStyleAttr%29%29%3Belem.removeAttribute%28disabledStyleAttr%29%3B%7D%29%3B%7Dfunction%20findContentElement%28%29%20%7Bif%20%28location.hash%29%20%7BcontentSelectors.unshift%28%27a%5Bname%3D%22%27%20%2B%20location.hash.substring%281%29%20%2B%20%27%22%5D%27%29%3BcontentSelectors.unshift%28location.hash.replace%28%2F%5C.%2Fg%2C%20%27%5C%5C.%27%29%29%3B%7Dfor%20%28var%20i%20%3D%200%3B%20i%20%3C%20contentSelectors.length%3B%20i%2B%2B%29%20%7Btry%20%7Bvar%20element%20%3D%20document.querySelector%28contentSelectors%5Bi%5D%29%3Bif%20%28element%20%26%26%20%28element.tagName.toLowerCase%28%29%20%3D%3D%3D%20%27a%27%20%7C%7C%20element.offsetWidth%20%7C%7C%20element.offsetHeight%29%29%20%7Bwindow.console%20%26%26%20console.log%28%27Readable%2B%2B%3A%20matching%20selector%3A%20%27%20%2B%20contentSelectors%5Bi%5D%20%2B%20%27%5CnElement%3A%20%27%2C%20element%29%3Breturn%20element%3B%7D%7Dcatch%20%28e%29%20%7Bwindow.console%20%26%26%20console.log%28%27Readable%2B%2B%3A%20bad%20selector%3A%20%27%20%2B%20contentSelectors%5Bi%5D%20%2B%20%27%5CnException%3A%20%27%20%2B%20e%29%3B%7D%7D%7Dvar%20contentElement%2C%20shouldScrollContentIntoView%20%3D%20false%3Bif%20%28ourStyleSheet.disabled%29%20%7BcontentElement%20%3D%20findContentElement%28%29%3Bif%20%28contentElement%29%20%7Bvar%20tmpElement%20%3D%20contentElement%2C%20contentTop%20%3D%200%3Bdo%20%7BcontentTop%20%2B%3D%20tmpElement.offsetTop%3B%7D%20while%20%28%28tmpElement%20%3D%20tmpElement.offsetParent%29%29%3BshouldScrollContentIntoView%20%3D%20%21window.scrollY%20%7C%7C%20window.scrollY%20%3D%3D%3D%20contentTop%3B%7D%7DtoggleStyles%28%29%3BshouldScrollContentIntoView%20%26%26%20contentElement.scrollIntoView%28%29%3Btry%20%7BtoArray%28document.querySelectorAll%28%27frame%2C%20iframe%2C%20object%5Btype%5E%3D%22text%2Fhtml%22%5D%2C%20object%5Btype%5E%3D%22application%2Fxhtml%2Bxml%22%5D%27%29%29.forEach%28function%20%28elem%29%20%7Bexecute%28elem.contentDocument%29%3B%7D%29%3B%7D%20catch%20%28e%29%20%7B%7D%7D%29%28document%29%3B%7D%29%28%29%3B" ADD_DATE="1304084286" LAST_MODIFIED="1350029639" SHORTCUTURL="read">Readable++</A>
<DD><P>Make a page more readable by disabling all page styling and applying a
bare minimum of our own. Go to the first thing that looks like the start
of the actual content so no time is wasted scrolling past initial
View
4 read.js
@@ -293,6 +293,10 @@
prettyPrintStyleSheet = document.createElement('style');
prettyPrintStyleSheet.textContent = '@import url(http://janmoesen.github.com/bookmarklets/css/syntaxhighlighter.css)';
document.head.appendChild(prettyPrintStyleSheet);
+ } else if (document.querySelector('.highlight .c, .highlight .k, .highlight .m, .highlight .s, .highlight .w')) {
+ prettyPrintStyleSheet = document.createElement('style');
+ prettyPrintStyleSheet.textContent = '@import url(http://janmoesen.github.com/bookmarklets/css/pygments.css)';
+ document.head.appendChild(prettyPrintStyleSheet);
}
/* Add some classes to structure elements that have been used for layout. */

0 comments on commit 5df4477

Please sign in to comment.