How to create a Google Chrome extension from a greasemonkey/user script

1. Create a folder for your extension
 
2. Place the greasmonkey/user script javascript file in this folder
 
3. Create a 128px * 128px icon for your extension and place in this folder
 
4. Create a file calle 'manifest.json' in this folder
 
example is below - replace the pinboard.in content with your details
 
{
  "name": "Pinboard.in clean up",
  "version": "0.1",
  "description": "Clean up the UI of pinboard.in",
  "icons": { "128": "pinboard128.png" },
  "content_scripts": [
    {
      "matches": ["http://www.pinboard.in/*","http://pinboard.in/*"],
      "js": ["pinboardin_clean_up.user.js"]
    }
  ]
}
 
note:
- replace 'pinboardin_clean_up.user.js' with your js file and matches with which pages you want your script to work on
- refer the chrome extensions developers wiki for more details on manifest.json
 
5. Zip up this folder
 
6. Go to the Chrome extensions page: https://chrome.google.com/extensions/ , sign in and click the 'Publish your extension' link on the botton left
 
7. Google will ask you to upload a zip file, just upload the file created in step 5, follow the steps and your extension will be publish on the Chrome extensions page