keyconfig 20110522

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
Morgan B
Posts: 155
Joined: June 7th, 2009, 9:08 am

Re:

Post by Morgan B »

Morgan B wrote:I need help making a key that previews the style I'm currently editing in Stylish. I know that the "Preview" button has an accesskey (it's ctrl+f) for me, but I don't like that the code box loses focus then - that's why I want this key. TIA.

I found the answer here: http://forum.userstyles.org/discussion/26829/keyconfig-key-for-previewing-styles/
Cattleya
Posts: 57
Joined: October 7th, 2010, 11:14 pm

Re: keyconfig 20110522

Post by Cattleya »

Hi dorando,
Is it possible to create a shortcut to Pin/Unpin All Tabs as App Tab ? Thank you.
nightson
Posts: 32
Joined: April 21st, 2011, 7:51 am

Re: keyconfig 20110522

Post by nightson »

Hi dorando,

Is there a way to create a shortcut to load specific url in sidebar? I wanna use this to replace the default behaviour of Ctrl+J.
Thank you.
Hamid_Y2K
Posts: 20
Joined: July 8th, 2010, 4:59 am

Re: keyconfig 20110522

Post by Hamid_Y2K »

Hamid_Y2K wrote:cookies manager addon
Try

Code: Select all

openCookieEditor(); 

Hi :D
Excuse me for my bad english :oops:
this code does't work . i created new profile & tested again :|
And I have a one request from you :roll:
my ext:Foxyproxy standard
plz give me a code to set shortcut key for switch between "Completely Disable Foxyproxy " & "Use proxies based on their pre-defined pattern & Priorities"
I hope you understand what I mean.
Very Thanks :mrgreen:
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20110522

Post by dorando »

