# 做了一个欧路的小工具

**URL:** <https://forum.freemdict.com/t/topic/13096>\
**Category:** 词典装饰排版交流分享\
**Tags:** ﻿英语\
**Created:** [2022 年5 月 18 日 16:56 UTC](https://forum.freemdict.com/t/topic/13096 "2022-05-18T16:56:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 18 日 16:56 UTC](https://forum.freemdict.com/t/topic/13096/1 "2022-05-18T16:56:59Z")

</div>

把这个文件当成词典一样放到对应的文件夹，然后设置自动展开，可以隐藏欧路词典查词界面的“全球”“跟读”和考试等级这几个图标，只剩下音标图标

链接：[百度网盘-链接不存在](https://pan.baidu.com/s/1sezAqUZOt7lUCPaD8aL3aA?pwd=zrob)  
提取码：zrob

---

<div class="post-metadata">

**Author:** ![nlmha](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@nlmha](https://forum.freemdict.com/u/nlmha)\
**Post date:** [2022 年5 月 18 日 18:02 UTC](https://forum.freemdict.com/t/topic/13096/2 "2022-05-18T18:02:08Z")

</div>

這個兩行 js 就能解決的事情，要 .eudic 幹嘛

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 18 日 18:20 UTC](https://forum.freemdict.com/t/topic/13096/3 "2022-05-18T18:20:11Z")

</div>

能请教下怎么弄嘛

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 18 日 18:20 UTC](https://forum.freemdict.com/t/topic/13096/4 "2022-05-18T18:20:41Z")

</div>

js放在哪里

---

<div class="post-metadata">

**Author:** ![xiaorenhao](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/838e76/32.png) [@xiaorenhao](https://forum.freemdict.com/u/xiaorenhao)\
**Post date:** [2022 年5 月 18 日 19:23 UTC](https://forum.freemdict.com/t/topic/13096/5 "2022-05-18T19:23:06Z")

</div>

很好很实用，小词库解决大问题。

---

<div class="post-metadata">

**Author:** ![nlmha](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@nlmha](https://forum.freemdict.com/u/nlmha)\
**Post date:** [2022 年5 月 18 日 21:45 UTC](https://forum.freemdict.com/t/topic/13096/6 "2022-05-18T21:45:15Z")

</div>

Set those elements’ display to none using DOM methods in the .js file for an existing dictionary.

For example, on android, you can use the following to hide everything.

```javascript
document.getElementById("eudicWordInfoHead").style.display = "none";

```

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 00:38 UTC](https://forum.freemdict.com/t/topic/13096/7 "2022-05-19T00:38:18Z")

</div>

这个思路我是考虑过的，这样也行，不过我用的是css，能从根本上杜绝延迟的卡顿，我很讨厌延迟的卡顿，如果是js的话，有可能出现先创建元素然后马上隐藏的这个过程

---

<div class="post-metadata">

**Author:** ![nlmha](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@nlmha](https://forum.freemdict.com/u/nlmha)\
**Post date:** [2022 年5 月 19 日 01:17 UTC](https://forum.freemdict.com/t/topic/13096/8 "2022-05-19T01:17:24Z")

</div>

> [@沈洛爻](#):
>
> 欧路词典

Android 上也可行？

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 01:43 UTC](https://forum.freemdict.com/t/topic/13096/9 "2022-05-19T01:43:00Z")

</div>

全平台测试过

---

<div class="post-metadata">

**Author:** ![lotus123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@lotus123](https://forum.freemdict.com/u/lotus123)\
**Post date:** [2022 年5 月 19 日 01:44 UTC](https://forum.freemdict.com/t/topic/13096/10 "2022-05-19T01:44:22Z")

</div>

可以分享 css 代码么？

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 01:45 UTC](https://forum.freemdict.com/t/topic/13096/11 "2022-05-19T01:45:10Z")

</div>

/\* 跟读 \*/

.evalRecordWordLink {

```
display: none!important;

```

}

/\* 全球 \*/

.globalVoiceLink {

```
display: none!important;

```

}

/\* 四级考研等 \*/

.eudic\_wordtag {

```
display: none!important;

```

}

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 01:45 UTC](https://forum.freemdict.com/t/topic/13096/12 "2022-05-19T01:45:30Z")

</div>

实测中mdx是无效的，必须打包成eudic，不知道为什么

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 01:46 UTC](https://forum.freemdict.com/t/topic/13096/13 "2022-05-19T01:46:32Z")

</div>

而且如果欧路版本更新后把标签改了的话也必须要重新查看

---

<div class="post-metadata">

**Author:** ![lotus123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@lotus123](https://forum.freemdict.com/u/lotus123)\
**Post date:** [2022 年5 月 19 日 01:47 UTC](https://forum.freemdict.com/t/topic/13096/14 "2022-05-19T01:47:57Z")

</div>

感谢！那音标对应的是？我想全都隐藏了 😃

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 01:48 UTC](https://forum.freemdict.com/t/topic/13096/15 "2022-05-19T01:48:42Z")

</div>

> [@沈洛爻](#):
>
> VoiceLink

应该是这个，你试试

---

<div class="post-metadata">

**Author:** ![lotus123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@lotus123](https://forum.freemdict.com/u/lotus123)\
**Post date:** [2022 年5 月 19 日 01:48 UTC](https://forum.freemdict.com/t/topic/13096/16 "2022-05-19T01:48:58Z")

</div>

eudicWordInfoHead 指全部的信息栏么？

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 01:49 UTC](https://forum.freemdict.com/t/topic/13096/17 "2022-05-19T01:49:57Z")

</div>

这个我就不清楚了，我没怎么花时间去摸索结构，只是因为背单词时，发现全球和跟读这两个元素仿佛是js添加上去的，有延迟出现的卡顿，我就很烦，才改的，剩下的没咋摸索

---

<div class="post-metadata">

**Author:** ![lotus123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@lotus123](https://forum.freemdict.com/u/lotus123)\
**Post date:** [2022 年5 月 19 日 01:51 UTC](https://forum.freemdict.com/t/topic/13096/18 "2022-05-19T01:51:28Z")

</div>

哈哈，好的。谢谢分享方法和提供代码。 🧡

---

<div class="post-metadata">

**Author:** ![lotus123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/l/ac91a4/32.png) [@lotus123](https://forum.freemdict.com/u/lotus123)\
**Post date:** [2022 年5 月 19 日 02:04 UTC](https://forum.freemdict.com/t/topic/13096/20 "2022-05-19T02:04:41Z")

</div>

是用什么方法查得对应的元素呢，我好自个儿找找看。

---

<div class="post-metadata">

**Author:** ![沈洛爻](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E6%B2%88/51bf81/32.png) [@沈洛爻](https://forum.freemdict.com/u/%E6%B2%88%E6%B4%9B%E7%88%BB)\
**Post date:** [2022 年5 月 19 日 02:17 UTC](https://forum.freemdict.com/t/topic/13096/21 "2022-05-19T02:17:28Z")

</div>

如果能用mdx的话那就更好了，我是在电脑端的词典调试器查看的，电脑端的词典调试器会显示当前页面的所有元素，但是手机端的某些元素电脑端没有，比如跟读这个选项，我当时是把apk解压出来，在main这个css里面，一个一个地试class，，

[下一页](https://forum.freemdict.com/t/topic/13096.md?page=2)
