get wikipedia full size images rather than thumbnails

main
Lee Hanken 2022-02-03 19:27:14 +00:00
parent cf76f0e0d8
commit 3fb524169f
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ module.exports = {
/(?:\\\[)?\[edit\]\([^\s]+\s+"[^"]+"\)(?:\\\])?/ig,
/\^\s\[Jump up to[^\)]*\)/ig,
/\[[^\]]*\]\(#cite_ref[^\)]+\)/g
],
replace: [
{
find: /\(https:\/\/upload.wikimedia.org\/wikipedia\/([^\/]+)\/thumb\/([^\)]+\..{3,4})\/[^\)]+\)/ig,
replacement: '(https://upload.wikimedia.org/wikipedia/$1/$2)'
}
]
},
{