移植“沉浸式翻译”到Thunderbird实现邮件翻译

冲突的原因是什么?开发者工具中有具体报错信息吗?

同时开启插件:Thunderbird Conversations和沉浸式翻译插件,沉浸式翻译就用不了,表现为:alt+a翻译无反应,手动按沉浸式翻译按钮同样无反应,邮件查看界面无翻译悬浮球。
Thunderbird Conversations插件地址(顺便重新测试,问题依旧,可复现):

附图为我安装的其他插件。

报错信息:
Uncaught ReferenceError: module is not defined
moz-extension://fbd73a3f-511a-4502-863f-ca690388d892/punycode/punycode.js:440
punycode.js:440:1
cachePrefs static.js:150:28
This instance’s UUID: {d4309e99-e23d-4f1e-ae7c-e9344618ba54} static.js:150:28
Send Later version 10.6.3 on Thunderbird 128.9.1 (20250404032315) [win x86-64] UI locale zh-CN, Date Locale zh-Hans-CN static.js:150:28
ExtensionError: Invalid url pattern: http://*:11434 ExtensionUtils.sys.mjs:48:5
(intermediate value).getAttribute is not a function 6 ExtensionParent.sys.mjs:331:38
getTopBrowsingContextId resource://gre/modules/ExtensionParent.sys.mjs:331
normalizeArgs resource://gre/modules/ExtensionParent.sys.mjs:350
InterpretGeneratorResume self-hosted:1429
AsyncFunctionNext self-hosted:804
uncaught exception: Object
(intermediate value).getAttribute is not a function 3 ExtensionParent.sys.mjs:331:38
Promise rejected after context unloaded: Actor ‘Conduits’ destroyed before query ‘RuntimeMessage’ was resolved
content_script.js:5645
uncaught exception: Object
DKIM_Verifier.AuthVerifier ERROR Ignoring error in parsing of list-id header DKIM_Error: Cannot extract the list identifier from the List-Id header.
parseListIdHeader moz-extension://a7d99b5b-4f68-47da-bf68-00f7cd228fb1/modules/msgParser.mjs.js:236
verify moz-extension://a7d99b5b-4f68-47da-bf68-00f7cd228fb1/modules/authVerifier.mjs.js:171
authVerifier.mjs.js:173:9
Promise rejected after context unloaded: Actor ‘Conduits’ destroyed before query ‘RuntimeMessage’ was resolved
options.js:18315
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. 2
uncaught exception: Object
NotFoundError: No such JSProcessActor ‘BrowserToolboxDevToolsProcess’ ContentProcessWatcherRegistry.sys.mjs:394
NotFoundError: No such JSProcessActor ‘BrowserToolboxDevToolsProcess’ 27
uncaught exception: Object
TypeError: browser.browsingContext is null
getBrowserTabId chrome://messenger/content/parent/ext-mail.js:717
statusListener chrome://messenger/content/parent/ext-tabs.js:368
onStateChange chrome://extensions/content/parent/ext-tabs-base.js:1453
callListeners chrome://messenger/content/mailWindow.js:1024
callListeners chrome://messenger/content/mailWindow.js:1067
onStateChange chrome://messenger/content/mailWindow.js:1083
closeTab chrome://messenger/content/tabmail.js:1125
removeTabByNode chrome://messenger/content/tabmail.js:1143
connectedCallback chrome://messenger/content/tabmail-tab.js:99
mailWindow.js:1026:19
NetworkError when attempting to fetch resource.
uncaught exception: Object
downloadable font: kern: Too large subtable (font-family: “Open Sans” style:italic weight:700 stretch:100 src index:2) source: https://addons.thunderbird.net/static/css/impala/fonts/OpenSans-BoldItalic.ttf?78b08a6
downloadable font: Table discarded (font-family: “Open Sans” style:italic weight:700 stretch:100 src index:2) source: https://addons.thunderbird.net/static/css/impala/fonts/OpenSans-BoldItalic.ttf?78b08a6
Got install event for unknown install 0 6 amWebAPI.sys.mjs:45:21
DKIM_Verifier.AuthVerifier ERROR Ignoring error in parsing of list-id header DKIM_Error: Cannot extract the list identifier from the List-Id header.
parseListIdHeader moz-extension://a7d99b5b-4f68-47da-bf68-00f7cd228fb1/modules/msgParser.mjs.js:236
verify moz-extension://a7d99b5b-4f68-47da-bf68-00f7cd228fb1/modules/authVerifier.mjs.js:171
authVerifier.mjs.js:173:9
Immersive Translate ERROR: send content message request failed
Object { method: “toggleTranslatePage”, data: {…} }
Error: Could not establish connection. Receiving end does not exist.
sendMessage moz-extension://d61e4e7d-b66a-4962-9bc8-70c0b8a6d2e0/background.js:20352
background.js:6522:28
Uncaught TypeError: can’t access dead object
updateCurrentTab chrome://messenger/content/tabmail.js:1661
connectedCallback chrome://messenger/content/tabmail-tabs.js:440
set selectedIndex chrome://messenger/content/tabmail-tabs.js:524
switchToTab chrome://messenger/content/tabmail.js:1562
set selectedTab chrome://messenger/content/tabmail.js:612
update chrome://messenger/content/parent/ext-tabs.js:648
result resource://gre/modules/ExtensionParent.sys.mjs:1221
withCallContextData resource://gre/modules/ExtensionParent.sys.mjs:664
result resource://gre/modules/ExtensionParent.sys.mjs:1220
withPendingBrowser resource://gre/modules/ExtensionParent.sys.mjs:674
result resource://gre/modules/ExtensionParent.sys.mjs:1219
callAndLog resource://gre/modules/ExtensionParent.sys.mjs:1170
recvAPICall resource://gre/modules/ExtensionParent.sys.mjs:1218
tabmail.js:1661:11
Could not find item to install: actionEnableBetween assistant.mjs:262:17
WebExtension context not found! ExtensionParent.sys.mjs:1362:13
(intermediate value).getAttribute is not a function 6 ExtensionParent.sys.mjs:331:38
TypeError: URL constructor: undefined is not a valid URL.

其实直接删除Thunderbird Conversations 这个插件就正常了。具体问题点我看gpt也是插件冲突,但具体怎么修就不清楚了 :grinning_face:

大佬厉害

似乎目前没有解决方案,因为Conversations覆盖了原有的邮件阅读窗格,其他插件没法更改里面的内容(?),也无法知悉当前点开的具体是哪封邮件。类似的例如Dark Reader也没法与之工作。
一些参考链接(一些消息可能已过时):

:ok_hand:
知道了,thx

thunderbird 137.0.1版本安装懒人包1.11.7 好使,用1.15.10就不起作用了 :bili_001:。我试着自己修改了一下原版的1.15.10,也是不起作用

我特意升级到了137.0.1,测试使用正常,你看看是不是装了其他不兼容的插件,例如上面说的Thunderbird Conversations

没有安装其他的插件耶,我是新安装的,用我修改的1.15.2也是正常的,就很奇怪 :bili_001:,不过1.15.2能用也行了