Code Monkey home page Code Monkey logo

Comments (4)

morat523035 avatar morat523035 commented on September 26, 2024 1

Remember to remove the newline characters in custom commands so the input is a valid JSON string.

Troubleshooting
http://forums.mozillazine.org/viewtopic.php?p=14872763#p14872763

Online Multiline to Single Line Converter
http://tools.knowledgewalls.com/online-multiline-to-single-line-converter

from tbkeys.

morat523035 avatar morat523035 commented on September 26, 2024

Are you asking for a code snippet to open the config manager?

Try this:

(function () {
  var win = window.Services.wm.getMostRecentWindow('mail:3pane');
  var tabmail = win.document.getElementById('tabmail');
  for (var tabInfo of tabmail.tabInfo) {
    var tab = tabmail.getTabForBrowser(tabInfo.browser);
    if (tab && tab.urlbar && tab.urlbar.value == 'about:config') {
      tabmail.switchToTab(tabInfo);
      return;
    }
  }
  tabmail.openTab('contentTab', {url: 'about:config'});
})();

You cannot run arbitrary javascript with tbkeys-lite.

There is a tbkeys.xpi link on the GitHub releases page.

Reference
http://searchfox.org/comm-esr115/search?q=showConfigEdit

You can use the config button as an alternative.

Config Button
http://addons.thunderbird.net/thunderbird/addon/987784

from tbkeys.

pntc avatar pntc commented on September 26, 2024

I'm new to tbkeys so I didn't new I was asking for this but apparently I did ;-) Thank you.

So I 've installed non-lite version, entered settings and in "Main key bindings" I've entered this content:

{
    "j": "(function () {
  var win = window.Services.wm.getMostRecentWindow('mail:3pane');
  var tabmail = win.document.getElementById('tabmail');
  for (var tabInfo of tabmail.tabInfo) {
    var tab = tabmail.getTabForBrowser(tabInfo.browser);
    if (tab && tab.urlbar && tab.urlbar.value == 'about:config') {
      tabmail.switchToTab(tabInfo);
      return;
    }
  }
  tabmail.openTab('contentTab', {url: 'about:config'});
})();"
}

but it highlights itself wit red color red and I cannot save it.
What am I missing?

from tbkeys.

pntc avatar pntc commented on September 26, 2024

@morat523035 thank you a lot!
Oneliner solve problem. Also accessing cofing editor helps a lot! Thanks again! 🌞

from tbkeys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.