impress-2020/scripts
Matchu ea8715cd90 Sanitize URLs saved by archive:create:list-urls
Especially in our item thumbnails, there's a lot of messiness about what the URL protocol is. There are also some SWF assets whose "URLs" are just saved as paths.

In this change, we start processing all our outputted URLs through a `sanitizeUrl` function, which tries to massage it into an `https://images.neopets.com` URL, and warns if it cannot.

This also warns on some intentionally-different URLs, like our April Fools prank item lol

Anyway, I love functions like this, because the warnings always help me discover the data problems! I wasn't aware of the path-only SWF URLs, for example, until this script started warning about the URL parse errors!
2022-09-12 20:52:45 -07:00
..
archive/create Sanitize URLs saved by archive:create:list-urls 2022-09-12 20:52:45 -07:00
exported-user-data delete-user.js script 2021-03-10 05:19:51 -08:00
build-cached-data.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
cache-asset-manifests.js Oops, fix db pooling for scripts 2022-02-03 16:14:40 -08:00
delete-user.js delete-user.js script 2021-03-10 05:19:51 -08:00
export-users-to-auth0.js Oops, fix db pooling for scripts 2022-02-03 16:14:40 -08:00
setup-mysql-dev-constants.sql add closet_lists to dev schema too 2020-10-22 20:32:02 -07:00
setup-mysql-dev-schema.sql add closet_lists to dev schema too 2020-10-22 20:32:02 -07:00
setup-mysql.sql Add Delete button for outfits 2022-08-15 20:23:17 -07:00
validate-owls-data.js Use latest ~owls NC trade values API 2022-09-04 01:35:05 -07:00