Skip to content

Commit

Permalink
github: remove watchers & stargazers links
Browse files Browse the repository at this point in the history
github has since provided the links in a UI refresh
  • Loading branch information
avindra committed Feb 9, 2024
1 parent 826ae80 commit 4d73121
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions github.com/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,4 @@ onBrowse(async () => {
}
}

const pageHeadActions = document.querySelectorAll(".pagehead-actions > *");
if (pageHeadActions.length === 3 || pageHeadActions.length === 4) {
const Repo = document.querySelector('[itemprop="name"] a');
if (Repo) {
let page_head = document.getElementsByClassName("pagehead-actions");
if (page_head.length > 0) {
page_head = page_head[0];
const a = document.createElement("a");
a.className = "btn-sm btn";
a.href = `${Repo.href}/watchers`;
a.textContent = "Watchers";

const a2 = document.createElement("a");
a2.className = "btn-sm btn";
a2.href = `${Repo.href}/stargazers`;
a2.textContent = "Stargazers";

page_head.appendChild(a);
page_head.appendChild(a2);
}
}
}
});

0 comments on commit 4d73121

Please sign in to comment.