Last active
December 10, 2018 09:03
-
-
Save Senorsen/0ee333e858036508c1f701e09b817a34 to your computer and use it in GitHub Desktop.
Delete Netease CloudComb Images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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