Zoolcar9 wrote:WildcatRay wrote:Are you getting something copying to the clipboard?
Yes.
Thanks. At least now I know it is something on my end.
Zoolcar9 wrote:WildcatRay wrote:Are you getting something copying to the clipboard?
Yes.
bege wrote:Leopoldus wrote:Hi!
Is there any ready-made code for a hotkey to toggle on/off HTML view? There was an add-on HTML View toggle, but it has stop working many TB versions and many years ago.
Thanks!
I am using "Allow HTML Temp" extension.
rbfye14 wrote:How can I emulate keyup and keydown event for Alt key?
Code: Select all
var utils = document.commandDispatcher.focusedWindow.
QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent("keydown", KeyEvent.DOM_VK_ALT, 0, 0);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_ALT, 0, 0);
utils.sendKeyEvent("keyup", KeyEvent.DOM_VK_ALT, 0, 0);
I guess the Allow HTML Temp extension does what you want.
hungerburg wrote:A hopefully simple question:
Can I use the keyconfig addon to make "Ctrl-Shift-F" in thunderbird preselect "body" as the initial term (instead of subject)?
Leopoldus wrote:@morat
@tonymec
@begeI guess the Allow HTML Temp extension does what you want.
Yes and no. Yes, this extension does allow temporarily enable/disable HTML view for the current message being view.
No, it does not let do what I need. At the first, it works only in the event, that the default view mode is NOT original HTML, but plain text or Simple HTML (not my case) - see the description https://addons.mozilla.org/en-US/thunde ... -html-temp . The second, it works only via toolbar buttons and does not allow assign a hotkey (if I have not missed anything). But I surely prefer a keyboard to mouse, at least, for such type of toggle operations (well, I suppose the most of guys in this topic are keyboard maniacs as me).
So my request is still actual.
Code: Select all
MsgBodyAllowHTML()
Code: Select all
MsgBodySanitized()
Code: Select all
MsgBodyAsPlaintext()
morat wrote:Try this:Code: Select all
var utils = document.commandDispatcher.focusedWindow.
QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent("keydown", KeyEvent.DOM_VK_ALT, 0, 0);
utils.sendKeyEvent("keypress", KeyEvent.DOM_VK_ALT, 0, 0);
utils.sendKeyEvent("keyup", KeyEvent.DOM_VK_ALT, 0, 0);
liquider wrote:does anyone following this thread for long enough please care to elaborate dafuq's the reason this add-on, the single one that actually works, is not listed on addons.mozilla.org ??
bege wrote:So I think that someone can make a shortcut to toggle between these options. (I am sorry, I don't have a clue.)
Code: Select all
javascript:var%20uri=window.location.href;xhr=new%20XMLHttpRequest();xhr.open('POST','https://www.googleapis.com/urlshortener/v1/url',false);xhr.setRequestHeader('Content-Type','application/json');xhr.send(JSON.stringify({longUrl:uri}));var%20json=xhr.responseText;var%20obj=JSON.parse(json);alert(obj.id);