What a great extension for Chrome! A must-have for me to break through unintentional muscle-memory. Makes it harder to visit muscle-memorized URLs by deleting Chrome history data every time you close the browser. This way, I have to type in URLs manually again and again that before were always auto-suggested after a few key-strokes. Five Stars ⭐️⭐️⭐️⭐️⭐️ ## Source - https://chrome.google.com/webstore/detail/auto-history-wipe/hdgnienkeomlaeeojaibeicglpoaadnj ## Backup - Looks like the extension isn’t available anymore. Bummer - So, here’s the summary of it. It’s simple but I wouldn’t want to do it from scratch myself #### File: background.html ```html <!DOCTYPE html> <body> <script src="event.js"></script> ``` #### File: event.js ```javascript chrome.runtime.onStartup.addListener(function() { wipeData() }); chrome.windows.onRemoved.addListener(function(id) { chrome.windows.getAll(function(w) { if (w.length == 0) { wipeData() } }) }); function wipeData() { chrome.storage.sync.get({ browsing: true, download: false, cookies: false, webdata: false, cache: false, passwords: false, autofill: false, localdata: false }, function(items) { var remove = {}; if (items.browsing) { remove.history = true } if (items.download) { remove.downloads = true; chrome.permissions.contains({ permissions: ['downloads'] }, function(result) { if (result) { chrome.downloads.erase({}) } }) } if (items.cookies) { remove.cookies = true } if (items.webdata) { remove.fileSystems = true; remove.indexedDB = true; remove.localStorage = true; remove.pluginData = true; remove.serverBoundCertificates = true; remove.webSQL = true } if (items.cache) { remove.cache = true; remove.appcache = true } if (items.passwords) { remove.passwords = true } if (items.autofill) { remove.formData = true } chrome.browsingData.remove({}, remove, function() { if (items.download) { chrome.browsingData.removeDownloads({}) } }) }) } ```