Google Chrome extension (or Plugin or AddIn) is a useful medium to share features or tools across the tech community. I have prepared one small Chrome extension for SharePoint (2013, 2016 and Online) which tags (marks with red button) unique permission lists on SP Site’s Site Content Page. This is done using SP REST API calls. I will walk you through the major steps I followed for creating this Chrome extension (SharePoint - Tag Unique Permission Lists) and how to publish it. You may create your own extension by following these simple steps.

Step 1 - Create new Chrome Extension

There is a defined file structure to be followed while building chrome extension. The most important and must-have file is “manifest.json”.

  1. Create any folder (ex: “My First Chrome Extension”) in your local drive.

  2. Create new file named “manifest.json” in it.

  3. Open “manifest.json” empty file in notepad and paste following code in it. You may update the code based on your need. This code loads js scripts on page load, but you can design your code in such a way that certain actions can be performed on browser actions. More details,
  1. {
  2. "manifest_version": 2,
  3. "name": "SharePoint - Tag Unique Permission Lists",
  4. "short_name": "Tag SP Lists",
  5. "description": "It tags unique permissions lists with red buttons on Site Contents page. Compatible - SP 2013, 2016 and Online.",
  6. "version": "2.0",
  7. "icons": {
  8. "16": "images/icon16.png",
  9. "48": "images/icon48.png",
  10. "128": "images/icon128.png"
  11. },
  12. "content_scripts": [{
  13. "all_frames": true,
  14. "css": ["scripts/css/style.css"],
  15. "js": ["scripts/js/jquery-1.9.1.min.js", "main.js"],
  16. "matches": ["*://*/*viewlsts.aspx*"],
  17. "run_at": "document_end"
  18. }]
  19. }

Description of above used manifest.json properties:

  1. This is how root folder structure looks.

    SharePoint

Step 2 - Test the package locally

  1. Open the Google Chrome browser

  2. Click on 3 dots in the corner (settings) which show tooltip as “customize and control Google Chrome.”

  3. Navigate to More Tools >> Extensions

  4. Click on “Load unpacked extension…” button

    SharePoint
  1. Open “My First Chrome Extension” folder

  2. If there are no errors, then this extension will load without any problem. If there are errors visible, fix those issues in files and just reload extension again.

  3. If you want to run extension in Incognito mode then check this setting.

    SharePoint

Step 3 - Prepare the package to be published in Google Web Store

  1. Now once we are finished with testing the extension, just create a .zip file of the parent folder. (for ex: “My First Chrome Extension.zip”)

  2. Open Google web store for extensions

  3. Login with your gmail account

  4. Click on settings icon at the top right and select Developer Dashboard

  5. Click on Add new item and upload your zip file here

    SharePoint

  6. Follow the steps to fill in details like icons, screenshots, descriptions etc. Appropriate descriptions, icons and screenshots will correctly emphasize your extension’s purpose.

  7. The most important thing to mention here is that Google Chrome Extension is not free. You will have to pay a nominal $5 fee before publishing the Chrome extension to the store. This fee will be valid for a total of 20 extensions. So ideally for the next 19 extensions you don’t have to pay anything.

  8. Once you pay $5 and everything looks fine then just publish your extension.

  9. In one hour or so, you can see your extension in the Google web store.

  10. That’s it!