morat523035
morat523035
> executeInBackground internally calls Function.toString(), so you do not need to do `"(" + ... + ")"` when calling it. I don't like using arrow functions. ``` /* Foxy Gestures...
My goal is to go beyond the restrictive WebExtensions API. I got something working with a PlacesUtils listener. ``` /* Foxy Gestures UserScript */ (function () { executeInBackground("(" + function...
You can do that with a user script. Open Image In New Tab http://github.com/marklieberman/foxygestures/wiki/User-Scripts#examples Here is how to open an image or a background image in a new tab. ```...
Here are code snippets for collapseFolder, expandFolder, folderDown, folderUp. http://teramako.hatenadiary.org/entry/20070427/p1 The treeBoxObject has been removed. http://developer.thunderbird.net/add-ons/updating/tb68/changes#nsitreeboxobject-nsitreecolumn-nsitreeview Here is a code snippet to go to the next folder beginning with the...
Here is how to select the inbox folder for the current account. ``` (function () { var selectedFolder = window.gFolderDisplay.displayedFolder; var inboxFolder = selectedFolder.rootFolder.getFolderWithFlags(window.Components.interfaces.nsMsgFolderFlags.Inbox); var sentMailFolder = selectedFolder.rootFolder.getFolderWithFlags(window.Components.interfaces.nsMsgFolderFlags.SentMail); var allMailFolder...
Here is a json object using an anonymous function. ``` { "1": "window.alert('example 1');", "2": "(function () { var text = 'example 2'; window.alert(text); })();" } ``` http://www.javascripttutorial.net/javascript-anonymous-functions/ I like...
@xkonni Try using a delay. The following code snippet works in the error console. ``` window.setTimeout(function () { window.quickmove.openFile(); }, 1000); ``` Quick Folder Move http://addons.thunderbird.net/thunderbird/addon/12018
@xkonni Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. You can use the cmd shorthand and func shorthand with tbkeys and tbkeys-lite. Use the cmd...
@Lantizia Show selected folder url: ``` window.alert(window.gFolderDisplay.displayedFolder.URI); ``` Move message to given folder url: ``` (function () { var targetUri = 'mailbox://nobody@Local%20Folders/Cowabunga'; var targetFolder = window.MailUtils.getExistingFolder(targetUri); window.MsgMoveMessage(targetFolder); })(); ``` Examples...
@Lantizia Here is a contrived example that uses a recursive function. It shows all root folder subfolder urls in a new tab and alerts the "Shopping" folder url for the...