TamTamX wrote:Sorry if this has been answered, but I'm still trying to figure out the right command/script to pop up Undo Closed Tabs Button's list of closed tabs in Firefox 3.6.17 (link to the extension's page).
For version 3.7.1 try

Code: Select all

document.getElementById("uctb-toolbar-button").open true
for 3.6.2 try

Code: Select all

document.getElementById("undoclosedtabsbutton-toolbar-button").open true

Thomas_BA wrote:

Code: Select all

content.scrollBy(0content.innerHeight);
var 
threadTree document.getElementById("threadTree")
var 
min = {};
threadTree.view.selection.getRangeAt(0,min,{});
threadTree.currentIndex min.value
This works perfect for scrolling down and solved my first problem.

So i need the same for scrolling the messag up with ´Crtl + Up´
Try

Code: Select all

content.scrollBy(0, -content.innerHeight);
var 
threadTree document.getElementById("threadTree")
var 
min = {};
threadTree.view.selection.getRangeAt(0,min,{});
threadTree.currentIndex min.value

Cattleya wrote:Is it possible to create a shortcut to Pin/Unpin All Tabs as App Tab ?
Try

Code: Select all

var tabs gBrowser.visibleTabs;

if(
tabs[0].pinned)
 for(var 
tabs.length 1> -1i--)
  
gBrowser.unpinTab(tabs[i]);
else
 for(var 
0tabs.lengthli++)
  
gBrowser.pinTab(tabs[i]); 

nightson wrote:Is there a way to create a shortcut to load specific url in sidebar? I wanna use this to replace the default behaviour of Ctrl+J.
Try

Code: Select all

if(document.getElementById("sidebar-title").value == "Downloads")
 
toggleSidebar('viewWebPanelsSidebar'false);
else
 
openWebPanel("Downloads","chrome://mozapps/content/downloads/downloads.xul"); 
(suboptimal since it expects to be opened as a window, but it seems to work good enough)

Hamid_Y2K wrote:
Hamid_Y2K wrote:cookies manager addon
Try

Code: Select all

openCookieEditor(); 
Hi :D
Excuse me for my bad english :oops:
this code does't work . i created new profile & tested again :|
Try

Code: Select all

coomanPlus.openCookieEditor(); 
Hamid_Y2K wrote:code to set shortcut key for switch between "Completely Disable Foxyproxy " & "Use proxies based on their pre-defined pattern & Priorities"
Try

Code: Select all

foxyproxy.fp.setMode(foxyproxy.fp.mode == "disabled" "patterns""disabled"true);
foxyproxy.updateViews(true); 
Support mozilla.dorando.at through donations/contributions.
User avatar
WildcatRay
Posts: 7486
Joined: October 18th, 2007, 7:03 pm
Location: Columbus, OH

Re: keyconfig 20110522

Post by WildcatRay »

Thanks for all your work on this, dorando.

A recent change in Firefox disables the use of Ctrl+W to close a pinned/App Tab. Is there a way to re-enable Ctrl+W on pinned/App Tabs? Thanks.
Ray

OS'es: 4 computers with Win10 Pro 64-bit; Current Firefox, Beta, Nightly, Chrome, Vivaldi
Thomas_BA
Posts: 36
Joined: March 24th, 2009, 5:40 pm
Location: Buenos Aires - München
Contact:

Re: keyconfig 20110522

Post by Thomas_BA »

@dorando
Thanks genius. Works perfect.
bolobb
Posts: 94
Joined: April 25th, 2010, 1:44 pm

Re: keyconfig 20110522

Post by bolobb »

The NoScript addon has the shortcut ctrlshiftS. Why keyconfig doesn't "find" it?
nightson
Posts: 32
Joined: April 21st, 2011, 7:51 am

Re: keyconfig 20110522

Post by nightson »

dorando wrote:[Try

Code: Select all

if(document.getElementById("sidebar-title").value == "Downloads")
 toggleSidebar('viewWebPanelsSidebar', false);
else
 openWebPanel("Downloads","chrome://mozapps/content/downloads/downloads.xul"); 
(suboptimal since it expects to be opened as a window, but it seems to work good enough)


Thanks! Your code works perfectly :wink:

Since I want to use this code to load different URLs in sidebar, and different pages look best with different widths, is there a way to specify the width of the sidebar ?
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 »

keyconfig "officially" supports up to Toolkit 2.0.1 i.e. Firefox 4.0.1, SeaMonkey 2.1 (IIUC), etc.

How well does it work with "more recent" platforms? I see some posters in this thread with "Firefox/7.0a1" (i.e. "Nightly") UA strings; myself, I use SeaMonkey 2.4a1 which is the current trunk nightly of that app, but because of the temperamental behaviour of the new extensions manager I've come to mistrust extensions which do not explicitly support at least Aurora builds.
Best regards,
Tony
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20110522

Post by dorando »

WildcatRay wrote:A recent change in Firefox disables the use of Ctrl+W to close a pinned/App Tab. Is there a way to re-enable Ctrl+W on pinned/App Tabs?
Disable "Close Tab" (key_close) and Add a new key containing

Code: Select all

BrowserCloseTabOrWindow() 
(it is the same code but tabbrowser.xml sets the disabled attribute on key_close while a pinned tab is selected).

bolobb wrote:The NoScript addon has the shortcut ctrlshiftS. Why keyconfig doesn't "find" it?
NoScript uses an event listener ( search for keys in chrome://noscript/content/noscriptOverlay.js ) and those can't be detected/handled in a generic way. If you want to modify it, check the NoScript faq.

nightson wrote:Since I want to use this code to load different URLs in sidebar, and different pages look best with different widths, is there a way to specify the width of the sidebar ?
Try

Code: Select all

if(document.getElementById("sidebar-title").value == "TITLE")
 
toggleSidebar('viewWebPanelsSidebar'false);
else {
 
openWebPanel("TITLE","URL");
 
document.getElementById("sidebar-box").width 300;

tonymec wrote:How well does it work with "more recent" platforms?
I won't claim support but everything seems to work fine currently.
Support mozilla.dorando.at through donations/contributions.
sridhar
Posts: 184
Joined: June 18th, 2004, 2:54 pm
Contact:

Re: keyconfig 20110522

Post by sridhar »

I used to use Functions for keyconfig add-on for setting up a key to copy current page URL to clipboard. But am not able to find a working version of this add-on for the current latest Firefox.

Can you please provide code to copy current webpage's URL to clipboard?

TIA.
dorando
Posts: 1203
Joined: January 9th, 2004, 9:57 am
Contact:

Re: keyconfig 20110522

Post by dorando »

sridhar wrote:Can you please provide code to copy current webpage's URL to clipboard?
Try

Code: Select all

var ClipboardHelper Components.classes["@mozilla.org/widget/clipboardhelper;1"]
.
getService(Components.interfaces.nsIClipboardHelper);

ClipboardHelper.copyString(content.location); 
Support mozilla.dorando.at through donations/contributions.
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 »

dorando wrote:
tonymec wrote:How well does it work with "more recent" platforms?
I won't claim support but everything seems to work fine currently.

:( Well, I shall have to wait some more: when I enable keyconfig, the URL bar of every tab says "about:addons" regardless of what is actually displayed in the tab.

I get exactly the same problem with the QuickFolders extension. With either extension enabled I get the problem, disabling them both makes it disappear. ](*,)
Best regards,
Tony
User avatar
WildcatRay
Posts: 7486
Joined: October 18th, 2007, 7:03 pm
Location: Columbus, OH

Re: keyconfig 20110522

Post by WildcatRay »

dorando wrote:
WildcatRay wrote:A recent change in Firefox disables the use of Ctrl+W to close a pinned/App Tab. Is there a way to re-enable Ctrl+W on pinned/App Tabs?
Disable "Close Tab" (key_close) and Add a new key containing

Code: Select all

BrowserCloseTabOrWindow() 
(it is the same code but tabbrowser.xml sets the disabled attribute on key_close while a pinned tab is selected).

Thank you, dorando. (That is much better than the devs doing my thinking for me.)
Ray

OS'es: 4 computers with Win10 Pro 64-bit; Current Firefox, Beta, Nightly, Chrome, Vivaldi
Post Reply