Skip to content

Commit

Permalink
bitbucket-copy-commit-reference: update CSS for Cloud
Browse files Browse the repository at this point in the history
After an update of Bitbucket Cloud, the mangled CSS class names, which
are used by bitbucket-copy-commit-reference.user.js have changed.
Update the CSS classes used for finding the "View source" button by
method getFullHash() in class BitbucketCloud.
  • Loading branch information
rybak committed Dec 23, 2023
1 parent bb2b380 commit 41657ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitbucket-copy-commit-reference.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Bitbucket: copy commit reference
// @namespace https://github.com/rybak/atlassian-tweaks
// @version 6
// @version 7
// @description Adds a "Copy commit reference" link to every commit page on Bitbucket Cloud and Bitbucket Server.
// @license AGPL-3.0-only
// @author Andrei Rybak
Expand Down Expand Up @@ -99,7 +99,7 @@
/*
* "View source" button on the right.
*/
const a = document.querySelector('div.css-1oy5iav a.css-1leee2m');
const a = document.querySelector('div.css-1oy5iav a.css-1luyhz2');
const href = a.getAttribute('href');
debug("BitbucketCloud:", href);
return href.slice(-41, -1);
Expand Down

0 comments on commit 41657ad

Please sign in to comment.