diff --git a/py/LunaTranslator/cishu/mdict.py b/py/LunaTranslator/cishu/mdict.py index f33ae537..b48b7069 100644 --- a/py/LunaTranslator/cishu/mdict.py +++ b/py/LunaTranslator/cishu/mdict.py @@ -2294,7 +2294,7 @@ class mdict(cishubase): return _type, file_content if url.startswith("entry://"): - return 3, "javascript:safe_mdict_entry_call('{}')".format(url[8:]) + return 3, "javascript:safe_mdict_search_word('{}')".format(url[8:]) if url.startswith("sound://"): file_content = self.parse_url_in_mdd(index, url[8:]) if not file_content: @@ -2582,10 +2582,10 @@ for(let i=0;i +function safe_weblio_search_word(word){ + if(window.luna_search_word) + window.luna_search_word(word) + else if(window.LUNAJSObject) + window.LUNAJSObject.luna_search_word(word) +} +''' links = [] style = simplehtmlparser(html, "style", "