Skip to content

Commit

Permalink
Also clear cite errors in Wikipedia (#5470)
Browse files Browse the repository at this point in the history
Also clear cite errors
  • Loading branch information
aaronliu0130 authored Jul 20, 2023
1 parent 21217de commit d8db93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/hosts/wikipedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default new Host('wikipedia', {
const cleanDoc = new DOMParser().parseFromString(html.text['*'], 'text/html');

// Remove unwanted sections
for (const e of cleanDoc.querySelectorAll('.metadata, .hatnote, .mw-editsection, .mwe-math-mathml-inline, .reference, .references')) e.remove();
for (const e of cleanDoc.querySelectorAll('.metadata, .hatnote, .mw-editsection, .mw-ext-cite-error, .mwe-math-mathml-inline, .reference, .references')) e.remove();

// Update all links to use the article's URL as baseURL
for (const e of cleanDoc.querySelectorAll('a')) {
Expand Down

0 comments on commit d8db93a

Please sign in to comment.