aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-11-14 17:58:34 +0000
committerr <r@freesoftwareextremist.com>2020-11-14 17:58:34 +0000
commit37b1c750454a780ef31a26d19005e5c94a39ae9b (patch)
tree77a7360b93baeda69c1c31fffa7162e733063f14
parentc3d90539e9a7addd3c41f44b864b14bde60958dc (diff)
downloadbloat-37b1c750454a780ef31a26d19005e5c94a39ae9b.tar.gz
bloat-37b1c750454a780ef31a26d19005e5c94a39ae9b.zip
Fix link targets
-rw-r--r--static/fluoride.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/static/fluoride.js b/static/fluoride.js
index c1eb06f..36a374f 100644
--- a/static/fluoride.js
+++ b/static/fluoride.js
@@ -200,8 +200,9 @@ function handleReplyLink(a) {
function handleStatusLink(a) {
if (a.classList.contains("mention"))
- return;
- a.target = "_blank";
+ a.removeAttribute("target");
+ else
+ a.target = "_blank";
}
document.addEventListener("DOMContentLoaded", function() {
@@ -232,6 +233,11 @@ document.addEventListener("DOMContentLoaded", function() {
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