{"id":13475822,"url":"https://github.com/refined-bitbucket/refined-bitbucket","last_synced_at":"2025-03-27T01:30:25.323Z","repository":{"id":40743529,"uuid":"55722227","full_name":"refined-bitbucket/refined-bitbucket","owner":"refined-bitbucket","description":"[NOT MAINTAINED] Chrome and Firefox extension that improves Bitbucket's user experience","archived":false,"fork":false,"pushed_at":"2023-08-12T09:39:32.000Z","size":3675,"stargazers_count":645,"open_issues_count":66,"forks_count":109,"subscribers_count":18,"default_branch":"dev","last_synced_at":"2024-08-01T16:40:17.305Z","etag":null,"topics":["bitbucket","chrome","chrome-extension","firefox","firefox-addon","highlight","pull-requests"],"latest_commit_sha":null,"homepage":"https://chrome.google.com/webstore/detail/refined-bitbucket/afppminkfnfngihdocacbgeajbbdklkf","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/refined-bitbucket.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-07T19:30:09.000Z","updated_at":"2024-07-11T13:23:43.000Z","dependencies_parsed_at":"2024-01-12T02:45:04.240Z","dependency_job_id":"53c4ff99-d147-4659-b9da-e66e0c5c96df","html_url":"https://github.com/refined-bitbucket/refined-bitbucket","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refined-bitbucket%2Frefined-bitbucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refined-bitbucket%2Frefined-bitbucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refined-bitbucket%2Frefined-bitbucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refined-bitbucket%2Frefined-bitbucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refined-bitbucket","download_url":"https://codeload.github.com/refined-bitbucket/refined-bitbucket/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764570,"owners_count":20668444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bitbucket","chrome","chrome-extension","firefox","firefox-addon","highlight","pull-requests"],"created_at":"2024-07-31T16:01:23.867Z","updated_at":"2025-03-27T01:30:24.636Z","avatar_url":"https://github.com/refined-bitbucket.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"[![build status](https://travis-ci.org/refined-bitbucket/refined-bitbucket.svg?branch=test-it)](https://travis-ci.org/refined-bitbucket/refined-bitbucket)\n\u003csup\u003e-\u003c/sup\u003e\n[![downloads](https://img.shields.io/chrome-web-store/d/afppminkfnfngihdocacbgeajbbdklkf.svg)](https://chrome.google.com/webstore/detail/refined-bitbucket/afppminkfnfngihdocacbgeajbbdklkf?utm_source=chrome-ntp-icon)\n\u003csup\u003e-\u003c/sup\u003e\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\n![Refined BitBucket](./logo-full.svg)\n\nWe all know BitBucket lacks some features that we have in other platforms like GitHub, GitLab and others. Originally inspired on Sindre Sorhus' [Refined Github](https://github.com/sindresorhus/refined-github) extension, _refined-bitbucket_ is born as a collaborative project by a few developers to improve upon those holes, and even add some additional functionality that will enhance the overall user experience.\n\n[Subscribe to this issue if you would like to receive e-mail notifications on updates](https://github.com/refined-bitbucket/refined-bitbucket/issues/182).\n\n## Current features\n\n-   Adds syntax highlighting for pull requests and commits. See the full list of enabled languages [here][prismjs-languages], and then [here][language-ext]. [Test them here](http://prismjs.com/test.html). Missing any language? [Let me know](https://github.com/refined-bitbucket/refined-bitbucket/issues) or submit a pull request!\n-   Removes Whitespace from the FileTree Menu in the New PR UI (false by default, enable in extension options)\n-   Double click on a word to highlight all occurrences.\n-   ~~Block pull request merging without a minimum number of approvals (defaults to 2 minimum approvals).~~ Removed. [Implemented natively by Bitbucket with \"merge checks\"](https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html)\n-   Key binding feature, which allows for quicker navigation through pull requests.\n-   Button to collapse pull request descriptions.\n-   Button to collapse diffs in Pull Request and Commits view.\n-   Autocollapse:\n    -   Add filename patterns in the Options page that you would like the extension to collapse automatically when the pull request or commit loads.\n    -   Deleted files are automatically collapsed.\n-   Diff Ignore. Add filename patterns in the Options page that you would like the extension to completely remove when the pull request or commit loads.\n-   Counters for open or active branches and pull requests in the sidebar navigation menu.\n-   Button to load all failed diffs in pull request and commit view.\n-   Adds 'Create Pull Request' link to the 'Compare branches and tags' page.\n-   Choose a default merge strategy for your pull requests. [Also implemented natively by Bitbucket per project](https://bitbucket.org/site/master/issues/13895/default-merge-strategy#comment-45364593)\n-   Check the \"Close anchor branch\" checkbox by default when creating or editing pull requests.\n-   Add last person to interact with the pull request (commit, comment or approval) to each pull request row in pull request list.\n-   Don't carry pluses and minuses to clipboard when copying diff's contents.\n-   Badge with the number of commits of the current pull request next to the \"Commits\" tab.\n-   Set custom tab indentation size of code (Bitbucket defaults to 8 spaces) when viewing commits/pull requests.\n-   Show a line length limit ruler, defaults to show in the 80th column\n-   Insert \"Comments\" checkbox in diff header to toggle comments.\n-   Insert \"Copy filename to clipboard\" button in diff header.\n-   Define your own custom CSS styles to be applied to Bitbucket.\n-   URLs and emails in diffs automatically become real clickable links.\n-   Include a `PULL_REQUEST_TEMPLATE.md` file in the default branch of the repository in one of the locations below, and the contents of that file template will replace the default pull request body inserted by Bitbucket when creating a new one.\n\n    ```\n    /PULL_REQUEST_TEMPLATE.md\n    /docs/PULL_REQUEST_TEMPLATE.md\n    /.github/PULL_REQUEST_TEMPLATE.md\n    /.bitbucket/PULL_REQUEST_TEMPLATE.md\n    ```\n\n    Please note that the filename IS case sensitive (must be all caps),\n    and MUST have the .md file extension. No other file extensions will be\n    recognized. The file to be used will be the first to be found in one\n    of these locations (from top to bottom).\n\n    It's also possible to specify a URL for a raw Gist with the contents\n    of the template in the options page, in case you don't want to include\n    the file in your repository, e.g., https://gist.githubusercontent.com/anonymous/8054a3ee32f7cf1a5975e3fd52b3c5f3/raw/f6897720e8b6b93becd246187dac36038291c3a4/PULL_REQUEST_TEMPLATE.md.\n\n    _Note: Currently, externally hosted pull request templates outside of BitBucket's domain is not supported with the Firefox addon._\n\n-   Similar to how the pull request template feature works,\n    it is now possible to configure the extension to replace the default merge commit message for\n    pull requests with a template that has access to dynamically injected variables like the pull\n    request title, description, source and destination branch, and more.\n    [Click here for a more in-depth explanation](https://github.com/refined-bitbucket/refined-bitbucket/pull/243)\n\n-   Sticky Header for diffs. While scrolling down viewing a large diff, the header of that diff,\n    including the filename and actions, will remain visible.\n\n## Some images\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003e\n\t\t\tSyntax highlighting\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/32377709-e708312a-c07e-11e7-87a0-05840deb0c48.PNG\" alt=\"syntax-hl1\"\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/32377721-ef7c6b0a-c07e-11e7-9f3c-b13b2bdce8ab.PNG\" alt=\"syntax-hl2\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003e\n\t\t\tPull request list \u003cbr /\u003e\n\t\t\t\u003csmall\u003e(notice the source branch name and creation date)\u003c/small\u003e\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/35921778-0511d8d8-0bf2-11e8-933a-6d333e75335e.png\" alt=\"source-branch\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth width=\"50%\"\u003e\n\t\t\tThe Options page.\u003cbr\u003e\n\t\t\u003c/th\u003e\n\t\t\u003cth width=\"50%\"\u003e\n\t\t\t\u003cem\u003eDiff ignore\u003c/em\u003e and \u003cem\u003eLoad all diffs\u003c/em\u003e\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd rowspan=\"2\"\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/33744735-1f66115c-db89-11e7-804c-9739d3619c65.png\" alt=\"options\"\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cstrong\u003eDiff ignore\u003c/strong\u003e\u003cbr\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/32203543-36e1b012-bdba-11e7-8a26-4accd0e775b6.png\" alt=\"pullrequest-ignore\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cstrong\u003eLoad all diffs\u003c/strong\u003e\u003cbr\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/32376684-da306e0c-c07b-11e7-81e6-bb9c42d21d2e.gif\" alt=\"load-all-diffs\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth width=\"50%\"\u003e\n\t\t\tCollapse diff\n\t\t\u003c/th\u003e\n\t\t\u003cth width=\"50%\"\u003e\n\t\t\tOccurrences highlighter\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/31857910-3938deb6-b6b8-11e7-8bac-f55242010a62.gif\" alt=\"collapse-diff\"\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/34419580-06327498-ebdb-11e7-90cc-41144d4bd671.gif\" alt=\"bottom-collapse\"\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/30448047-a815dd4a-995b-11e7-98e5-48664c2bd587.gif\" alt=\"occurrences-highlighter\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth colspan=\"2\"\u003e\n\t\t\tSidebar counters\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/35759127-0f886b44-084e-11e8-9e3a-58e9ce3da71a.png\" alt=\"expanded\"/\u003e \u003cbr /\u003e\n\t\t\tExpanded\n\t\t\u003c/td\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/7514993/35742830-1c604af8-0812-11e8-936b-f6083599fb45.png\" alt=\"collapsed\" /\u003e \u003cbr /\u003e\n\t\t\tCollapsed\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth width=\"50%\"\u003e\n\t\t\tSticky Header\n\t\t\u003c/th\u003e\n        \u003cth width=\"50%\"\u003e\n            Line length limit ruler\n        \u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/2059313/57961790-64fa9880-7950-11e9-9cf4-0f73104eb800.gif\" alt=\"Sticky Header\"/\u003e\n\t\t\u003c/td\u003e\n        \u003ctd\u003e\n            \u003cimg src=\"https://user-images.githubusercontent.com/12451101/71311094-cfaf0d80-2424-11ea-8bec-b1fdfded6c1e.png\" alt=\"Line length limit ruler\"/\u003e\n        \u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003e\n\t\t\tCompact PR File Trees\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/1762464/95523316-4dd0a680-099c-11eb-82f1-1aa8ceba90f6.png\" alt=\"compactTree\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003e\n            Show total lines added and removed for a pull request\n\t\t\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/1710840/135920358-b9d0b758-c325-466c-984e-ad9e1a61399a.png\" alt=\"total lines added and removed for PR\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n## Installing\n\n_refined-bitbucket_ is available on the [Google Chrome Web Store][chrome-install] and [Add-ons for Firefox][firefox-install]. When installed, go check the extension's Options to customize it to your needs.\n\nSometimes the extension is not immediately picked up by the browser after installation. If this happens to you, log out of Bitbucket and then log back in, or clear your cache.\n\n## Default Key Mapping\n\nThe following are the default key mappings\n\n#### Tab Selection\n\n![bitbucket pull request tabs][tab-image]\n\n| Key          | Action                       |\n| ------------ | ---------------------------- |\n| \u003ckbd\u003e1\u003c/kbd\u003e | Selects the **Overview** tab |\n| \u003ckbd\u003e2\u003c/kbd\u003e | Selects the **Commits** tab  |\n| \u003ckbd\u003e3\u003c/kbd\u003e | Selects the **Activity** tab |\n\n#### Page Navigation and Scrolling\n\n_Upper case letters mean that you need to press shift and the letter_\n\n| Key                       | Action                                           |\n| ------------------------- | ------------------------------------------------ |\n| \u003ckbd\u003eN\u003c/kbd\u003e (Shift+n)    | Scrolls to the **N**ext comment on the page.     |\n| \u003ckbd\u003eP\u003c/kbd\u003e (Shift+p)    | Scrolls to the **P**revious comment on the page. |\n| \u003ckbd\u003eg\u003c/kbd\u003e \u003ckbd\u003eg\u003c/kbd\u003e | Scrolls to the top of the page                   |\n| \u003ckbd\u003eG\u003c/kbd\u003e (Shift+g)    | Scrolls to the bottom of the page                |\n\n## Can I use this on Bitbucket Server?\n\nSadly, no :(. Although Bitbucket Server and Bitbucket Cloud share a similar name, both are actually two completely different products. [Read this comment for a more detailed explanation](https://github.com/refined-bitbucket/refined-bitbucket/issues/39#issuecomment-338455398).\n\n## Compiling \u0026 Contributing\n\nContributions are very appreciated! Even if you can't contribute with a pull request, if you stumble upon any weird behavior or bugs, let us know with an issue!\n\nIf you want to run a development version of the extension, clone the repo and run the following commands:\n\n```bash\nnpm install\nnpm run watch\n```\n\nThis will watch any changes in the `src` folder and compile them to the `extension` folder.\n\n#### Chrome Development\n\nTo test in Chrome, activate the Developer mode in `chrome://extensions`, click \"Load unpacked extension...\" and browse to that folder.\nIf you're new to Chrome extension development, take some time to read Google's [documentation on extensions](https://developer.chrome.com/extensions).\n\n#### Firefox Development\n\nTo test in Firefox, open `about:debugging` in a new tab and click \"Load Temporary Add-on\". Navigate to the extension folder and load `manifest.json`. For further Firefox add-on development \u0026 debugging help, please refer to Mozilla's [documentation](https://developer.mozilla.org/en-US/Add-ons).\n\n#### Integration\n\nThere is a test suite included. Before sending a pull request please make\nsure all tests are passing by running:\n\n```bash\nnpm test\n```\n\n## License\n\nMIT © [refined-bitbucket](https://github.com/refined-bitbucket)\n\n[chrome-install]: https://chrome.google.com/webstore/detail/refined-bitbucket/afppminkfnfngihdocacbgeajbbdklkf?utm_source=chrome-ntp-icon\n[firefox-install]: https://addons.mozilla.org/en-US/firefox/addon/refined-bitbucket-/\n[tab-image]: https://cloud.githubusercontent.com/assets/755669/18594922/1c74c184-7bf7-11e6-887d-859fb6206c65.png\n[prismjs-languages]: http://prismjs.com/download.html?themes=prism\u0026languages=markup+css+clike+javascript+abap+actionscript+ada+apacheconf+apex+apl+applescript+c+asciidoc+asm6502+aspnet+autohotkey+autoit+bash+basic+batch+bison+brainfuck+bro+cpp+csharp+arduino+coffeescript+ruby+csp+css-extras+d+dart+diff+django+docker+eiffel+elixir+elm+erlang+fsharp+flow+fortran+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+jolie+json+julia+keyman+kotlin+latex+less+livescript+lolcode+lua+makefile+markdown+matlab+mel+mizar+monkey+n4js+nasm+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+perl+php+php-extras+powershell+processing+prolog+properties+protobuf+pug+puppet+pure+python+q+qore+r+jsx+typescript+renpy+reason+rest+rip+roboconf+crystal+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+sql+stylus+swift+tcl+textile+twig+tsx+vbnet+verilog+vhdl+vim+wiki+xeora+xojo+yaml#category-languages\n[language-ext]: https://github.com/refined-bitbucket/refined-bitbucket/blob/dev/src/syntax-highlight/language-ext.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefined-bitbucket%2Frefined-bitbucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefined-bitbucket%2Frefined-bitbucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefined-bitbucket%2Frefined-bitbucket/lists"}