lexluthor wrote:Keyconfig disabled when updating to Thunderbird 2.0.0.18.
Any udpate coming?
I just updated my Keyconfig to 2.0.0.18 for Thunderbird. You can download it from this directory:
http://www.Internet7.com/addons/
lexluthor wrote:Keyconfig disabled when updating to Thunderbird 2.0.0.18.
Any udpate coming?
Just to make sure (since my post might have misled you) your should main.xul looks like:sotero2 wrote:dorando i tried it with the same results
Code: Select all
<?xml version="1.0"?>
<overlay id="userxul-main.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script><![CDATA[
eval("handleLinkClick ="+handleLinkClick.toString().replace(
'if (event.metaKey) {',
'if (event.metaKey) { if(event.clientX == 0) { event.preventDefault(); return false;}'));
]]></script>
</overlay>
Code: Select all
<?xml version="1.0"?>
<overlay id="userxul-main.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script><![CDATA[
window.addEventListener("keypress", function(event){
if(event.metaKey && event.keyCode == KeyEvent.DOM_VK_RETURN) {
event.preventDefault();
event.stopPropagation();
}
}, true);
]]></script>
</overlay>
Replacing shiftKey with metaKey should do it, but that would change Command+Enter/Click to behave like Enter/Click without modifiers.sotero2 wrote:i was thinking if you could please rewrite the following code for "command enter" instead of "shift click" since this worked for doge.
<script><![CDATA[
eval("handleLinkClick ="+handleLinkClick.toString().replace(
'if (event.shiftKey) {',
'if (event.shiftKey) { loadURI(href, null, null, false); return false; '));
]]></script>
Trynettrotter wrote:if i wanna the url generation take place totally background without openning a new tab, what code should i change for keyconfig use?
Code: Select all
document.getElementById("navigator-throbber").label = " Blah";
var url = 'http://citebite.com/fetch?q='+encodeURIComponent(content.getSelection())+"&u="+encodeURIComponent(content.location)+"&qs=bookmarklet";
var request = new XMLHttpRequest();
request.open("GET", url, false);
request.send(null);
prompt("Blah", request.responseText.match(/http:\/\/pages.citebite.com\/\w*/));
document.getElementById("navigator-throbber").label = "";
Compatibility information has been updated, you likely need to click on Tools > Add-ons > Find Updates (ignore the incorrect message at the top, only the one below the extension name is correct).lexluthor wrote:Keyconfig disabled when updating to Thunderbird 2.0.0.18.
Any udpate coming?
Code: Select all
var url = 'http://citebite.com/fetch?q='+encodeURIComponent(content.getSelection())+"&u="+encodeURIComponent(content.location)+"&qs=bookmarklet";
var request = new XMLHttpRequest();
request.open("GET", url, false);
request.send(null);
Code: Select all
document.getElementById("navigator-throbber").label = " Blah";
var url = 'http://citebite.com/fetch?q='+encodeURIComponent(content.getSelection())+"&u="+encodeURIComponent(content.location)+"&qs=bookmarklet";
var request = new XMLHttpRequest();
request.open("GET", url, false);
request.send(null);
var citebiteURL = request.responseText.match(/http:\/\/pages.citebite.com\/\w*/);
Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper).copyString(citebiteURL);
var notifier = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService);
notifier.showAlertNotification(null, "keyconfig", "Citebite URL copied into clipboard");
document.getElementById("navigator-throbber").label = "";
You should be able to delete the bookmarklet , the &qs=bookmarklet is part of the URL.nettrotter wrote:From what I roughly judge from your code, now I can't delect that citebite bookmarklet, can I?
Anything in the Tools > Error Console (set javascript.options.showInConsole to true in about:config)?nettrotter wrote:not bad.
But now a message board will stick to my left up corner of screen. Can't get rid of it!
What's wrong?
http://img399.imageshack.us/img399/5897/mycatchou9.jpg
Code: Select all
var enumerator =
Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getZOrderDOMWindowEnumerator("alert:alert",true);
while(enumerator.hasMoreElements()) {
var alert = enumerator.getNext();
alert.close();
}
dorando wrote:nettrotter wrote:You should be able to close it with following code (Firefox might be unable to completely close while it is open):Code: Select all
var enumerator =
Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getZOrderDOMWindowEnumerator("alert:alert",true);
while(enumerator.hasMoreElements()) {
var alert = enumerator.getNext();
alert.close();
}
As a new key until the cause has been found. You can also addnettrotter wrote:dorando wrote:nettrotter wrote:You should be able to close it with following code (Firefox might be unable to completely close while it is open):Code: Select all
var enumerator =
Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getZOrderDOMWindowEnumerator("alert:alert",true);
while(enumerator.hasMoreElements()) {
var alert = enumerator.getNext();
alert.close();
}
Where shoud I put this section of code?
Code: Select all
window.setTimeout(function(){
var enumerator =
Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getZOrderDOMWindowEnumerator("alert:alert",true);
while(enumerator.hasMoreElements()) {
var alert = enumerator.getNext();
alert.close();
}
},2000);
dorando wrote:TryFireLove wrote:2) "List all tabs" listAllTabs.label - widget to list all tabs in current windowor (if you want to hide the button)Code: Select all
gBrowser.mTabContainer.mAllTabsButton.open = true;
Code: Select all
if(!keyconfig.alltabsPopup) {
keyconfig.alltabsPopup = gBrowser.mTabContainer.mAllTabsButton.parentNode.parentNode.appendChild(document.createElement("popup"));
keyconfig.alltabsPopup.className = "tabs-alltabs-popup";
}
keyconfig.alltabsPopup.showPopup(gBrowser, -1, -1, "popup", null, null);
Code: Select all
gBrowser.mTabContainer.mAllTabsPopup.showPopup();
Code: Select all
if(!keyconfig.alltabsPopup) {
keyconfig.alltabsPopup =
gBrowser.mTabContainer.mAllTabsBoxAnimate.parentNode.parentNode.appendChild(document.createElement("popup"));
keyconfig.alltabsPopup.className = "tabs-alltabs-popup";
}
keyconfig.alltabsPopup.showPopup(gBrowser, -1, -1, "popup", null, null);
Next Tabstevvie wrote:Nice addon, the only thing I found is that when using these bound to the F2/F3 (yes I changed the find next ) I now find that it seems to STOP at the begining/End of the tab list, where CTRL+Tab/Shift+CTRL+Tab jumps from the end-begining/begining-end.
Next Tab
gBrowser.mTabContainer.advanceSelectedTab(1);
Previous Tab
gBrowser.mTabContainer.advanceSelectedTab(-1);
Code: Select all
gBrowser.mTabContainer.advanceSelectedTab(1,true);
Code: Select all
gBrowser.mTabContainer.advanceSelectedTab(-1,true);
Trystevvie wrote:Also is there any command for adding Goto First tab, I want to bind F1 (maybe F4 as F1 is help) to CTRL+1 which is goto first tab. Thanks
Code: Select all
BrowserNumberTabSelection(event, 0);
TryDeadman36g wrote:Is it possible to use use keyconfig to launch Cool Iris https://addons.mozilla.org/en-US/firefox/addon/5579 . I would like to get rid of the toolbar icon. Could someone share the code with me?
Code: Select all
launchCooliris()