Skip to content

Instantly share code, notes, and snippets.

@gabrielfern
Created December 31, 2019 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielfern/bf21df5b56d574eebe7d53e6291e49f6 to your computer and use it in GitHub Desktop.
Save gabrielfern/bf21df5b56d574eebe7d53e6291e49f6 to your computer and use it in GitHub Desktop.
Google Chrome extension to disable download bar that automatically appears when download is started
chrome.runtime.onInstalled.addListener(() => {
chrome.downloads.setShelfEnabled(false)
})
chrome.runtime.onStartup.addListener(() => {
chrome.downloads.setShelfEnabled(false)
})
{
"name": "Disable Shelf",
"version": "1.0",
"manifest_version": 2,
"permissions": ["downloads", "downloads.shelf"],
"background": {
"scripts": ["background.js"],
"persistent": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment