this post was submitted on 10 Sep 2023
124 points (86.0% liked)

No Stupid Questions

35822 readers
992 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 1 year ago
MODERATORS
 

It is a simple line of code and the entire site does this or add target="_blank" to every hyperlink, and it will do the same thing. It sucks that you have to right-click every link to open in a new tab or window and it is such a simple fix.

top 50 comments
sorted by: hot top controversial new old
[–] krogoth@lemmy.sdf.org 58 points 1 year ago (3 children)

I prefer the current behaviour.

It's easy to open a link in a new tab without right clicking. You can middle click (Windows and Linux) or command+click (MacOS). However there's no easy way to force a browser to open a link in the current tab if the site wants to use a new tab.

[–] fuckwit_mcbumcrumble@lemmy.world 38 points 1 year ago (1 children)

What I hate is when you click on what’s supposed to be an image that you’d expect to expand, but instead it’s a link because the embed isn’t supported. Then when you hit back you lose your place because the page your on isn’t saved and you’ve lost your place trying to get back.

[–] Archpawn@lemmy.world 3 points 1 year ago

I made this user style to help fix that problem by outlining images, and also make it so when you click an image it expands over the page at full size up to the width of the screen.

Though it's not perfect. If the image is already black it's hard to tell. You could change the outline color to something less common, but that looks ugly. Changing the boundary radius would probably be the best, but it's already marked as !important so I don't think I can change it. I'm open to suggestions on improving that part.

[–] otter@lemmy.ca 4 points 1 year ago

Ctrl+click also works

[–] Archpawn@lemmy.world 1 points 1 year ago

However there’s no easy way to force a browser to open a link in the current tab if the site wants to use a new tab.

Just hit ctrl+w after clicking the link. That will close the current tab.

[–] RandomVideos@programming.dev 57 points 1 year ago (24 children)

You can use middle click to open sites in a different tab

[–] slampisko@czech-lemmy.eu 14 points 1 year ago

Or Ctrl+Click to open in a new tab in the background, or Ctrl+Shift+Click to open in a new tab and switch to it. Regardless, I agree with OP that this should be the default.

[–] cubedsteaks@lemmy.today 4 points 1 year ago

I'm aware of this and do this but its annoying when it could just open a new link away from Lemmy because so much of being on a lemmy instance for some reason involves me keeping Lemmy in one tab so I stay logged in... because if I leave... then I have to sign back in again.

load more comments (22 replies)
[–] treadful@lemmy.zip 48 points 1 year ago (2 children)

Web apps should not override the configured behavior of browsers.

[–] cley_faye@lemmy.world 2 points 1 year ago (1 children)

It does not. There is nothing on lemmy's link to force link to open in the same tab. Your browser can do whatever it wants.

Maybe your confusing the behavior that a lot of site decided to implement as default (open in new tab) with a browser setting.

[–] treadful@lemmy.zip 4 points 1 year ago (1 children)

Maybe your confusing the behavior that a lot of site decided to implement as default (open in new tab) with a browser setting.

Try reading OP's title and post body, then my reply again.

[–] cley_faye@lemmy.world 5 points 1 year ago (1 children)

Dang I was so angry at people claiming the opposite it kinda blinded me into thinking you meant it the other way around. Sorry.

[–] treadful@lemmy.zip 4 points 1 year ago

lol, no worries.

[–] MonkderZweite@feddit.ch 0 points 1 year ago

That they are allowed/capable to, is beyound me. That starts with font size and ends with viewport-width.

[–] zloubida@lemmy.world 32 points 1 year ago (1 children)

Yeah, but no: blind and visually impaired people have troubles navigating the web because of these links that are opened in a new tab/window.

It could be an option to activate, though.

[–] rambaroo@lemmy.world 8 points 1 year ago

Yeah, this is the real reason you're not supposed to open external links in a new tab. It's an accessibility issue.

[–] Kissaki@feddit.de 15 points 1 year ago

If you force tabs to open in a new tab/window, how do you open it in the same tab/window?

Ultimately, it is about user control and possibly accessibility.

Depending on your input device you can open a link in a new tab directly through

  • Middle mouse click
  • Ctrl + mouse click
  • Ctrl + Enter

The alternative or fallback is to use the context menu like you say.

Who says they should categorically and always open in new tabs though? In what contexts? On what kind of environment behavior does that depend? Does it assume a standard single open, auto focus, close, get back to the previous page? What makes a navigate back worse?

If you want a general, categorical solution for your preference, as long as Lemmy does not provide a setting for it, a simple browser addon could automatically adjust all links on a websites pages, or your browser may offer it.

[–] Bishma@discuss.tchncs.de 14 points 1 year ago (2 children)

Alexandrite opens external links in new tabs.

[–] WhipperSnapper@lemmy.ml 4 points 1 year ago

It also has a light mode now. I know that was a drawback for some folks when it was first being mentioned.

[–] mattomattic@discuss.tchncs.de 12 points 1 year ago (1 children)

I really don't mind doing right-click-new-tab. What I don't like is, when you click back it often doesn't take you back to where you were before. So, totally agree with the request as it would leave you at your place.

[–] _TK@lemmy.antemeridiem.xyz 9 points 1 year ago (1 children)

Middle click (or command-click on Mac) will also open in a new tab in basically every browser.

[–] FlyingSquid@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

Middle click works on a Mac too if you have a pointing device with one. My Logitech trackball does, but you have to push down the scroll wheel, so I never think about it.

[–] lord_ryvan@ttrpg.network 1 points 1 year ago

Most mice have a middle click, it's pushing down the scroll wheel, this works on Windows, macOS and (most) Linuxes alike.

[–] OptimusPrime@lemmy.moonling.nl 11 points 1 year ago (3 children)

If you can, contribute to the code. You can do a pull request if you want.

[–] otter@lemmy.ca 26 points 1 year ago* (last edited 1 year ago)

There might even be discussions on it which you can vote on.

Eventually it would be nice to have a toggle in the settings. Could keep the current behavior as the default and let users change it

load more comments (2 replies)
[–] can@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago)

There's browser addons in the meantime. !plugins@sh.itjust.works

[–] TheBananaKing@lemmy.world 2 points 1 year ago

I wrote a userscript for old.lemmy.world to make the header floaty and to force links into a new tab.

It's not completely perfect, but it's increased my QOL and I'd hate to go back.

It won't work on the default site, of course.

Let me know if you want it, it's short enough to just paste in a reply.

[–] DemBoSain@midwest.social 2 points 1 year ago* (last edited 1 year ago)

I have a greasemonkey script that does this on instances that support the "old" theme. I'm having trouble getting it to work on the default theme because target="_blank" seems to work intermittently. Or I could be doing something wrong, I haven't looked into it too deeply.

load more comments
view more: next ›