From 5982b1d337d0bbdedec675279c3f264a30f7ab26 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 4 Dec 2024 12:03:06 +0800 Subject: [PATCH] Revert "fix: " ) ) - .arg( article.mid( linkPos, match.capturedStart() - linkPos ) ); + articleNewText += article.mid( linkPos, match.capturedEnd() - linkPos ); linkPos = match.capturedEnd(); } continue; diff --git a/src/scripts/gd-builtin.js b/src/scripts/gd-builtin.js index 45c5971a..d9421c0f 100644 --- a/src/scripts/gd-builtin.js +++ b/src/scripts/gd-builtin.js @@ -1,11 +1,3 @@ -function gdOnReady(func) { - if (document.readyState !== "loading") { - func(); - } else { - document.addEventListener("DOMContentLoaded", func); - } -} - function gdMakeArticleActive(newId, noEvent) { const gdCurrentArticle = document.querySelector(".gdactivearticle").attributes.id;