Talk:Keyconfig extension: FirefoxFrom MozillaZine Knowledge BaseI'd propose a simpler layout for these lists:
div.predefs dl dd {
/* import the styles for pre */
font-family: monospace;
border: 1px dashed #2f6fab;
color: black; padding: 1em;
background-color: #f9f9f9;
line-height: 1.5em;
}
and then in the content: <div class="predefs"> <!-- wrapper around the entire list --> ;Close current Tab :var tab = gBrowser.mCurrentTab; :gBrowser.removeTab(tab); ;Do something else :var tab = gBrowser.mCurrentTab; :gBrowser.removeTab(tab); </div> Gwicke 01:34, 14 Jun 2005 (PDT) I agree. I don't plan to change the stylesheet, but I'll reformat the information along the lines that you suggest...unless someone can come up with a reason not to... [edit] how is this stuff used?Some hint would be really helpful.. [edit] Paste and open in new tabI think this special section of the wiki is just to geeky to use so here's my tip to add a shortcut to open anything on the clipboard on a new tab Using Keyconfig I set a shortcut for Paste and open in new tab. This has proven very useful on some forums and sites that post URLs as plain text, I just copy then hit my shortcut and it 's open on a new tab Here are the steps requiered: 1. clic tools/keyconfig/add a new key/ 2. give it a name 3. make it global 4. then add this code: var paste = readFromClipboard();if(!paste) return;gBrowser.selectedTab = gBrowser.addTab(paste) 5. ok 6. assign a key 7. apply 8 .restart firefox enjoy ;) Jmontano 21:44, 11 April 2007 (UTC)
--Robertmarley 18:23, 7 July 2008 (UTC) |
|