GFYCAT | Show all Download Links (GIF, MP4, WEBP, WEBM)

Adds direct links to all image (.gif, .webp) and video (.mp4, .webm) formats and sizes on Gfycat.

< Σχολιασμός για τον κώδικα GFYCAT | Show all Download Links (GIF, MP4, WEBP, WEBM)

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 17/10/2020
Επεξεργάστηκε: 17/10/2020

Doesn't work on Redgifs anymore, but still works fine on Gfycat. It seems that regdifs have changed the canonical URL recently: now it doesn't only include the usual randomly generated name, it also includes the tags separated by dashes. So gifId should be split from the first dash.

I think simply changing this line:

    const gifId = canonicalHref.split(/[\\/]/).pop()

to this

    const gifId = canonicalHref.split(/[\\/]/).pop().split("-")[0]

Should be enough to make it work. It works just fine when there is no tag too. Nice script thanks for sharing.

§
Δημοσιεύτηκε: 03/02/2021

This topic is now irrelevant since the necessary changes have been merged.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.