commit 0e30876787353bd37f197bca72e3c7a372b2d913 parent f67f4741f9ad6c3cb697c93c4b9fd16679e11740 Author: Simon Kornblith <simon@simonster.com> Date: Sat, 31 Oct 2009 20:27:46 +0000 fix broken ScienceDirect on pages with dummy iframes Diffstat:
| M | translators/ScienceDirect.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/translators/ScienceDirect.js b/translators/ScienceDirect.js @@ -8,11 +8,11 @@ "maxVersion":null, "priority":100, "inRepository":true, - "lastUpdated":"2009-09-04 07:45:00" + "lastUpdated":"2009-10-31 20:27:00" } function detectWeb(doc, url) { - if ((url.indexOf("_ob=DownloadURL") != -1) || doc.title == "ScienceDirect Login") { + if ((url.indexOf("_ob=DownloadURL") != -1) || doc.title == "ScienceDirect Login" || doc.title == "ScienceDirect - Dummy") { return false; } if((!url.match("pdf") && url.indexOf("_ob=ArticleURL") == -1 && url.indexOf("/article/") == -1) || url.indexOf("/journal/") != -1) {