keyconfig 20110522
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Hi!
Can I increase/decrease zoom level by a specific percentate via keyconfig? I'm thinking of using ctrl+shift +wheel and num +/-
Can I increase/decrease zoom level by a specific percentate via keyconfig? I'm thinking of using ctrl+shift +wheel and num +/-
- WildcatRay
- Posts: 7486
- Joined: October 18th, 2007, 7:03 pm
- Location: Columbus, OH
Re: keyconfig 20110522
Do you mean something other than the +/-10% that occurs when you hold Ctrl and scroll the mouse wheel?avada wrote:Hi!
Can I increase/decrease zoom level by a specific percentate via keyconfig? I'm thinking of using ctrl+shift +wheel and num +/-
Ray
OS'es: 4 computers with Win10 Pro 64-bit; Current Firefox, Beta, Nightly, Chrome, Vivaldi
OS'es: 4 computers with Win10 Pro 64-bit; Current Firefox, Beta, Nightly, Chrome, Vivaldi
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Yes. Actually I zoom by zoom levels specified in an addon. But it would be nice to have a fixed percent mode as well.WildcatRay wrote:Do you mean something other than the +/-10% that occurs when you hold Ctrl and scroll the mouse wheel?avada wrote:Hi!
Can I increase/decrease zoom level by a specific percentate via keyconfig? I'm thinking of using ctrl+shift +wheel and num +/-
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@avada
Normally Fx uses the values in the toolkit.zoomManager.zoomValues pref.
Try these:
Normally Fx uses the values in the toolkit.zoomManager.zoomValues pref.
Try these:
Code: Select all
ZoomManager.zoom += 0.10;
Code: Select all
ZoomManager.zoom -= 0.10;
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Thanks! It works fine.morat wrote:@avada
Normally Fx uses the values in the toolkit.zoomManager.zoomValues pref.
Try these:
Code: Select all
ZoomManager.zoom += 0.10;
Code: Select all
ZoomManager.zoom -= 0.10;
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Hi!
Does anyone have a neat solution to hide all GUI elements (preferably, for the particular window only) and show them, leaving only the window frame. And them show them again on when they're hidden
(I guess the titlebar can't be hidden via JS/css)
Does anyone have a neat solution to hide all GUI elements (preferably, for the particular window only) and show them, leaving only the window frame. And them show them again on when they're hidden
(I guess the titlebar can't be hidden via JS/css)
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@avada
I don't remember what works and what doesn't work on Firefox 56. Perhaps...
Full Screen Plus
http://custombuttons.sourceforge.net/fo ... ?f=4&t=250
Edit:
Here is a version for keyconfig of the toggle chrome middle click button.
I don't remember what works and what doesn't work on Firefox 56. Perhaps...
Full Screen Plus
http://custombuttons.sourceforge.net/fo ... ?f=4&t=250
Edit:
Here is a version for keyconfig of the toggle chrome middle click button.
Code: Select all
// setToolbarVisibility function uses document.persist
// i.e. toolbar visibility persists across browser sessions
// https://developer.mozilla.org/en/XUL/Attribute/persist
function hideChrome() {
var mainWindow = document.getElementById("main-window");
window.moveTo(0, 0);
window.maximize();
mainWindow.setAttribute("hidechrome", "true");
window.resizeTo(window.screen.availWidth, window.screen.availHeight - 2);
}
function showChrome() {
var mainWindow = document.getElementById("main-window");
mainWindow.setAttribute("hidechrome", "");
window.resizeTo(window.screen.availWidth, window.screen.availHeight);
window.maximize();
}
function setToolbarGroupVisibility(isVisible) {
var toolbar;
// toolbar = document.getElementById("toolbar-menubar"); // Menu Bar
// setToolbarVisibility(toolbar, isVisible);
// toolbar = document.getElementById("nav-bar"); // Navigation Toolbar
// setToolbarVisibility(toolbar, isVisible);
toolbar = document.getElementById("PersonalToolbar"); // Bookmarks Toolbar
setToolbarVisibility(toolbar, isVisible);
// toolbar = document.getElementById("status4evar-status-bar"); // Status-4-Evar, Status Bar
// setToolbarVisibility(toolbar, isVisible);
// toolbar = document.getElementById("ctraddon_extra-bar"); // Classic Theme Restorer, Additional Toolbar
// setToolbarVisibility(toolbar, isVisible);
// toolbar = document.getElementById("ctraddon_addon-bar"); // Classic Theme Restorer, Add-on Bar
// setToolbarVisibility(toolbar, isVisible);
// toolbar = document.getElementById("GBL-Toolbar"); // Googlebar Lite Toolbar
// toolbar.collapsed = !isVisible;
// document.persist(toolbar.id, "collapsed");
// toolbar = document.getElementById("webdeveloper-toolbar"); // Web Developer Toolbar
// toolbar.collapsed = !isVisible;
// document.persist(toolbar.id, "collapsed");
}
if (window.fullScreen) {
window.fullScreen = false;
gBrowser.setStripVisibilityTo(true);
} else if (isChromeVisible) {
hideChrome();
setToolbarGroupVisibility(false);
} else {
showChrome();
setToolbarGroupVisibility(true);
}
Last edited by morat on June 10th, 2019, 4:43 am, edited 1 time in total.
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Thanks, I'll have a look. Though I don't want full screen. I want to hide all ui elements in floating window mode.morat wrote:@avada
I don't remember what works and what doesn't work on Firefox 56. Perhaps...
Full Screen Plus
http://custombuttons.sourceforge.net/fo ... ?f=4&t=250
-
- Posts: 3
- Joined: June 15th, 2019, 2:18 am
Re: keyconfig 20110522
Hi,
Using Keyconfig, I found out how to move a message to a specified folder (using update from this old post).
However, I cannot figure out how to create macro to go to a specific folder. I did try code suggested here (mention "Go to a specific folder" in section "Custom code") and searched backward on this thread (a dozen pages) with no result.
Any suggestion?
(Linux Ubuntu 16.04 Thunderbird 60.7 Keyconfig 2018.1)
Using Keyconfig, I found out how to move a message to a specified folder (using update from this old post).
However, I cannot figure out how to create macro to go to a specific folder. I did try code suggested here (mention "Go to a specific folder" in section "Custom code") and searched backward on this thread (a dozen pages) with no result.
Any suggestion?
(Linux Ubuntu 16.04 Thunderbird 60.7 Keyconfig 2018.1)
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@teabow
Try these:
Try these:
Code: Select all
// show folder uri
alert(GetFirstSelectedMsgFolder().URI);
Code: Select all
// select folder
var targetUri = "mailbox://nobody@Local%20Folders/Trash";
SelectFolder(targetUri);
Code: Select all
// move message
var targetUri = "mailbox://nobody@Local%20Folders/Trash";
var targetFolder = MailUtils.getFolderForURI(targetUri);
MsgMoveMessage(targetFolder);
-
- Posts: 3
- Joined: June 15th, 2019, 2:18 am
Re: keyconfig 20110522
@morat
Thanks for reply.
#1 and #2 don't seem to work, except if I'm doing something wrong.
In #1, URI is to be replaced by the URI, correct? Or should I leave it and put the URI between empty ()? EDIT: does not work either.
In #2, what is in "quote" is to be replaced by the URI, correct? Or should I also replace targetUri in the last line?
Haven't tried #3 which seems to be moving message to a folder.
Thanks for reply.
#1 and #2 don't seem to work, except if I'm doing something wrong.
In #1, URI is to be replaced by the URI, correct? Or should I leave it and put the URI between empty ()? EDIT: does not work either.
In #2, what is in "quote" is to be replaced by the URI, correct? Or should I also replace targetUri in the last line?
Haven't tried #3 which seems to be moving message to a folder.
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@teabow
The code snippets work for me.
Thunderbird 60.7.1
Windows 7 SP1 32-bit
You just need to change the folder uri.
My "Trash" folder uri for my "Local Folders" account is "mailbox://nobody@Local%20Folders/Trash".
My "Inbox" folder uri for my Google IMAP account is "imap://username%40gmail.com@imap.googlemail.com/INBOX".
Your folder uris are different than mine. You can use the first code snippet to show the folder uri of the selected folder.
As a test, you can select a folder, then run the first code snippet in the console.
Tools > Developer Tools > Error Console
Error Console command line
http://developer.mozilla.org/en-US/docs ... mmand_line
The code snippets work for me.
Thunderbird 60.7.1
Windows 7 SP1 32-bit
You just need to change the folder uri.
My "Trash" folder uri for my "Local Folders" account is "mailbox://nobody@Local%20Folders/Trash".
My "Inbox" folder uri for my Google IMAP account is "imap://username%40gmail.com@imap.googlemail.com/INBOX".
Your folder uris are different than mine. You can use the first code snippet to show the folder uri of the selected folder.
As a test, you can select a folder, then run the first code snippet in the console.
Tools > Developer Tools > Error Console
Error Console command line
http://developer.mozilla.org/en-US/docs ... mmand_line
-
- Posts: 3
- Joined: June 15th, 2019, 2:18 am
Re: keyconfig 20110522
@morat
Your suggestion does work, thank you.
A conflict between keyboard shortcuts was the problem.
Your suggestion does work, thank you.
A conflict between keyboard shortcuts was the problem.
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: keyconfig 20110522
Well, I got as far as finding this CSS:avada wrote:Hi!
Does anyone have a neat solution to hide all GUI elements (preferably, for the particular window only) and show them, leaving only the window frame. And them show them again on when they're hidden
(I guess the titlebar can't be hidden via JS/css)
Code: Select all
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#TabsToolbar {visibility: collapse;}
#navigator-toolbox {visibility: collapse;}
browser {margin-right: -14px; margin-bottom: -14px;}
Now, I guess I can apply this via JS and keyconfig somehow.
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@avada
Try something like:
Try something like:
Code: Select all
var css = [];
css.push("#TabsToolbar { visibility: collapse !important; }");
// css.push("...");
// css.push("...");
var ios = Components.classes["@mozilla.org/network/io-service;1"].
getService(Components.interfaces.nsIIOService);
var uri = ios.newURI("data:text/css," + encodeURIComponent(css.join("\n")), null, null);
var sss = Components.classes["@mozilla.org/content/style-sheet-service;1"].
getService(Components.interfaces.nsIStyleSheetService);
if (sss.sheetRegistered(uri, sss.USER_SHEET)) {
sss.unregisterSheet(uri, sss.USER_SHEET);
} else {
sss.loadAndRegisterSheet(uri, sss.USER_SHEET);
}