diff options
author | umbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-03-10 21:33:55 +0000 |
---|---|---|
committer | umbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-03-10 21:33:55 +0000 |
commit | 3fc0722518f69935a67e49e8fc423317f0308e01 (patch) | |
tree | 33835662cde60a6a138db7935602af0b425c7455 /js | |
parent | af56443bc662b12839957670b3afed6bdcc28d6f (diff) | |
download | readability-simple-3fc0722518f69935a67e49e8fc423317f0308e01.tar.bz2 readability-simple-3fc0722518f69935a67e49e8fc423317f0308e01.zip |
Accidentally removed stylesheet code block. Readding.
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@25 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
Diffstat (limited to 'js')
-rwxr-xr-x | js/readability.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 <a href="http://code.google.com/p/arc90labs-readability/issues/entry">let us know by submitting an issue.</a>';
}
+ // 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++)
|