User Help for Mozilla Thunderbird
I'd like to set up a hotkey for the "Show remote content" command, so that when I open a Message I can quickly active the remote images and so on (but only when and if I want). I already use with satisfaction the Exceptions in the list of the addresses from which to regularly show the remote content, but here I am referring to e-mails from occasional addresses, not saved in my Address Book.
And I still want that the default behavior is not to show them; only if I wish, and with a hotkey.
I mean, maybe using the Keyconfig addon, for example. But I need to know how to express the command in terms of CODE:
Moving to Thunderbird Support.
* toggle "Show remote content for this message"
Thank you morat for the suggestion. But, unfortunately, I can't apply it properly, and maybe I made a mistake somewhere.
Now all the messages show remote content by default, even if in the general Options I unchecked the related box.
So maybe I modified, using your command, somewhat in the "deep" configuration of the variables.
How to reset to fabric values, in order to try alternatives or make other attempts?
Isn't there a method to edit the Thunderbird general hotkeys without keyconfig? In fact, I currently hardly understand how it works precisely.
Do you know how to create a keyboard shortcut with the keyconfig extension? I can post instructions if you want.
The code changes the remoteContentPolicy property in the mail summary file (*.msf) for the selected message. It does not change "all the messages".
What version of Thunderbird are you using? I am assuming you are using the release build.
Thank you morat, very kind from you this help.
Your right, some other instructions about Keyconfig will be useful. In fact, maybe I'm not so expert in creating a shortcut with Keyconfig.
For example, I can't understand so well:
1. install extension and restart
2. tools > keyconfig
3. select a window in the dropdown window list
4. add a new key
5. type a command in the /* CODE */ box, e.g. alert("test");
6. type a shortcut in the <Disabled> box, e.g. Ctrl+Shift+!
The shortcuts are stored as preferences. You can use the search bar at the top of the about:config window to filter the preferences that you want to reset.
You can also reset the shortcuts in the keyconfig dialog.
You need to restart after resetting shortcuts.
Here are two examples that alert the chrome url when using the shortcut.
Create a ctrl+shift+1 shortcut with the global option checked.
Create a ctrl+shift+2 shortcut with the global option unchecked.
Example 1 works in all windows.
Example 2 works in only the selected window.
Here is a list of common chrome urls.
3pane window > chrome://messenger/content/messenger.xul
message window > chrome://messenger/content/messageWindow.xul
compose window > chrome://messenger/content/messengercompose/messengercompose.xul
address book window > chrome://messenger/content/addressbook/addressbook.xul
keyconfig window > chrome://keyconfig/content/keyconfig.xul
prompt window > chrome://global/content/commonDialog.xul
The 1st window in the dropdown list is the 3pane window.
The 2nd window in the dropdown list is likely the message window.
The 3rd window in the dropdown list is the keyconfig window.
You should select the window you want the shortcut to work in.
your instructions were clear. I learned and applied: all works perfectly, now, exactly as I desired!
I set up "C" as shortcut with your code, checking "Global". Now if I press "C" in a "clouded" message, the images and other remote content appear. And if I press "C" again, instead, the content turns off as it originally was.
Great help from you: thanks.
But, I wonder, is there any way to switch this toggle "active/inactive" from the menu? I can't find this command anyway.
...how delightful to press "C" and "C" again a lot of times, and to see the remote content appearing and disappearing all the times I want...
It's beautiful to feel all this mastery with the software. Gratifying.
p.s. "C" is the shortcut I chose
Hi, Right click & Save Link as....to wherever you desire.
Then drag 'n' drop the .xpi file into Thunderbird's Addons screen.
Close & re-open to complete.
(I'm leaving this open, even though it's rather old.)
unluckily, dorando keyconfig isn't supported anymore (Thunderbird 68+). On the keyconfig forum, It was suggested to me to try tbkeys as an alternative to keyconfig.
So I am trying to create again, here in tbkeys, a hotkey to toggle hide/view the remote content in my messages (this is so useful, for me!).
But I don't know if the keyconfig code that morat provided me several years ago, just here in this thread, can be applied also to tbkeys.
Tbkeys is based on a little textfile (with json syntax, I think) where all the hotkeys are listed. Here is, for example, the custom ones:
How can I adapt the excellent morat code (quoted below) to tbkeys, in order to assign the command to the "c" key?
I was pleasantly surprised to read: "Thunderbird 78 compatibility: Converts extension from legacy bootstrapped extension to MailExtension with a WebExtension Experiment." on the tbkeys web site. That means it has a future.
These code snippets work correctly in the error console in Thunderbird 68.
Multiple line code snippet with the double quote characters:
Single line code snippet with the single quote characters:
I guess you could paste the single line code snippet into the background.js file like so. (not tested)
Last edited by morat on July 19th, 2020, 8:03 pm, edited 2 times in total.
Who is online
Users browsing this forum: No registered users and 2 guests