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 333f147
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions github.com/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,4 @@ onBrowse(async () => {
ctr.appendChild(gen);
}
}

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 333f147

Please sign in to comment.