目前能用,发现不怎么卡速度,不优化了,主要是自己菜
- ode.js.7z (414 字节)
- 或,将以下代码存为 ode.js,替换原 ode.js
- 这个版本直接可以复制到论坛,不用压缩成7z才能传论坛,所以改动在这。
window.onload = () => {
let nodesNeedClick = document.querySelectorAll("a.moreInformationExemples, a.moreInformationSynonyms");
for(let aNodeNeedClick of nodesNeedClick) {
let aNodeNeedExpand = aNodeNeedClick.nextElementSibling;
let aNodeIsExpand = false;
aNodeNeedClick.addEventListener('click', (event) => {
aNodeNeedExpand.style.display = aNodeIsExpand ? "none" : "block";
aNodeIsExpand = !aNodeIsExpand;
})
}
}