Skip to content

Commit

Permalink
Add new GHE-specific injection for repo code page
Browse files Browse the repository at this point in the history
  • Loading branch information
gitkrakel committed Feb 29, 2024
1 parent 6e5b37a commit 89c5618
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/hosts/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,17 @@ export function injectionScope(url: string) {
}
case 'tree':
case undefined:
// Enterpise v3.11.2
insertions.set('[data-target="get-repo.modal"] ul li:last-child', {
html: /*html*/ `<li data-gk class="Box-row Box-row--hover-gray p-3 mt-0 rounded-0">
<a class="d-flex flex-items-center color-fg-default text-bold no-underline" href="${url}" target="_blank" title="${label}" aria-label="${label}">
${this.getGitKrakenSvg(16, 'mr-2')}
${label}
</a>
</li>`,
position: 'afterend',
});

insertions.set('[data-target="get-repo.modal"] #local-panel ul li:first-child', {
html: /*html*/ `<li data-gk class="Box-row Box-row--hover-gray p-3 mt-0 rounded-0">
<a class="d-flex flex-items-center color-fg-default text-bold no-underline" href="${url}" target="_blank" title="${label}" aria-label="${label}">
Expand Down

0 comments on commit 89c5618

Please sign in to comment.