Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Removes specified item from collections. This may not update instantly. This can be used through the chrome developer console.
- let id = 1028826; // ID of item you want to remove.
- let form = new FormData();
- form.append('assetId', id);
- form.append('addToProfile', false);
- function getToken() {
- return new Promise((resolve, reject) => {
- fetch('https://www.roblox.com/catalog/meta-data', {
- credentials: 'include'
- })
- .then((resp) => resp.json()).then(function(data) {
- resolve(data.XsrfToken);
- }).catch(function() {
- reject();
- });
- });
- };
- async function remove() {
- let token = await getToken();
- fetch('https://www.roblox.com/asset/toggle-profile', {
- credentials: 'include',
- method: 'POST',
- body: form,
- headers: {
- 'X-CSRF-TOKEN': token
- }
- });
- };
- remove();
Advertisement
Add Comment
Please, Sign In to add comment