{
"translatorID": "31659710-d04e-45d0-84ba-8e3f5afc4a54",
"translatorType": 4,
"label": "Twitter",
"creator": "Bo An, Dan Stillman",
"target": "^https?://([^/]+\\.)?(twitter|x)\\.com/",
"minVersion": "4.0",
"maxVersion": null,
"priority": 100,
"inRepository": true,
"browserSupport": "gcsibv",
"lastUpdated": "2024-05-24 17:20:00"
}
/*
***** BEGIN LICENSE BLOCK *****
Twitter Translator
Copyright © 2020-2021 Bo An, Dan Stillman
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Zotero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Zotero. If not, see
' + ZU.text2html(blockquote.innerText.replace(/[\s]+/g, ' ').trim()) + ""; } item.notes.push({ note }); } item.language = attr(articleEl, 'div[lang]', 'lang'); item.creators.push({ lastName: `${author} [@${canonicalURL.split('/')[3]}]`, fieldMode: 1, creatorType: 'author' }); // Date and time var spans = articleEl.querySelectorAll(`${tweetSelector} a span`); for (let span of spans) { // Is this used in all locales? let dotSep = ' · '; let str = span.textContent; if (!str.includes(dotSep)) { // Z.debug("Date separator not found") // Share URLs don't show the date, so use the