keyconfig 20110522
-
- Posts: 12
- Joined: November 7th, 2016, 3:10 am
Re: keyconfig 20110522
@morat
Sorry, its 'multiple tab handler' functionality. I`m using it since 2008, and thought its default lol.
http://i.imgur.com/NJAC3A1.png
Sorry, its 'multiple tab handler' functionality. I`m using it since 2008, and thought its default lol.
http://i.imgur.com/NJAC3A1.png
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@Bananasik
The extension is rather complicated so I'm not sure if the code is correct.
view-source:chrome://multipletab/content/multipletab.js
Multiple Tab Handler
http://addons.mozilla.org/firefox/addon/4838
The extension is rather complicated so I'm not sure if the code is correct.
Code: Select all
var tab = gBrowser.selectedTab;
MultipleTabService.setSelection(tab, true);
MultipleTabService.lastManuallySelectedTab = tab;
MultipleTabService.selectionChanging = true;
Multiple Tab Handler
http://addons.mozilla.org/firefox/addon/4838
-
- Posts: 12
- Joined: November 7th, 2016, 3:10 am
Re: keyconfig 20110522
@morat
THANK YOU!
is working properly
THANK YOU!
Code: Select all
var tab = gBrowser.selectedTab;
MultipleTabService.setSelection(tab, true);
-
- Posts: 12
- Joined: November 7th, 2016, 3:10 am
Re: keyconfig 20110522
And another request. A little harder this time.
Refresh timer for 2chan.net
I use macro for menu item selection <Apps><Up><Enter>
http://i.imgur.com/sLu3bEl.gif
But it does not always work correctly.
Extension http://nenaiko.sakura.ne.jp/nenaiko/
Address example is http://may.2chan.net/id/res/277036.htm
I think necessary code is in the beginning of content/contextmenu.js
Refresh timer for 2chan.net
I use macro for menu item selection <Apps><Up><Enter>
http://i.imgur.com/sLu3bEl.gif
But it does not always work correctly.
Extension http://nenaiko.sakura.ne.jp/nenaiko/
Address example is http://may.2chan.net/id/res/277036.htm
I think necessary code is in the beginning of content/contextmenu.js
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@Bananasik
Try this:
view-source:chrome://nenaiko/content/overlay.xul
view-source:chrome://nenaiko/content/contextmenu.js
You can use a menu item label to run a command.
You can use the following code to easily extract commands.
The trick does not work for all user interface elements.
Try this:
Code: Select all
nenaiko.threadmarking();
view-source:chrome://nenaiko/content/contextmenu.js
You can use a menu item label to run a command.
Code: Select all
document.getElementsByAttribute("label", "スレをマーキング")[0].doCommand();
Code: Select all
function getCommand(event) {
window.removeEventListener("command", getCommand, true);
event.preventDefault();
event.stopPropagation();
alert(event.originalTarget.getAttribute("oncommand") ||
event.originalTarget.getAttribute("onclick"));
}
window.addEventListener("command", getCommand, true);
-
- Posts: 12
- Joined: November 7th, 2016, 3:10 am
Re: keyconfig 20110522
@morat
You are definitely a lifesaver.
Especially for "code to easily extract commands"
I done everything i want.
And the last question.
Can keyconfig read the state of the command?
Something like this
Really want to select and unselect tabs with one button.
You are definitely a lifesaver.
Especially for "code to easily extract commands"
I done everything i want.
And the last question.
Can keyconfig read the state of the command?
Something like this
Code: Select all
var tab = gBrowser.selectedTab;
MultipleTabService.setSelection(tab, true);
if already selected then do
var tab = gBrowser.selectedTab;
MultipleTabService.setSelection(tab, false);
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@Bananasik
Try these:
view-source:chrome://multipletab/content/multipletab.js
Try these:
Code: Select all
var tab = gBrowser.selectedTab;
if (MultipleTabService.isSelected(tab)) {
MultipleTabService.setSelection(tab, false);
} else {
MultipleTabService.setSelection(tab, true);
}
Code: Select all
var tab = gBrowser.selectedTab;
var mouseEvent = document.createEvent("MouseEvents");
mouseEvent.initMouseEvent(
"mousedown" /* type */,
true /* bubbles */,
true /* cancelable */,
window /* view */,
1 /* detail */,
0 /* screenX */,
0 /* screenY */,
0 /* clientX */,
0 /* clientY */,
true /* ctrlKey */,
false /* altKey */,
false /* shiftKey */,
false /* metaKey */,
0 /* button */,
null /* relatedTarget */
);
tab.dispatchEvent(mouseEvent);
-
- Posts: 184
- Joined: June 18th, 2004, 2:54 pm
- Contact:
Re: keyconfig 20110522
Does anyone know if it's possible to use Keyconfig in regular edition of Firefox?
This screenshot shows the problem: http://d.pr/i/ldX1
https://support.mozilla.org/en-US/kb/ad ... nced-users states that I need to use Firefox ESR version 45 or Developer Edition or Nightly versions.
This screenshot shows the problem: http://d.pr/i/ldX1
https://support.mozilla.org/en-US/kb/ad ... nced-users states that I need to use Firefox ESR version 45 or Developer Edition or Nightly versions.
- WildcatRay
- Posts: 7486
- Joined: October 18th, 2007, 7:03 pm
- Location: Columbus, OH
Re: keyconfig 20110522
Dorando keyconfig is signed and works with Firefox.sridhar wrote:Does anyone know if it's possible to use Keyconfig in regular edition of Firefox?
This screenshot shows the problem: http://d.pr/i/ldX1
https://support.mozilla.org/en-US/kb/ad ... nced-users states that I need to use Firefox ESR version 45 or Developer Edition or Nightly versions.
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: 184
- Joined: June 18th, 2004, 2:54 pm
- Contact:
Re: keyconfig 20110522
Thanks WildcatRay. That worked.
-
- Posts: 68
- Joined: November 8th, 2013, 8:59 pm
Re: keyconfig 20110522
Quoting this as I too would like to know which command could be used to mute both the current tab, and separately all tabs. Very useful feature.mz user wrote:Also, could anyone make a script to mute the current tab/all visible tabs ?
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: keyconfig 20110522
@Springtime
@mz user
Try these:
Post by mz user: http://forums.mozillazine.org/viewtopic ... #p14520953
@mz user
Try these:
Code: Select all
// mute current tab
var tab = gBrowser.selectedTab;
if (tab.hasAttribute("muted") == false) {
tab.toggleMuteAudio();
}
Code: Select all
// mute all tabs
for (var i = 0; i < gBrowser.tabContainer.childNodes.length; i++) {
var tab = gBrowser.tabContainer.childNodes[i];
if (tab.hasAttribute("muted") == false) {
tab.toggleMuteAudio();
}
}
-
- Posts: 68
- Joined: November 8th, 2013, 8:59 pm
Re: keyconfig 20110522
Thank you! Added an else if for my own use so it toggles on/off and it works nicelymorat wrote:@Springtime
@mz user
Try these:
-
- Posts: 203
- Joined: July 10th, 2004, 7:46 pm
- Location: UK
Re: keyconfig 20110522
I've created hotkey that opens a website in a new tab and then makes that tab pinned.
What code do I need to add in order to make the hotkey focus the existing tab (if it already exists) instead of opening another new identical tab when there's one already open?
Thanks!
Code: Select all
gBrowser.selectedTab = gBrowser.addTab("https://somewebsite.org/");
gBrowser.pinTab(gBrowser.mCurrentTab);
Thanks!
-
- Posts: 12
- Joined: April 24th, 2015, 11:23 pm
Re: keyconfig 20110522
Hi,
when I am outside my VPN, I need to have my ThunderBird stop trying to reach the LDAP server. In order to do that, I need to do the following:
Tools -> Options -> Composition -> Addressing -> Directory Server
Change the selection from "Global" to "None"
What would be the code to do this (and also the opposite change, from None to Global) with a keybinding?
Thanks!
when I am outside my VPN, I need to have my ThunderBird stop trying to reach the LDAP server. In order to do that, I need to do the following:
Tools -> Options -> Composition -> Addressing -> Directory Server
Change the selection from "Global" to "None"
What would be the code to do this (and also the opposite change, from None to Global) with a keybinding?
Thanks!