summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/readability.js7
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++)