/EdgeTranslator-CodeTag-BugFix

Fix <code> bug for Microsoft Edge translator

Primary LanguageJavaScript

Fix <code> bug for Edge translator

English | 中文

Introduction

before

👇

after

Installation

Tips

  • Principle: replace <code> with the same-styled <span> on all pages
  • Due to the principle of implementation, this script may lead to performance issue when there are a lot of changes in the DOM
  • This solution is by no means perfect, may cause problems on some sites, and javascript code relying on xpath to modify elements will also be affected
  • Feel free to report problems and bugs in Issue

Why hasn't such a ridiculous bug been fixed in many years? Fuck you, Microsoft!