From 3fc0722518f69935a67e49e8fc423317f0308e01 Mon Sep 17 00:00:00 2001 From: umbrae Date: Tue, 10 Mar 2009 21:33:55 +0000 Subject: Accidentally removed stylesheet code block. Readding. git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@25 d4e419ec-0920-11de-bbfd-a7c1bc4c261e --- js/readability.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js') diff --git a/js/readability.js b/js/readability.js index 4d62385..8719d21 100755 --- a/js/readability.js +++ b/js/readability.js @@ -88,6 +88,13 @@ function grabArticle() { topDiv.innerHTML = 'Sorry, readability was unable to parse this page for content. If you feel like it should have been able to, please let us know by submitting an issue.'; } + // REMOVES ALL STYLESHEETS ... + for (var k=0;k < document.styleSheets.length; k++) { + if (document.styleSheets[k].href != null && document.styleSheets[k].href.lastIndexOf("readability") == -1) { + document.styleSheets[k].disabled = true; + } + } + // Remove all style tags in head (not doing this on IE) : var styleTags = document.getElementsByTagName("style"); for (var j=0;j < styleTags.length; j++) -- cgit v1.2.3