blob: fdc04b22ddb0efee1cdecb3fa4f232efba2d62de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import {$$} from 'select-dom';
import * as pageDetect from 'github-url-detection';
import features from '../feature-manager.js';
const selector = `
:is(.js-issue-row, .js-pinned-issue-list-item)
.Link--muted:is(a[aria-label$="comment"], a[aria-label$="comments"])
`;
function init(): void {
for (const link of $$(selector)) {
link.hash = '#partial-timeline';
}
}
void features.add(import.meta.url, {
include: [
pageDetect.isIssueOrPRList,
],
awaitDomReady: true,
deduplicate: 'has-rgh-inner',
init,
});
|