UserScripts icon indicating copy to clipboard operation
UserScripts copied to clipboard

Request Picviewer CE+ support for articulo.mercadolibre.com.mx

Open safereg opened this issue 1 year ago • 5 comments

The url of site The example urls of site. Do not paste only domain without pathname.

https://articulo.mercadolibre.com.mx/MLM-2224812788

Its main idea is to change the "-F" at the end of the small image file name to "-O". I tried using a regular expression replacement rule, but couldn't achieve the desired effect.

Describe the result you'd like with the rule Find the original high-resolution image and show it, like amazon.

Custom rule you've tried { name: "amazon", url: /^https?://http2.mlstatic.com//, lazyAttr: "data-a-hires", r: /(.+)-F.webp/, s: "$1-O.webp" }

safereg avatar Jun 05 '24 11:06 safereg

    {
        "name": "mercadolibre",
        "url": "^https?://articulo\\.mercadolibre\\.com\\.mx/",
        "r": "/(.+)-F\\.webp/i",
        "s": "$1-O.webp"
    }

Here is the rule.

hoothin avatar Jun 05 '24 12:06 hoothin

Thank you for your reply. I tried it but this rule seems not to have taken effect. It did not create a view larger image button like Amazon's.

safereg avatar Jun 06 '24 05:06 safereg

Did you import the rule by clicking the rules rather than copy-pasting? And which specific image were you referring to?

hoothin avatar Jun 07 '24 00:06 hoothin

Yes, I clicked on the JSON you provided and the program automatically popped up. I clicked on the confirmation button. However, on the product details page of Mercado, you can see that the original icon does not appear, but it does on Amazon. Thank you very much for your help.

Amazon

Mercado

safereg avatar Jun 26 '24 02:06 safereg

image

Here is the test result on my end. Make sure you've updated the script to the latest version and that the rules have been successfully imported. (You can turn on the debug switch in the settings and check the console.)

hoothin avatar Jun 26 '24 05:06 hoothin