为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How do I restore my cursor to show pixel image size when I move over google search result images? It no longer shows the image resolution.

more options

I am trying to find high resolution images for my music album art. Previously on google searches I could move the cursor over the image and the resolution would show. Now it no longer does this so I am stuck clicking on image after image to find the high resolution ones. Firstly, is this a mozilla cursor function problem or google search problem? If its mozilla, what turned it off from showing the pixel resolution e.g. 600x600 as I moved over the image and how do I turn it back on? Thanks for any advice that you can give.

I am trying to find high resolution images for my music album art. Previously on google searches I could move the cursor over the image and the resolution would show. Now it no longer does this so I am stuck clicking on image after image to find the high resolution ones. Firstly, is this a mozilla cursor function problem or google search problem? If its mozilla, what turned it off from showing the pixel resolution e.g. 600x600 as I moved over the image and how do I turn it back on? Thanks for any advice that you can give.

所有回复 (4)

more options

The Google website doesn't seem to show this data, but I still see it present if I check the page source.

You can try this bookmarklet to see if that works.


javascript:(function(){var e=document.body.querySelectorAll('.isv-r[data-ow][data-oh]');for(i=0;E=e[i];i++){E.title=E.dataset['ow']+'x'+E.dataset['oh']}})()

You can create a new bookmark and paste the JavaScript code in its Location field. You would have to run this bookmarklet each time the page changes, so possibly use this code in a script extension like Greasemonkey or Tampermonkey.

more options

I have just found the answer. This is a google issue not a mozilla one - its their change. Still a pita to find the high resolution ones now they removed it and Im not a coder so I have no idea how to script the above. Guess I just have to click on a lot of images and waste a lot of time thanks to Google. https://searchengineland.com/google-images-to-replace-dimensions-overlay-on-image-thumbnails-329657

由cbfrideruk于修改

more options

Google Image results currently seem to have CSP preventing user scripts from being injected successfully. Perhaps userContent.css or Stylus could come to the rescue?

This style rule uses the "generated content" technique to overlay information from a tag in the page "before" the contents of that element, using positioning to place it in front of those contents:

@-moz-document url-prefix(https://www.google.com/){
  /*** Google Image Dimensions - Show on Hover ***/
  div.isv-r:hover::before {
    content: attr(data-ow) " x " attr(data-oh);
    font-size: 11px;
    color: #f4f4f4 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    position: absolute;
    top: 162px; right: 1px;
    z-index: 10000;
    padding: 2px 4px;
  }
}

A before-and-after screenshot is attached for reference:

<center></center>

Note that the number of pixels for the "top" of the generated content (162 pixels down from the top of the rectangular box around the image thumbnail and text) is what was needed on my Firefox to put the information in the lower right corner of the image, and this could vary.

To set that up in Stylus

First you would need to install the Stylus extension:

https://addons.mozilla.org/firefox/addon/styl-us/

After installation, click its "S" toolbar button, then the Manage button to open its main page.

Then click the "Write new style" button.

Stylus will highlight the name field, and you can name it whatever is helpful, such as Google Images Dimensions.

On the right side, click in the code box and paste the above code. Stylus will pop up an overlay titled "Paste the Mozilla-format code". Click the "Overwrite Style" button to insert it into the code box.

Click the Save button below the style name and test your Google Images results page. You might need to reload (Ctrl+r) that page.

Success?

more options

Okay, I uploaded the custom style so it's easier to install.

Step 1: Install Stylus

https://addons.mozilla.org/firefox/addon/styl-us/

Step 2: Install user style

https://userstyles.org/styles/180867/google-images-width-x-height-dimensions