This commit is contained in:
parent
6da6112f35
commit
d5f6ba2be3
|
@ -24,7 +24,7 @@
|
||||||
-- Set the following timestamp to the most recent scraper update date
|
-- Set the following timestamp to the most recent scraper update date
|
||||||
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-08-15 16:00:00'));
|
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-08-15 16:00:00'));
|
||||||
|
|
||||||
REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b4.r1', '', '2007-06-21 20:00:00', '1', '100', '4', 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon',
|
REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b4.r1', '', '2007-08-24 20:00:00', '1', '100', '4', 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon',
|
||||||
'function detectWeb(doc, url) {
|
'function detectWeb(doc, url) {
|
||||||
|
|
||||||
var suffixRe = new RegExp("https?://(?:www\.)?amazon\.([^/]+)/");
|
var suffixRe = new RegExp("https?://(?:www\.)?amazon\.([^/]+)/");
|
||||||
|
@ -2027,11 +2027,11 @@ function doWeb(doc, url) {
|
||||||
|
|
||||||
');
|
');
|
||||||
|
|
||||||
REPLACE INTO translators VALUES ('6ec8008d-b206-4a4c-8d0a-8ef33807703b', '1.0.0b4.r5', '', '2007-07-31 16:45:00', '1', '100', '4', 'The Economist', 'Michael Berkowitz', '^http://(www.)?economist.com/',
|
REPLACE INTO translators VALUES ('6ec8008d-b206-4a4c-8d0a-8ef33807703b', '1.0.0b4.r5', '', '2007-08-24 20:00:00', '1', '100', '4', 'The Economist', 'Michael Berkowitz', '^http://(www.)?economist.com/',
|
||||||
'function detectWeb(doc, url) {
|
'function detectWeb(doc, url) {
|
||||||
if (doc.location.href.indexOf("search") != -1) {
|
if (doc.location.href.indexOf("search") != -1) {
|
||||||
return "multiple";
|
return "multiple";
|
||||||
} else if (doc.location.href.indexOf("displaystory") != -1 || doc.location.href.indexOf("cityPage") != -1) {
|
} else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1 || doc.location.href.indexOf("cityPage") != -1) {
|
||||||
return "magazineArticle";
|
return "magazineArticle";
|
||||||
}
|
}
|
||||||
}',
|
}',
|
||||||
|
@ -2125,7 +2125,7 @@ function doWeb(doc, url) {
|
||||||
for (var i in newItems) {
|
for (var i in newItems) {
|
||||||
urls.push(i);
|
urls.push(i);
|
||||||
}
|
}
|
||||||
} else if (doc.location.href.indexOf("displaystory") != -1) {
|
} else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1) {
|
||||||
urls.push(url);
|
urls.push(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user