Bitcoin Forum
November 11, 2024, 04:10:25 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Behavior change request for clicking links  (Read 142 times)
al1n (OP)
Member
**
Offline Offline

Activity: 154
Merit: 29


View Profile
February 01, 2018, 11: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:
<a href="http://your_url_here.html">Link</a>
use this
Code:
<a target="_blank" href="http://your_url_here.html">Link</a>
LoyceV
Legendary
*
Offline Offline

Activity: 3486
Merit: 17659


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
February 01, 2018, 11: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?

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
al1n (OP)
Member
**
Offline Offline

Activity: 154
Merit: 29


View Profile
February 01, 2018, 11:28:26 AM
Last edit: February 01, 2018, 11:43:57 AM by al1n
 #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")
  }
}
LeGaulois
Copper Member
Legendary
*
Offline Offline

Activity: 2940
Merit: 4101


Top Crypto Casino


View Profile
February 01, 2018, 11:57:36 AM
 #4

For security issues...
https://bitcointalk.org/index.php?topic=1447874.0

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!