Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[$500, $250] Update GLIB Chrome Extension - Supported domains in options #33

Open
gbockus opened this issue Apr 17, 2016 · 1 comment
Open

Comments

@gbockus
Copy link

gbockus commented Apr 17, 2016

Description:

The GLIB-Chrome-Ext challenges are a set of challenges where we will be building out a chrome extension that inserts a button onto various vendor (Github, Gitlab, Jira, etc) sites in order to launch a new Topcoder challenge(s). This challenge will be extending the extension to not have hard coded domains where it will inject the button, but instead to be active on all domains and read a configuration to determine if it should inject the Topcoder button. This will enable a user to support custom sites without an update to the extension code.

Requirements:

  • Update the manifest.json content_scripts.matches property so that the extension will be active on all webpages.
  • Add a function to the content_script.js that will be used to do matching against configured domains to determine if the extension should be active and try to insert the button. If the domain is not found then the extension should do nothing. This function should use the vendor associated with the value matched to set to the vendor variable.
  • Update the options.html and options.js file to include a section where there are three Vendors: Github, Gitlab, and Jira. Under each vendor there will be a textarea where a user can enter one or more regular expressions to be used for determining if a site should be inspected for the button injection. By default each vendor will have the base URL currently being used in the extension:
            Github: "https://github.com/*",
            Gitlab: "https://gitlab.com/*",
            Jira: "https://appirio.atlassian.net/*"

On save of the options the vendor configuration should be saved in ChromeStorage. Use the other options values as an example of how the vendor specific match values should be saved. There should also be a reset option for each vendor that will set the textarea back to the original value.

  • Add tests for the code you add/update that following the current testing conventions in the extension.

Setup & Reference:

  • Use dev mode when working on the extension locally. This is configured in the options of the extension.
  • See the README for details around running the extension locally.
  • For dev mode you are able to enter any value for the project id when prompted.
  • Fork this repo and work off this branch.

Submissions:

  • Upload documentation for how to run your submission
  • A video of your working solution is required
  • Upload all your source code as a zip for review
  • Winner will be required to submit a pull request with their winning code.
@gbockus gbockus changed the title [$500, $250] Update GLIB Chrome Extension to support configured domains. [$500, $250] Update GLIB Chrome Extension - Supported domains in options Apr 17, 2016
@cwdcwd
Copy link
Contributor

cwdcwd commented May 21, 2016

Challenge created successfully
Challenge Url: https://www.topcoder-dev.com/challenge-details/30050396/?type=develop&noncache=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants