Make LocalLinks work for \\ links

LocalLinks is an add-on for Chrome which lets you open local files in Chrome. There is one minor problem: it doesn't work for links which start "\\". Fortunately, there's a simple fix: add the following lines to your locallinks_estension.js file (for me, this was in C:\Users\me\AppData\Local\Google\Chrome\User Data\Default\Extensions\jllpkdkcdjndhggodimiphkghodgcpida\1.1_0\content_script\locallinks_estension.js):

$('a[href^=\\]').
    live('mousedown', handleMousedownOnLink).
    live('mouseout', handleMouseoutOnLink).
    live('mouseup', handleMouseupOnLink).
    live('click', handleClickOnLink);

No comments:

Post a Comment