Last active
August 29, 2015 14:01
-
-
Save zmwangx/20486e38be956ee67a5a to your computer and use it in GitHub Desktop.
Chrome extension to erase completed items in the download history from the beginning of time, thus eliminating the downloads icon next to the address bar.
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
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
chrome.commands.onCommand.addListener(function(command) { | |
if (command == "erase_completed_downloads") { | |
eraseCompletedDownloads(); | |
} | |
}); | |
function eraseCompletedDownloads() { | |
chrome.downloads.erase({state: "complete"}); | |
} |
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
{ | |
"manifest_version": 2, | |
"name": "Erase Completed Downloads", | |
"version": "0.1", | |
"description": "Erase completed items in the download history from the beginning of time, thus eliminating the downloads icon next to the address bar.", | |
"background": { | |
"scripts": ["background.js"], | |
"persistent": false | |
}, | |
"commands": { | |
"erase_completed_downloads": { | |
"suggested_key": { "default": "Ctrl+C" }, | |
"description": "Erase completed downloads" | |
} | |
}, | |
"permissions": [ | |
"downloads" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment