From 90cf706688f8899b381e98008327b77a15b754ca Mon Sep 17 00:00:00 2001 From: JJfutbol Date: Fri, 10 Jul 2009 00:57:39 +0000 Subject: added pre styles to both css files git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@62 d4e419ec-0920-11de-bbfd-a7c1bc4c261e --- js/readability.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/readability.js') diff --git a/js/readability.js b/js/readability.js index ce8fb52..be254df 100755 --- a/js/readability.js +++ b/js/readability.js @@ -82,7 +82,7 @@ function determineContentScore(score, parent, element) // TODO: should set as a global var since badKeywords are used elsewhere var goodKeywords = ["article", "body", "content", "entry", "hentry", "post", "story", "text"]; var semiGoodKeywords = ["area", "container", "inner", "main"]; - var badKeywords = ["ad", "captcha", "classified", "clear", "comment", "footer", "footnote", "leftcolumn", "listing", "menu", "meta", "module", "nav", "navbar", "rightcolumn", "sidebar", "sponsor", "toolbar", "tools", "trackback", "widget"]; + var badKeywords = ["ad", "captcha", "classified", "clear", "comment", "footer", "footnote", "leftcolumn", "listing", "menu", "meta", "module", "nav", "navbar", "rightcolumn", "sidebar", "sponsor", "tab", "toolbar", "tools", "trackback", "widget"]; // we'll be doing a case insensitive compare var className = parent.className.toLowerCase(); @@ -469,7 +469,7 @@ function removeNonContentElement(element, tagName) var a = descendant.getElementsByTagName("a").length; var embed = descendant.getElementsByTagName("embed").length; - var badKeywords = ["ad", "captcha", "classified", "clear", "comment", "footer", "footnote", "leftcolumn", "listing", "menu", "meta", "module", "nav", "navbar", "rightcolumn", "sidebar", "sponsor", "toolbar", "tools", "trackback", "widget"]; + var badKeywords = ["ad", "captcha", "classified", "clear", "comment", "footer", "footnote", "leftcolumn", "listing", "menu", "meta", "module", "nav", "navbar", "rightcolumn", "sidebar", "sponsor", "tab", "toolbar", "tools", "trackback", "widget"]; // should improve this but for if the element has a single bad keyword remove it for (var j = 0; j < badKeywords.length; j++) -- cgit v1.2.3