This script allows you to clear the browser cache using JavaScript.
javascript:(function(){
'caches' in window && caches.keys().then(cacheNames => cacheNames.forEach(cacheName => caches.delete(cacheName)));
localStorage.clear();
sessionStorage.clear();
indexedDB.databases().then(databases => databases.forEach(db => indexedDB.deleteDatabase(db.name))).catch(error => console.error('Failed to clear IndexedDB:', error));