mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-22 12:49:21 +02:00
Fix link targets
This commit is contained in:
parent
c3d90539e9
commit
37b1c75045
|
@ -200,7 +200,8 @@ function handleReplyLink(a) {
|
||||||
|
|
||||||
function handleStatusLink(a) {
|
function handleStatusLink(a) {
|
||||||
if (a.classList.contains("mention"))
|
if (a.classList.contains("mention"))
|
||||||
return;
|
a.removeAttribute("target");
|
||||||
|
else
|
||||||
a.target = "_blank";
|
a.target = "_blank";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,6 +233,11 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||||
handleStatusLink(links[j]);
|
handleStatusLink(links[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var links = document.querySelectorAll(".user-profile-decription a");
|
||||||
|
for (var j = 0; j < links.length; j++) {
|
||||||
|
links[j].target = "_blank";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// @license-end
|
// @license-end
|
||||||
|
|
Loading…
Reference in New Issue