This file contains 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
(() => { | |
// Run this in Chrome's console, while in Bitbucket's website and logged in | |
const csrftoken = document.cookie.match(/\bcsrftoken=(.*?)(?:;| |$)/)[1]; | |
const repoName = window.__initial_state__.section.repository.currentRepository.full_name; | |
const expiry = 1000 * 60 * 60; // Delete only files older than an hour | |
let page = 1; | |
function iterateNext() { | |
fetch(`https://bitbucket.org/${repoName}/admin/lfs/file-management/?iframe=true&spa=0&page=${page}`, { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.