mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 14:22:27 +01:00
make URLs in the :bmarks output clickable
This commit is contained in:
@@ -319,7 +319,7 @@ function Bookmarks() //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
list += "<tr><td>" + title + "</td><td style=\"color: green; width: 100%\">" + url + extra + "</td></tr>";
|
list += "<tr><td>" + title + "</td><td style=\"color: green; width: 100%\"><a href=\"#\">" + url + "</a>" + extra + "</td></tr>";
|
||||||
}
|
}
|
||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|
||||||
@@ -473,7 +473,7 @@ function History() //{{{
|
|||||||
if (title.length > 50)
|
if (title.length > 50)
|
||||||
title = title.substr(0, 47) + "...";
|
title = title.substr(0, 47) + "...";
|
||||||
var url = vimperator.util.escapeHTML(items[i][0]);
|
var url = vimperator.util.escapeHTML(items[i][0]);
|
||||||
list += "<tr><td>" + title + "</td><td style=\"color: green;\">" + url + "</td></tr>";
|
list += "<tr><td>" + title + "</td><td style=\"color: green;\"><a href=\"#\">" + url + "</a></td></tr>";
|
||||||
}
|
}
|
||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|
||||||
|
|||||||
@@ -694,8 +694,18 @@ function CommandLine() //{{{
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "<LeftMouse>":
|
case "<LeftMouse>":
|
||||||
|
if (event.originalTarget.localName.toLowerCase() == "a")
|
||||||
|
{
|
||||||
|
vimperator.open(event.originalTarget.textContent);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "<A-LeftMouse>":
|
case "<A-LeftMouse>":
|
||||||
case "<C-LeftMouse>":
|
case "<C-LeftMouse>":
|
||||||
|
if (event.originalTarget.localName.toLowerCase() == "a")
|
||||||
|
{
|
||||||
|
vimperator.open(event.originalTarget.textContent, vimperator.NEW_BACKGROUND_TAB);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "<S-LeftMouse>":
|
case "<S-LeftMouse>":
|
||||||
if (/^(end|more(-help)?)-prompt$/.test(event.target.id))
|
if (/^(end|more(-help)?)-prompt$/.test(event.target.id))
|
||||||
; // fall through
|
; // fall through
|
||||||
|
|||||||
@@ -172,4 +172,9 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
padding: 0px 2px;
|
padding: 0px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#vimperator-multiline-output-content a {
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* vim: set fdm=marker sw=4 ts=4 et: */
|
/* vim: set fdm=marker sw=4 ts=4 et: */
|
||||||
|
|||||||
Reference in New Issue
Block a user