Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

"open image in new tab" instead of "open link in new tab"

  • 6 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi licanmarius55

more options

So I want to open an image in new tab but that image has attached a link to it so if I click the image, it just goes to the page linked.

So I want to open an image in new tab but that image has attached a link to it so if I click the image, it just goes to the page linked.

Giải pháp được chọn

Okay, yes, there are cases where the context menu doesn't have image items on it. The most common scenario is when there is a transparent element in front of the image. Firefox doesn't pierce that element to show image items. You can work around this with an add-on (assuming you are not the type to open the Developer Tools to find the address). The "behind!" extension is great for this, and I used some of its code in my "View Image Info Reborn" extension.

Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (6)

more options

You should find "Open Image in New Tab" in the right-click context menu of that image.

more options

Also: if a page doesn't show Firefox's context menu when you right click something, try holding Shift: Shift+right-click

more options

Doesn't work, it doesn't show open image in new tab. More info: it's on 9anime.id. If I am on the home page and right-click a cover from an anime, it only show open link in new tab. Btw, it works on edge.

more options

Giải pháp được chọn

Okay, yes, there are cases where the context menu doesn't have image items on it. The most common scenario is when there is a transparent element in front of the image. Firefox doesn't pierce that element to show image items. You can work around this with an add-on (assuming you are not the type to open the Developer Tools to find the address). The "behind!" extension is great for this, and I used some of its code in my "View Image Info Reborn" extension.

more options

In some cases you could use a JavaScript bookmarklet to look for an image further down in the DOM.

javascript:/*activeElement|image*/
(function(){
var E,O,i;
function N(A){O=[];for(i=0;A[i];i++){O.push(A[i].name+': '+A[i].value)}return(O.join('\n'))}
if(E=prompt('document.activeElement: '+document.activeElement.nodeName+'\n\n'+N(document.activeElement.attributes),document.activeElement.getAttribute('href'))){
E=document.activeElement.querySelector('img');
prompt(E.nodeName+'\n'+N(E.attributes),E.getAttribute('src'))
}})()

more options

jscher2000 - Support Volunteer said

Okay, yes, there are cases where the context menu doesn't have image items on it. The most common scenario is when there is a transparent element in front of the image. Firefox doesn't pierce that element to show image items. You can work around this with an add-on (assuming you are not the type to open the Developer Tools to find the address). The "behind!" extension is great for this, and I used some of its code in my "View Image Info Reborn" extension.

Thank you, it works.