Code Monkey home page Code Monkey logo

Comments (13)

techmuch avatar techmuch commented on June 25, 2024 1

Thank you for your hard work and dedication to open-source software it is greatly appreciated. Thank you for making email management even easier!

from tbkeys.

morat523035 avatar morat523035 commented on June 25, 2024 1

Try this:

"ctrl+h": "window.gTabmail.currentAboutMessage.LoadMsgWithRemoteContent();"

Remember to select a message with blocked remote content before running that command.

Troubleshooting
http://forums.mozillazine.org/viewtopic.php?p=14872763#p14872763

from tbkeys.

wshanks avatar wshanks commented on June 25, 2024 1

"ctrl+h": "(function () {window.gTabmail.currentAboutMessage.LoadMsgWithRemoteContent(); window.content.focus();});"

Here I think the issue might have been a missing ( -- you have an unmatched ) at the end. I think the end should be ().

from tbkeys.

trulycool avatar trulycool commented on June 25, 2024

I would also love to know if there is a command for this.

When first installing tbkeys-lite a year or two back, could not track it down. Ended up having to hack together an AutoHotkey shortcut that sends the literal keypresses, so when I use Alt + C in mail reader window it sends the key sequence exactly as if you were pressing Alt + O (opens options menu from button) then S (selects and runs the Show Remote Content entry).

It works, but feels hacky compared to knowing the TB internal command. And of course it's Windows only, since afaik there is no AHK for Mac or Linux...

Here is my AHK code in case it's helpful to others until someone sorts out the internal TB command:

;### ThunderbirdDone fixes
; Show Remote Contect shortcut to Thunderbird
#IfWinActive ahk_exe thunderbird.exe
	; alt + c
	!c:: ; Thunderbird Show Remote Content
	Send {Alt down}o{Alt up}s
return
;### END: Thunderbird fixes

from tbkeys.

trulycool avatar trulycool commented on June 25, 2024

It appears that once upon a time, TB had an internal command to do this:

LoadMsgWithRemoteContent

http://kb.mozillazine.org/Keyconfig_extension:_Thunderbird

...however sadly, this does not appear to work w/ current TB versions :(

from tbkeys.

morat523035 avatar morat523035 commented on June 25, 2024

The following command works with the error console.

window.LoadMsgWithRemoteContent();

Are you using tbkey or tbkeys-lite?

You cannot run arbitrary javascript with tbkeys-lite.

There is a tbkeys.xpi link on the GitHub releases page.

from tbkeys.

trulycool avatar trulycool commented on June 25, 2024

Well would you look at that, it works great in console!

I am currently running tbkeys-lite, I ended up w/ that since it was what was available in Thunderbird Add-ons.

I guess they not allow you to list the regular tbkeys there because of the ability to run arbitrary javascript w/ eval? Frustrating...

I wrote a somewhat extended plea on the TB keybinding API request thread you mention in the tbkeys repo.

Thank you for all your hard work on this extension, and for taking the time to respond to this thread. Much appreciated 🙏

from tbkeys.

trulycool avatar trulycool commented on June 25, 2024

Thank you @morat523035 !

While I hack about Firefox & FF Extensions, rarely mess w/ Thunderbird (tho it is my main mail app). Hadn't even tried the Dev Tools console...

I just assumed that TB had dropped the command altogether. But after seeing it run via console...was inspired to push a bit more...

And just after writing a [probably way too long] impassioned plea to the Thunderbird dev thread where @wshanks points in the full tbkeys repo, wherein he succinctly explains how his extension and the wonderful Nostalgy were both hobbled by the removal of a proper keyboard API...

I went back to the tbkeys-lite options, and noticed that in addition to the cmd: prefix, which calls internal TB commands, and which did not work w/ LoadMsgWithRemoteContent, there is a func: prefix too...

And voila! We can haz keyboard shortcut to 'Show remote content in message' w/ tbkeys-lite!

"ctrl+shift+c": "func:LoadMsgWithRemoteContent"

Thanks to all for the code and info; open source rules!

🙏🙌🕸

from tbkeys.

techmuch avatar techmuch commented on June 25, 2024

Works perfectly!!! 🙏 🙏 🙏

from tbkeys.

Crandel avatar Crandel commented on June 25, 2024

Since thunderbird 115 update func:LoadMsgWithRemoteContent is not working anymore

from tbkeys.

morat523035 avatar morat523035 commented on June 25, 2024

The LoadMsgWithRemoteContent function is now defined in the aboutMessage.xhtml window, not the messenger.xhtml window.

Try the following command with tbkeys.

window.gTabmail.currentAboutMessage.LoadMsgWithRemoteContent();

You cannot run arbitrary javascript with tbkeys-lite.

There is a tbkeys.xpi link on the GitHub releases page.

About new mail front end
http://developer.thunderbird.net/thunderbird-development/codebase-overview/mail-front-end
http://developer.thunderbird.net/add-ons/updating/tb115/adapt-to-changes-in-thunderbird-103-115

from tbkeys.

Crandel avatar Crandel commented on June 25, 2024

I'm using tbkeys, but have no idea how to run this code.
This is my settings and nothing happens when I press Ctrl+h.

"ctrl+h": "(function () {window.gTabmail.currentAboutMessage.LoadMsgWithRemoteContent(); window.content.focus();});"

from tbkeys.

Crandel avatar Crandel commented on June 25, 2024

Thank you. Now everything is working correctly

from tbkeys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.