Skip to content

Commit

Permalink
Show underline (fixes #93);
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Dec 10, 2015
1 parent 44c7156 commit 0369357
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Github_Pull_Request_From/Github_Pull_Request_From.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Pull_Request_From/Github_Pull_Request_From.user.js
// @supportURL https://github.com/jerone/UserScripts/issues
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
// @version 15
// @version 16
// @grant none
// @include https://github.com/*/*
// ==/UserScript==
Expand All @@ -35,6 +35,9 @@
var treeUser = treeSpan.querySelector('.user');
var treeParts = treeSpan.querySelectorAll('.css-truncate-target');
var treeLink = document.createElement("a");
Array.prototype.forEach.call(treeParts, function(part) {
part.style.display = "inline";
});
treeLink.setAttribute("href", String.format("https://github.com/{0}/{1}/tree/{2}",
treeUser ? treeUser.textContent : author, // user;
repo, // repository;
Expand Down
2 changes: 2 additions & 0 deletions Github_Pull_Request_From/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Make pull request branches linkable.

## Version History

This comment has been minimized.

Copy link
@jerone

jerone Jul 8, 2018

Author Owner

Testing

This comment has been minimized.

Copy link
@jerone

jerone Feb 12, 2024

Author Owner

@jerone test @-user


* **16**
* Show underline (fixes https://github.com/jerone/UserScripts/issues/93);
* **15**
* Fixed invalid chars in url;
* **14**
Expand Down

1 comment on commit 0369357

@rugk
Copy link

@rugk rugk commented on 0369357 Dec 10, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.