Greasy Fork is available in English.

Google Image Search | Show image dimensions

Displays the image size for each thumbnail on the search results page 𝗚𝗼𝗼𝗴𝗹𝗲 images.

< 脚本Google Image Search | Show image dimensions的反馈

提问/评论

§
发表于:2021-01-12

The regex should end on .* to allow for URLs where tbm=isch is the last parameter.
Also, the question mark starting the query string should be escaped, otherwise you're just saying "it can be either '/search' or '/searc'".
It usually still works because of the .+ immediately after, but it is terrible for readability and probably (hopefully) not what you intended.
The forward slash in the exclusive group should also be escaped.
Here you go: /https?:\/\/(www\.)?google\.[^\/]+\/search\?.+tbm=isch.*/

发表回复

登录以发表回复。