Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am answering my own question:</p> <p><img src="https://i.stack.imgur.com/z53VH.gif" alt="enter image description here"> The <code>CTRL-SHIFT-F11</code> binding will silently stop working if both <a href="https://github.com/mooz/keysnail/wiki%20keysnail" rel="nofollow noreferrer">keysnail</a> and <a href="http://kb.mozillazine.org/Keyconfig_extension" rel="nofollow noreferrer">keyconfig</a> are installed into the same Firefox browser. The fix for me was to simply uninstall <a href="https://github.com/mooz/keysnail/wiki%20keysnail" rel="nofollow noreferrer">keysnail</a> as I don't use it.</p> <p>I did not actually need to write my own Firefox extension, but I did need to scrape out a bit of code that copies the richtext link from the <a href="http://www.borngeek.com/firefox/colt/" rel="nofollow noreferrer">Copy Link Text (CoLT)</a> extension and apply it directly as a binding into the <a href="http://kb.mozillazine.org/Keyconfig_extension" rel="nofollow noreferrer">keyconfig</a> extension as follows:</p> <ol> <li>Install the <a href="http://kb.mozillazine.org/Keyconfig_extension" rel="nofollow noreferrer">keyconfig</a> extension.</li> <li>Restart Firefox.</li> <li>After Firefox loads up, type <code>CTRL-SHIFT-F12</code> to bring up the <a href="http://kb.mozillazine.org/Keyconfig_extension" rel="nofollow noreferrer">keyconfig</a> configuration menu.</li> <li>On the bottom of the page, click on the <strong>Add a new key</strong> button.</li> <li>In the <strong>Name</strong> field, type in some suitable name such as <code>Copy Rich Text Link to Current Page</code>.</li> <li><p>Type in the following chunk of Javascript code (This code I carved out of the <code>objCoLT.CopyBoth</code> function inside the <code>content/colt.js</code> file inside the <a href="http://www.borngeek.com/firefox/colt/" rel="nofollow noreferrer">Copy Link Text (CoLT)</a> extension):</p> <pre><code>var url = content.document.location.href; var text = content.document.title; // Use the users selection instead of the title if text is selected: var selection = document.commandDispatcher.focusedWindow.getSelection().toString(); if (selection != "") { text = selection; } var richText = "&lt;a href=\"" + url + "\"&gt;" + text + "&lt;/a&gt;"; var xfer = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable); xfer.addDataFlavor("text/html"); var htmlString = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); htmlString.data = richText; xfer.setTransferData("text/html", htmlString, richText.length * 2); var clipboard = Components.classes["@mozilla.org/widget/clipboard;1"].getService(Components.interfaces.nsIClipboard); clipboard.setData(xfer, null, Components.interfaces.nsIClipboard.kGlobalClipboard); </code></pre></li> <li><p>Click Ok.</p></li> <li>Back in the main Keyconfig dialog, <code>&lt;disabled&gt;</code> should be shown in the text field to the left of the <strong>Apply</strong> button.</li> <li>Click in that text field, and type the keybinding you want to associate with it, such as <code>CTRL-SHIFT-F11</code>.</li> <li>Click the <strong>Apply</strong> button.</li> <li>Click the <strong>Close</strong> button to close the Keyconfig configuration dialog box.</li> </ol> <p>To test this out, proceed as follows:</p> <ol> <li>In Firefox, navigate to some arbitrary page.</li> <li>Type in <code>CTRL-SHIFT-F11</code> (or whatever keybinding you chose above).</li> <li>Notice that no dialog boxes popup; that is intentional.</li> <li>Open up Google Documents, and Create a new document.</li> <li>Click in the new document, and type <code>CTRL-V</code>.</li> <li>You should see the HTML/rich-text form of the link pasted in.</li> <li>Click on the link and then click on the URL to the left of <code>Change</code>. </li> <li>The browser should open up the original page corresponding to that URL. </li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload