Skip to content

rybak/atlassian-tweaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlassian Tweaks

This is a collection of user scripts and user styles for Bitbucket, Confluence, and Jira.

The source code is distributed under the terms of MIT or AGPL-3.0-only licenses, depending on the file. See individual scripts and styles for details.

Instructions on how to use user scripts and styles are at the bottom of the README.

The scripts were originally written for self-hosted variants of the Bitbucket, Jira, and Confluence. Half of the scripts and styles also support the newer cloud variants – they are marked as such in their description. Some scripts and styles are no longer applicable to newer cloud variants due to significant UI redesigns.

Bitbucket

Bitbucket is a Git hosting provider.

Bitbucket: copy commit reference

Greasy Fork link

Adds "Copy commit reference" link to every commit page. Commit reference is a commonly used format to refer to past commits. It looks like this:

the example is commit 1f0fc1d (pretty: implement 'reference' format, 2019-11-20) in the git.git repository.

The copied reference supports plain text and rich text editors, with clickable links to the commit, Jira issues, and Bitbucket pull requests.

This script supports both Bitbucket Server and Bitbucket Cloud. See repository rybak/copy-commit-reference-userscript for userscripts for other Git hostings.

Screenshot of "Bitbucket: copy commit reference" in action

Bitbucket: hide banner

Greasy Fork link UserStyles.world link

Hides the banner at the top of Bitbucket which takes up vertical space in cases when it is almost never used.

Screenshot of "Bitbucket: hide banner" in action: before and after

Bitbucket: fix commit tooltip

The width of commit tooltip in Bitbucket can sometimes make it unreadable because it is too narrow. This user style increases the width of the tooltip to accommodate commit messages wrapped at 72 characters. It is the commonly used standard for commit message wrapping, which is used by Git itself. It is also the default wrapping width in some text editors, such as Vim and IntelliJ IDEA.

https://github.com/rybak/atlassian-tweaks/raw/main/bitbucket-fix-commit-tooltip.user.css

Screenshot of "Fix commit tooltip"

Bitbucket: fix selection of breadcrumbs

Greasy Fork link UserStyles.world link

Selection of file paths (breadcrumbs) is broken in some parts of the Bitbucket UI in a way, that marker "UPDATED", "ADDED", or "DELETED" is selected, depending on the exact way that the user performs the selection. This style makes the pill-shaped markers unselectable, fixing this issue.

This style supports both Bitbucket Server and Bitbucket Cloud.

Bitbucket: commit links in diff tab of PRs

Greasy Fork link

This user script brings back convenient links to individual commit pages to the pull request's "Diff" tab, which was removed by Atlassian some time before Bitbucket Server version 7.6. The commit link includes a fancy tooltip, same as commit links on the "Commits" tab.

Screenshot of "PR links to commits"

Bitbucket: header color

Greasy Fork link UserStyles.world link

Some instances of Bitbucket are deployed with custom look and feels, which have unfortunate color of the header. This user style allows changing the color of Bitbucket header to any color.

This style supports both Bitbucket Server and Bitbucket Cloud.

Screenshot of "Bitbucket: header color"

Bitbucket: PR author avatar as favicon

Greasy Fork link

This user script changes favicons of Bitbucket pull request pages (tab icon in browsers) to the avatar of pull request's author, which makes it easier to distinguish browser tabs.

This script supports both Bitbucket Server and Bitbucket Cloud.

Screenshot of "Bitbucket: PR author avatar as favicon"

Bitbucket: readable commit messages

Greasy Fork link UserStyles.world link

Commit pages on Bitbucket Cloud are not very readable. This user style adds a border around the commit messages, makes the font monospace, and makes the subject line bold. Many aspects of the style can be configured. Demo: monospace and without monospace.

This style supports only Bitbucket Cloud.

Bitbucket: green merge button

Greasy Fork link UserStyles.world link

This userstyle makes active merge buttons green in Bitbucket pull requests. Inspired by code review tool "Critique". This style supports both Bitbucket Server and Bitbucket Cloud.

Before and After screenshots of "Bitbucket: green merge button"

Bitbucket: speed up CI builds

UserStyles.world link

This user style speeds up continuous integration builds on Bitbucket.

Demonstration of "Bitbucket: fast and furious"

Confluence

Confluence is a corporate wiki.

Confluence: space avatar as tab icon

Greasy Fork link

Replaces tab icons for Confluence pages with avatars of the Confluence spaces.

This script supports both Confluence Server and Confluence Cloud.

Confluence: copy link buttons

Greasy Fork link

Adds buttons to copy a link to the current page directly into clipboard. Two buttons are supported: Markdown and Jira syntax. Both buttons support HTML for rich text editors.

This script supports both Confluence Server and Confluence Cloud.

Screenshots of "Confluence: copy link buttons" in action on Confluence Server and Confluence Cloud

Confluence: hide banner

Greasy Fork link UserStyles.world link

Hides the "precursor" banner at the top of Confluence which takes up vertical space in cases when it is almost never used.

This style supports both Confluence Server and Confluence Cloud.

Screenshot of "Confluence: hide banner" in action: before and after

Confluence: better monospace

Greasy Fork link UserStyles.world link

This style adds a border and a background to monospace text, making it easier to distinguish from surrounding text.

This style supports both Confluence Server and Confluence Cloud. On Confluence Cloud, this style supports both light and dark themes.

Screenshot of "Confluence: better monospace"

Confluence: Simple Floating Table of Contents

Greasy Fork link UserStyles.world link

This style moves the table of contents to the right side of the page and makes the table of contents "sticky", floating in the same place when scrolling.

This style supports both Confluence Server and Confluence Cloud.

confluence-simple-floating-toc.mp4

Jira

Jira is a bug-tracking, issue-tracking and project-management software application.

Jira: improve formatting of inline code

Greasy Fork link UserStyles.world link

Code in Jira in {{inline code}} syntax can be hard to read sometimes. This user style adds a background and a border for such elements to improve readability.

This style supports both Jira Server (self-hosted) and Jira Cloud. On Jira Cloud, this style supports both light and dark themes.

Screenshot comparing sample text with and without user style "Jira: improve formatting of inline code"

Jira: copy summary button

Greasy Fork link

This user script adds a "Copy summary" button for issue pages on Jira. The rich text (HTML) summary, which is great for pasting in Confluence and in Slack looks like this:

[MC-179867] Unicode Characters swapped in Minecraft

The plain text version looks like this:

[MC-179867] Unicode Characters swapped in Minecraft

Jira copy summary button

When on a Jira page, the script can be configured using the corresponding extension menu item (screenshot from Tampermonkey):

Jira copy summary Tampermonkey configuration

Jira: copy code blocks

This user scripts adds a "Copy!" button to all code and preformatted blocks in Jira to allow copying its contents. Useful for copying commands when executing Zephyr test cases.

https://github.com/rybak/atlassian-tweaks/raw/main/jira-copy-code-blocks.user.js

Jira: better pull request links

Greasy Fork link

Bitbucket integration in Jira is not very convenient. It requires clicking on a link, like "3 pull requests", before actually giving the user access to the actual links to pull requests. This user script adds a panel above "Development" with a list of clickable links to pull requests.

Screenshot of "Jira: Pull Request Link Improver"

Jira: project avatar as favicon

Greasy Fork link

This user script changes favicons of Jira pages (tab icon in browsers) to the avatar of individual Jira projects, which makes it easier to distinguish browser tabs of tickets in different projects.

This script supports both Jira Server (self-hosted) and Jira Cloud.

Screenshot of "Jira: project avatar as favicon"

How to use Atlassian Tweaks

  1. Install browser extensions for user scripts and user styles.
  2. Install by clicking on buttons for Greasy Fork button and UserStyles.world button, or the raw GitHub link in the sections above. The corresponding browser extension will automatically recognize the filename extension in the link and prompt you for its installation.

After installation, you can use the browser extension popup to disable or enable individual scripts and styles if needed. For some scripts, you will need to refresh the page (in browser) to remove effects of the script.

Custom domains

Both scripts and styles should automatically work on Bitbucket, Confluence, and Jira domains which have bitbucket, confluence, or jira in their domain name. If a style or script doesn't work automatically, for example, if your Bitbucket server lives on a domain without the word bitbucket in it, you will have to add your domain manually.

Also, the automagical @include rules which scripts of Atlassian Tweaks use might break in future versions of Chrome due to adoption of Manifest V3 for browser extensions. See documentation of Firefox and Google Chrome for details.

Custom domains for user styles

For styles, if URL of your Bitbucket, Confluence, of Jira instance doesn't start with bitbucket, confluence, or jira respectively, you'll have to manually provide your domain. Stylus instructions:

  1. Click "Manage" button in the extension's menu
  2. Click on cog icon in the row of the style that you need to adjust
  3. In field "Your Bitbucket/Confluence/Jira domain", type in the domain of your Bitbucket, Confluence, or Jira server. For example, git.example.com or bugs.example.com. Up to two domains are supported. This menu should also be visible in the top right corner of the tab during installation of the style.

Custom domains for user scripts

Scripts use https://example.com by default. You might have to manually change the URL in the "match" settings to the hostname of the Bitbucket, Jira, or Confluence server that you use.

Tampermonkey instructions:

  1. Go to Dashboard in the extension menu
  2. Click "Edit" button in the line of the script that you've just installed
  3. Copy the value from @match field of the metadata
  4. Go to the tab "Settings"
  5. Click "Add..." under "User matches"
  6. Paste the copied value
  7. Replace the example domain with the domain of website you use
  8. Click "OK"

Browser extensions

For scripts

User scripts are compatible with browser extensions Violentmonkey, Tampermonkey, and Greasemonkey.

For styles