{"id":17770367,"url":"https://github.com/gampleman/ui-previewer-button","last_synced_at":"2026-04-27T23:32:23.102Z","repository":{"id":66809109,"uuid":"43897855","full_name":"gampleman/ui-previewer-button","owner":"gampleman","description":"Add links in pull requests to successful builds based on the SHA","archived":false,"fork":false,"pushed_at":"2016-12-07T11:26:46.000Z","size":283,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-01T14:27:14.761Z","etag":null,"topics":["browser-extension","github"],"latest_commit_sha":null,"homepage":"https://rightscale.github.io/ui-previewer-button","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gampleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-08T15:19:06.000Z","updated_at":"2017-01-18T09:10:27.000Z","dependencies_parsed_at":"2023-03-21T13:07:13.674Z","dependency_job_id":null,"html_url":"https://github.com/gampleman/ui-previewer-button","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gampleman/ui-previewer-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2Fui-previewer-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2Fui-previewer-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2Fui-previewer-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2Fui-previewer-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gampleman","download_url":"https://codeload.github.com/gampleman/ui-previewer-button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2Fui-previewer-button/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32360110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-extension","github"],"created_at":"2024-10-26T21:22:39.257Z","updated_at":"2026-04-27T23:32:23.087Z","avatar_url":"https://github.com/gampleman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UI Previewer Button\n\n[![Build status](https://travis-ci.org/rightscale/ui-previewer-button.svg)](https://travis-ci.org/rightscale/ui-previewer-button)\n\n[Get it in the Chrome Web Store!][web-store]\n\nAdd links in pull requests to successful builds based on the SHA.\n\n## For example\n\nThe minimal example is this repo itself: with this extension installed, viewing a PR on\nthis repo will add an icon to show the commit in patch format.\n\nA better example is, if you [automatically build a UI on every push][scoutfile-post], you\ncan add a preview link to each commit, and to the PR as a whole, to test that UI\nimmediately. The same goes for docs builds, or anything else you can think of.\n\n## Auto-configuration\n\nIf a repo hasn't been configured, and you're viewing the README of the repo, the UI\nPreviewer Button can auto-configure itself.\n\nTo set this up, [see below](#user-content-ui-previewer-button-config) or follow these\nsteps:\n\n1. Add a header with the title 'UI Previewer Button config' (case doesn't matter).\n2. Below that, add a code block with a valid JSON configuration object. To learn more\n   about the format, visit the extension's options page, where you can also configure\n   repos manually.\n\n## Building\n\nMake sure you have npm in your path. Run `make`. This will build as much as can be\nreasonably automated for each supported platform. Unfortunately, to finish building,\ntest and deploy, you will need to do a few manual steps:\n\n#### Firefox\n\n1. You will need either a Nightly or Developer edition build.\n2. Go to about:config, type `xpinstall.signatures.required` and change the setting to be `false`.\n3. Go to about:addons and drag and drop the `build/artifacts/ui-previewer-button.xpi` to this page.\n4. Click **Install**. Now you can play with your extension. If you rebuild, you will need to repeat steps 3 and 4.\n\n#### Safari\n\n1. Make sure you can see the Develop menu in the menu bar. If you can't, you can enable it in **Preferences \u003e Advanced \u003e Show Develop menu in menu bar**.\n2. Click **Develop \u003e Show Extension Builder**.\n3. Click the litle **+** button in the bottom left and click **Add Extension...** in the pop-up menu.\n4. Select `build/artifacts/ui-previewer-button.safariextension` in the dialog.\n5. Click the **Install** button. Ignore the warnings and enter your password. Now the extension is loaded in your browser. If you rebuild, you only need to hit the **Reload** button. If you restart Safari, you will need to **Install** again.\n\n#### Chrome\n\n1. Go to chrome://extensions/.\n2. Check the **Developer mode** checkbox.\n3. Click **Load unpacked extension...**\n4. Select `build/chrome` in the navigator. You now have the extension loaded in your browser. You can hit the **Reload** button to reload it when you rebuild.\n\n## Deploying\n\nFollow the instructions for building above. Then follow the following steps for each browser:\n\n#### Firefox\n\n1. Go to https://addons.mozilla.org\n2. Register for an account.\n3. Slack @gampleman to give you access.\n4. Go to https://addons.mozilla.org/en-US/developers/addon/ui-previewer-button/versions#version-upload\n5. Go through the wizard.\n\n#### Chrome\n\n1. Ask @alikhajeh1 to submit it for you.\n\n#### Safari\n\nCurrently we don't have a certificate, so this doesn't work yet.\n\n## UI Previewer Button config\n\n```json\n{\n  \"mainButton\": {\n    \"urlPattern\": \"https://github.com/rightscale/ui-previewer-button/commit/${gitSha}.patch\",\n    \"buttonText\": \"Patch\",\n    \"icon\": \"file-text\"\n  }\n}\n```\n\n[web-store]: https://chrome.google.com/webstore/detail/ui-previewer-button/calcadjojlbjppijehnmjhpccdhknodk?hl=en\u0026gl=GB\n[scoutfile-post]: http://eng.rightscale.com/2014/11/18/front-end-deployment.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgampleman%2Fui-previewer-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgampleman%2Fui-previewer-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgampleman%2Fui-previewer-button/lists"}