Skip to content

Commit 333f147

Browse files
committed
github: remove watchers & stargazers links
github has since provided the links in a UI refresh
1 parent 826ae80 commit 333f147

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

github.com/index.js

-23
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,4 @@ onBrowse(async () => {
4949
ctr.appendChild(gen);
5050
}
5151
}
52-
53-
const pageHeadActions = document.querySelectorAll(".pagehead-actions > *");
54-
if (pageHeadActions.length === 3 || pageHeadActions.length === 4) {
55-
const Repo = document.querySelector('[itemprop="name"] a');
56-
if (Repo) {
57-
let page_head = document.getElementsByClassName("pagehead-actions");
58-
if (page_head.length > 0) {
59-
page_head = page_head[0];
60-
const a = document.createElement("a");
61-
a.className = "btn-sm btn";
62-
a.href = `${Repo.href}/watchers`;
63-
a.textContent = "Watchers";
64-
65-
const a2 = document.createElement("a");
66-
a2.className = "btn-sm btn";
67-
a2.href = `${Repo.href}/stargazers`;
68-
a2.textContent = "Stargazers";
69-
70-
page_head.appendChild(a);
71-
page_head.appendChild(a2);
72-
}
73-
}
74-
}
7552
});

0 commit comments

Comments
 (0)