Skip to content

Instantly share code, notes, and snippets.

@Senorsen
Last active December 10, 2018 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Senorsen/0ee333e858036508c1f701e09b817a34 to your computer and use it in GitHub Desktop.
Save Senorsen/0ee333e858036508c1f701e09b817a34 to your computer and use it in GitHub Desktop.
Delete Netease CloudComb Images
const repoId = location.href.match(/repoId=(\d+)/)[1]; (await (await fetch(new Request('https://c.163yun.com/api/repos/' + repoId + '/tags', {credentials: 'same-origin'}))).json()).params.tags.filter((it, i) => i > 0).forEach(v => fetch(new Request('https://c.163yun.com/api/repos/tags/' + v.baseId, {method: 'DELETE', credentials: 'same-origin'})));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment