Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSA #3242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

ANSA #3242

wants to merge 1 commit into from

Conversation

EruditeLying
Copy link

Translator for Italian news agency ANSA. Supports articles and search pages

Translator for Italian news agency ANSA. Supports articles and search pages
Comment on lines +101 to +110
let section = document.querySelector('li.is-section > a');
if (section) {
item.section = section.textContent;
}

// Replace tags with correctly formatted, cleaned up list
let redundantTags = new Set(authors);
redundantTags.add('ANSA');

let tags = Array.prototype.map.call(document.querySelectorAll('ul#all-tags > li:not(.show-more) > a.tag'), (t) => t.textContent);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use doc, not document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants