{ "translatorID": "374ac2a5-dd45-461e-bf1f-bf90c2eb7085", "label": "Tagesspiegel", "creator": "Martin Meyerhoff, Sebastian Karcher", "target": "^https?://www\\.tagesspiegel\\.de", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2018-01-28 18:07:21" } /* Tagesspiegel Translator Copyright (C) 2011 Martin Meyerhoff This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ function detectWeb(doc, url) { if (ZU.xpathText(doc, "//meta[@property='og:type']/@content")=="article" ){ return "newspaperArticle"; } else if (url.indexOf('/suchergebnis/')>-1){ return "multiple"; } else if (getSearchResults(doc, true) ) { return "multiple"; } } function getSearchResults(doc, checkOnly) { var items = {}; var found = false; var rows = ZU.xpath(doc, '//h2/a[span[contains(@class, "hcf-headline")]]'); for (var i=0; i