Google Căutare de imagini | Dimensiuni Afișare imagine

Afișează dimensiunea imaginii pentru fiecare miniatură pe pagina cu rezultatele căutării imagini 𝗚𝗼𝗼𝗴𝗹𝗲.

< Părere la script-ul Google Căutare de imagini | Dimensiuni Afișare imagine

Întrebare/comentariu

§
Postat în: 12-01-2021

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.*/

Postează un raspuns

Autentifică-te pentru a posta un răspuns.