I'm trying to use the webrequest api and I'm having trouble using it to block a website.
manifest.json
{
  "manifest_version": 2,
  "name": "blocktwitter",
  "description": "block twitter",
  "version": "1.0",
  "permissions": [
  "https://ajax.googleapis.com/",
  "activeTab",
  "storage",
  "webRequest",
  "webRequestBlocking"
  ],
"background": {
"scripts": ["background.js"],
"persistent": true
  }
}
background.js:
chrome.webRequest.onBeforeRequest.addListener(
    function(details) { return {cancel: true}; },
    {urls: ["https://twitter.com"]},
    ["blocking"]);
I copied the copy + pasted the url from twitter, and copied the code from the docs, but it's still not working. I'm not sure what I'm doing wrong. Help would be appreciated.