keyconfig 20110522

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
Cattleya
Posts: 57
Joined: October 7th, 2010, 11:14 pm

Re: keyconfig 20110522

Post by Cattleya »

Hi all, I need help again :)
I need custom keys to:
- Backward in New Tab
- Forward in New Tab
- Backward in New Window
- Forward in New Window

And is it possiable to Reload All Image on page with a hotkey ?
Example I change permissions.default.image to disable image from load, open a page, then change permissions.default.image to Allow image, and Reload All Image to show image without Reload Page ?

Thank!
firefoxuse
Posts: 1086
Joined: November 8th, 2011, 12:06 pm

Re: keyconfig 20110522

Post by firefoxuse »

why is the title of this thread "keyconfig 20110522" and not just "keyconfig" ??
User avatar
tonymec
Posts: 734
Joined: October 15th, 2004, 2:58 am
Location: Ixelles (Brussels Capital Region, Belgium)
Contact:

Re: keyconfig 20110522

Post by tonymec »

firefoxuse wrote:why is the title of this thread "keyconfig 20110522" and not just "keyconfig" ??

Because 20110522 is the current version of keyconfig. It means "22 May 2011" which is the day it was released. As you can see from the first post in the thread, the previous version was 20110323 (i.e. 23 March 2011).
Best regards,
Tony
AceK
Posts: 1
Joined: November 28th, 2012, 6:48 pm

Re: keyconfig 20110522

Post by AceK »

First, I should say that this add-on has been a remarkable contribution to my productivity. I am forever in your debt. My dilemma is this: I would love to be able to create a new window that automatically closes whenever it loses focus. After several failed attempts by various means (the most seemingly prominent of which involved the setAttribute() method) I am beginning to think I've aimed for something outside the scope of keyconfig. However, I thought I would ask here before I gave up on the endeavor. Thanks so much for your dedication!
hamelg
Posts: 3
Joined: November 20th, 2012, 1:50 pm

Re: keyconfig 20110522

Post by hamelg »

AceK wrote: I would love to be able to create a new window that automatically closes whenever it loses focus.

IMHO, this job must be done by your Window Manager or an additional tools like http://www.burtonini.com/blog/computers/devilspie ...
mueller
Posts: 11
Joined: July 11th, 2011, 3:10 am

Re: keyconfig 20110522

Post by mueller »

I like to move messages directly to a folder - with a shortcut.
In Thunderbird 17.

In the article
http://guarly.wordpress.com/2010/04/30/ ... -a-folder/
I found that code:

Code: Select all

MsgMoveMessage(GetMsgFolderFromUri(‘imap://lorem%40ipsum.tld@imap.ipsum.tld/doloret’));


The URI I get of the properties of my folder "doloret".

But the code does not work.

Do you know how to solve the task?
Thanks.
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20110522

Post by dorando »

Linkintones wrote:Is it possible to add a hotkey for unloading all tabs like Firefox does when resuming a saved session?
Try

Code: Select all

var SessionStore Components.classes["@mozilla.org/browser/sessionstore;1"].getService(Components.interfaces.nsISessionStore);
var 
state SessionStore.getBrowserState();
SessionStore.setBrowserState('{"windows":[{"tabs":[{}]}]}');
SessionStore.setBrowserState(state); 

hamelg wrote:Is it a bug ?
Likely Bug 799348 - [Firefox 16] load event is not always triggered by XUL windows, fixed in Firefox 17.

firefoxuse wrote:is it possible by pressing ALT to click GO button, only when focus is inside address bar?
Modifiers by itself are not usable for <key>s.

tonymec wrote:
rick7 wrote:Thank you! So I would just substitute the name of my mail account where your code has "Local%20Folders"?
Find out the mailbox URL for the server in question, it doesn't necessarily start with nobody@. Maybe by finding out where an attachment or a message is "copied from" when using Save As, I'm not sure.

Code: Select all

alert(gFolderDisplay.displayedFolder.URI); 
(the text is selectable/copyable).

Cattleya wrote:- Backward in New Tab
Try

Code: Select all

duplicateTabIn(gBrowser.selectedTab"tab", -1); 
Cattleya wrote:- Forward in New Tab
Try

Code: Select all

duplicateTabIn(gBrowser.selectedTab"tab"1); 
Cattleya wrote:- Backward in New Window
Due to Bug 726275/Bug 629232 try

Code: Select all

var tab Components.classes["@mozilla.org/browser/sessionstore;1"]
          .
getService(Components.interfaces.nsISessionStore)
          .
duplicateTab(windowgBrowser.selectedTab, -1);
gBrowser.hideTab(tab);
gBrowser.replaceTabWithWindow(tab);
tab.linkedBrowser.reload(); 
Cattleya wrote:- Forward in New Window
Try

Code: Select all

var tab Components.classes["@mozilla.org/browser/sessionstore;1"]
          .
getService(Components.interfaces.nsISessionStore)
          .
duplicateTab(windowgBrowser.selectedTab1);
gBrowser.hideTab(tab);
gBrowser.replaceTabWithWindow(tab);
tab.linkedBrowser.reload(); 
Cattleya wrote:And is it possiable to Reload All Image on page with a hotkey ?
Try

Code: Select all

var images document.commandDispatcher.focusedWindow.document.images || content.document.images;
for(var 
image of images) {
 if (
image instanceof Components.interfaces.nsIImageLoadingContent && image.currentURI)
  
image.forceReload();

AceK wrote:I would love to be able to create a new window that automatically closes whenever it loses focus.
Try

Code: Select all

OpenBrowserWindow().addEventListener("load", function tempFunction(event){
 
this.removeEventListener(event.typetempFunctiontrue);
 
this.addEventListener("deactivate", function tempFunction(event){
  
this.removeEventListener(event.typetempFunctiontrue);
  
this.close();
 }, 
true);
}, 
true); 

mueller wrote:

Code: Select all

MsgMoveMessage(GetMsgFolderFromUri(‘imap://lorem%40ipsum.tld@imap.ipsum.tld/doloret’));
Try

Code: Select all

MsgMoveMessage(GetMsgFolderFromUri('imap://lorem%40ipsum.tld@imap.ipsum.tld/doloret')); 
Support mozilla.dorando.at through donations/contributions.
mueller
Posts: 11
Joined: July 11th, 2011, 3:10 am

Re: keyconfig 20110522

Post by mueller »

dorando wrote:

Code: Select all

MsgMoveMessage(GetMsgFolderFromUri('imap://lorem%40ipsum.tld@imap.ipsum.tld/doloret'));


Thanks :) Works fine.

The cause of the syntax error was a buggy wordpress script, which replaces normal single quotes.
I told the author of the blog article of that.
User avatar
pohunohi
Posts: 27
Joined: October 1st, 2010, 4:54 am

Re: keyconfig 20110522

Post by pohunohi »

dorando
dorando wrote:
Linkintones wrote:Is it possible to add a hotkey for unloading all tabs like Firefox does when resuming a saved session?

Try

Code: Select all

var SessionStore Components.classes["@mozilla.org/browser/sessionstore;1"].getService(Components.interfaces.nsISessionStore);
var 
state SessionStore.getBrowserState();
SessionStore.setBrowserState('{"windows":[{"tabs":[{}]}]}');
SessionStore.setBrowserState(state);  


Is it possible for one tab? For a menu item MenuManipulator.
nigelle
Posts: 117
Joined: June 9th, 2005, 8:30 am
Location: France

Re: keyconfig 20110522

Post by nigelle »

Short-cuts conflict
Apparently they are shown by the keys combination on deep blue when you open keyconfig screen.
-I had for a long time a short-cut "maximise", combination ctrl+shift+m code window.maximize(); that maximised the size of the screen. After 14.01 of FF this did not work...
-I have now a 2nd short-cut "Vue adaptative" in French that seems equivalent to "adaptive view" ? , same combination, code ResponsiveUI.toggle(); This seems to be linked with 'Bug 749628 Implement a "Responsive Design" tool' that landed at 15.0 . I have selected this new occurrence and inactivated it, some time after, during the same session FF crashed ; After FF restart the combination was re-activated so I inactivated it again. After normal end of FF the combination seems to remain inactivated.

Is it possible to be made aware of this sort of conflict without opening keyconfig screen ?
firefoxuse
Posts: 1086
Joined: November 8th, 2011, 12:06 pm

Re: keyconfig 20110522

Post by firefoxuse »

how can i open url1, url2, url3, with a key in seperate background tabs?

thanks!
NarkTwo
Posts: 2
Joined: December 18th, 2012, 11:45 pm

Re: keyconfig 20110522

Post by NarkTwo »

Wow, I cant believe how much this addon is able to do. So very impressed...

Dorando, if you could help me, I would greatly appreciate it.

So I am trying to figure out what the script is to enable and disable single window mode in Tab Mix Plus

I know in the Dom Inspector, it returns this,

id="singleWindow"
label="Enable Single Window Mode"
inverseDependency="true"
oncommand="TM_Options.singleWindow(this.checked);"
prefstring="extensions.tabmix.singleWindow"
checked="true"

but I cant figure out for the life of me how to use this info.

If anyone can help, id be forever thankful...

NarkTwo
Patu
Posts: 31
Joined: September 24th, 2008, 2:20 am

Highlight all occurrences of a searched expression

Post by Patu »

What would the keyboard shortcut be for the highlight-button in the search bar (highlightaccesskey), so that any occurrence of the searched word on the page is highlighted by a single key stroke.
This question was already asked in the forum in 2004. But Dorandos solution to it don't seem to work with my version of Firefox (17.0.1).

onemen wrote:How Can I define Key Shortcuts that activate an extension option.
like chose extansion manager ---> and click on the option button for the highlight extension. i nedd it for the edit menu extension.

Code: Select all

user_pref("keyconfig.main.xxx_key__Menu Editor", "!][][][openDialog('chrome://menuedit/content/menueditprefs.xul','', 'resizable');");


Can anyone help?
Thanks in advance
firefoxuse
Posts: 1086
Joined: November 8th, 2011, 12:06 pm

Re: keyconfig 20110522

Post by firefoxuse »

which is the code to "FOCUS ADDRESS BAR"?

thanks!
Zoolcar9
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)
Contact:

Re: keyconfig 20110522

Post by Zoolcar9 »

firefoxuse wrote:how can i open url1, url2, url3, with a key in seperate background tabs?

Code: Select all

gBrowser.loadTabs([url1, url2, url3], true); 


NarkTwo wrote:So I am trying to figure out what the script is to enable and disable single window mode in Tab Mix Plus

Code: Select all

var prefname = "extensions.tabmix.singleWindow";
var singleWindowMode = Services.prefs.getBoolPref(prefname)
Services.prefs.setBoolPref(prefname, !singleWindowMode);
var as = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService);
as.
showAlertNotification("chrome://tabmixplus/skin/tmp.png",
                         "Single Window Mode",
                         singleWindowMode ? "DISABLED" : "ENABLED",
                         false, "", null); 


Patu wrote:What would the keyboard shortcut be for the highlight-button in the search bar (highlightaccesskey), so that any occurrence of the searched word on the page is highlighted by a single key stroke.

It's called "find bar", not "search bar".

Code: Select all

var highlight = document.getAnonymousElementByAttribute(gFindBar, "anonid", "highlight");
gFindBar.toggleHighlight(highlight.checked = !highlight.checked); 


firefoxuse wrote:which is the code to "FOCUS ADDRESS BAR"?

Code: Select all

gURLBar.focus(); 
My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."
Post Reply