scripts/derpibooru: handle cdn links