var url = content.document.location.href;
var localFile = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
var process = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
var args = ["--incognito", url];
localFile.initWithPath("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe");
process.init(localFile);
process.run(false, args, args.length);
var url = content.document.location.href;
var localFile = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
var process = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
var args = ["--incognito", url];
localFile.initWithPath("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe");
process.init(localFile);
process.run(false, args, args.length);
Hmmm... Nothing seems to be happening. I assume I need to change the chrome path to yt-dl's?
Update:
So if I use this code via custom buttons it works
var url = content.document.location.href;
var localFile = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
var process = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
var args = [url];
localFile.initWithPath("d:\\Path\\to\\YTDL\\youtube-dl.exe");
process.init(localFile);
process.run(false, args, args.length);
For whatever reason nothing happens with keyconfig. Anyway, it'll serve... Thanks a lot!
Hi. I'm running "dorando keyconfig 2016.2" on Firefox 51 on linux.
I've assigned shortcuts for switching to prev/next tabs and it works great.
But as soon as I switch to a new tab, I can't scroll the page down. I have to wait about a second. Bummer...
This does not happen when using the default firefox shortcut (ctrl+tab).
EDIT: Nevermind. Realized "syndaemon" is the culprit.
It is a daemon that momentarily disables the touchpad after any keypress.
Dorando keyconfig seems to have stopped working. At least on my computers, the code certificate was only valid until some days ago, and a new installation from addons.mozilla.org fails with the message that the add-on seems to be corrupt.
Is it perhaps possible that trlkly (or some other skilled person) updates the add-on?
1) F1 open new tab regardless if cursor is inside a text box
2) F2 close current tab regardless if the cursor is inside a text box
3) q/w back/forward only if cursor is not inside a text box
4) 1/2 go to left/right tab only if cursor is not inside a text box
5) RCTRL close current tab regardless if the cursor is inside a text box
6) Left/Right go to left/right tab only if cursor is not inside a text box
7) 00 type 0192582245 only if cursor is inside a webpage text box (and not if it is inside address bar)
but if the message is not flagged, this command will flag it, and I want to avoid it. To give an example about what I'm trying to do, here's a functional code about watched thread:
if (gFolderDisplay.selectedMessageThreadWatched) {
goDoCommand('cmd_watchThread');
}
Is there a kind of function like "gFolderDisplay.selectedMessageFlagged" allowing to create a condition to run "cmd_markAsFlagged" only if the message is flagged?
@firefoxuse
They are a bunch of code requests, without providing a single clue if you at least took some time to check older pages in this thread to find something similar. The bigger the request, the greater the patience you need to wait for someone who can take that task for you.
Regarding Dorando keyconfig, it states that it's Firefox for Android compatible but after installation there doesn't appear to be any way of accessing the settings. Is the compatibility for Android just an automatic label or is there indeed a way of using it on mobile?
Asking as I've been seeking a way to add hotkeys to the Firefox for Android browser, since I have a Blackberry physical keyboard and I'm used to the native browser hotkeys of 'T' for scroll to top, 'B' for scroll to bottom, etc. And also as the Firefox for Android toolbar lacks a back button. Would be marvelous to be able to recreate them.
mozillaZine is an independent Mozilla community and advocacy site. We're not affiliated or endorsed by the Mozilla Corporation but we love them just the same.