change: shorten link text in popup
This commit is contained in:
parent
145a0b279f
commit
b8eaaedf53
6
main.js
6
main.js
|
@ -772,7 +772,11 @@ function showlinkdialog(link)
|
|||
a.setAttribute("href", link);
|
||||
a.setAttribute("target", "_blank");
|
||||
div.onclick = removelinkdialog;
|
||||
a.innerText = link;
|
||||
a.innerText = "Open on " +
|
||||
link.replace("https://", "")
|
||||
.replace("http://", "")
|
||||
.replace("www.", "")
|
||||
.replace(/\/.*/, "");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue