diff --git a/www/js/app.js b/www/js/app.js index be9650e9..dbaa221b 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -6302,11 +6302,6 @@ function displayArticleContentInContainer (dirEntry, htmlArticle) { if (appstate.wikimediaZimLoaded && params.cssCache) { // Reduce weight of unused JS archives for mediawiki ZIMs and troublesome JS in mobile-html endpoint ZIMs. This patch also removes mediawiki.page.ready.js which breakds the iframe kiwix-js #972 htmlArticle = htmlArticle.replace(//gi, ''); - // @TODO - remove this when issue fixed: VERY DIRTY PATCH FOR HTML IN PAGE TITLES on Wikivoyage - htmlArticle = htmlArticle.replace(/<a href[^"]+"\/wiki\/([^"]+)[^<]+>([^<]+)<\/a>/ig, '$2'); - htmlArticle = htmlArticle.replace(/<(\/?)(i|b|em|strong)>/ig, '<$1$2>'); - // @TODO - remove when fixed on mw-offliner: dirty patch for removing extraneous tags in ids - htmlArticle = htmlArticle.replace(/(\bid\s*=\s*"[^\s}]+)\s*\}[^"]*/g, '$1'); // Remove erroneous content frequently on front page htmlArticle = htmlArticle.replace(/]+>[^/]*?User:Popo[^<]+<\/h1>\s*/i, ''); htmlArticle = htmlArticle.replace(/]+>[^/]*?User:Popo[^<]+<\/span>\s*/i, '');