Author

Topic: Behavior change request for clicking links (Read 145 times)

copper member
Activity: 2940
Merit: 4101
Top Crypto Casino
member
Activity: 154
Merit: 29
February 01, 2018, 06:28:26 AM
#3
Please don't implement this! I can now choose to open a link in a new tab (which I often do with a simple middle-mouse-click), but for sites with _blank I can't choose to open the link on the same page.
The Merit+ button opens in a new tab, unlike "Report to moderator". This limits my options as I can't open it without a new tab.

i'm asking for this only for external links; for internal redirection the behavior can remain as it is
btw for phone you don't have a mouse Smiley, and that's why i am requesting this
on phone you often open links when you don't actually want to (by mistake), just by scrolling a page with your fingers

open in new tab. Is that what you wanted?

Do you think I don't know that? Smiley
It is just annoying and hard to do with one hand.

The same applies for external links: I can open it any way I want now. After your suggestion, I only get a new tab.

My suggestion is just an example. It can be implemented in many ways and internal redirecting can be handled.
There are even sites that show a messagebox if you want to go outside of the current domain and you have to agree before the redirect takes place.

Here is an example for handling internal redirects
Code:
function externalLinks() {
  for(var c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) {
    var b = c[a];
    b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank")
  }
}
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
February 01, 2018, 06:26:44 AM
#2
Please don't implement this! I can now choose to open a link in a new tab (which I often do with a simple middle-mouse-click), but for sites with _blank I can't choose to open the link on the same page.
The Merit+ button opens in a new tab, unlike "Report to moderator". This limits my options as I can't open it in the same tab.

Previously, user-generated links would often open in a new window/tab. However, kcud_dab found out that there are security issues with this, so I removed it. You'll have to middle-click links if you want them to open in a new tab.

i'm asking for this only for external links; for internal redirection the behavior can remain as it is
The same applies for external links: I can open it any way I want now. After your suggestion, I only get a new tab.

Quote
btw for phone you don't have a mouse Smiley, and that's why i am requesting this
Hold link > open in new tab. Is that what you wanted?
member
Activity: 154
Merit: 29
February 01, 2018, 06:17:35 AM
#1
I noticed that when you click on a link in forum, the new page is opened in the same tab/window, so the user is redirected outside of the forum.
Sure, you can use "open in another tab/window" from the right click menu of your browser, but this is annoying especially if you are using a phone.

Is it possible to open links in new tabs at least for the case the url of the link points to another domain?

so instead of this
Code:
use this
Code:
Jump to: