I'm trying to generate an extension that keeps my brother of facebook. So I decided i'll redirect all facebook links to google for starters.

This is how i went about it.

My manifest.json file :

```
{   

  "name": "FBRehab"    
  "version": "1.0",    
  "description": "Redirect FB",    
  "permissions": [    
   "tabs", "http://www.facebook.com/*", "https://www.facebook.com/*"    
],     
  "browser_action": {    
   "default_icon": "icon.png",    
"background_page": "background.html"    
      },
  ]
}

```

My background.html :

```
<html>
<head>
<script>
  chrome.tabs.executeScript(null, { file: "jquery.js" }, function() {
   chrome.tabs.executeScript(null, { file: "try.js" });
});
</script>
</head>

```

and try.js

```
<head>
<script language="JavaScript">
var time = null
function move() {
window.location = 'www.google.com'
}
</script>
</head>

```

Yet, it does not redirect. I've tried directly injecting the try.js using content scripts too.

Please help me.

Thanking you.

Ashar :)