fix broken ScienceDirect on pages with dummy iframes
This commit is contained in:
parent
f67f4741f9
commit
0e30876787
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@
|
||||||
"maxVersion":null,
|
"maxVersion":null,
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2009-09-04 07:45:00"
|
"lastUpdated":"2009-10-31 20:27:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
if((!url.match("pdf") && url.indexOf("_ob=ArticleURL") == -1 && url.indexOf("/article/") == -1) || url.indexOf("/journal/") != -1) {
|
if((!url.match("pdf") && url.indexOf("_ob=ArticleURL") == -1 && url.indexOf("/article/") == -1) || url.indexOf("/journal/") != -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue