blob: 9772dbc2c9bc9f66ecba55003ebba2aa334c2c59 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import onetime from 'onetime';
import {observe} from 'selector-observer';
import * as pageDetect from 'github-url-detection';
import features from '.';
function init(): void {
observe('[aria-label="You do not have permission to edit this milestone."]', {
add(icon) {
icon.parentElement!.remove();
}
});
}
void features.add(__filebasename, {
include: [
pageDetect.isMilestone
],
init: onetime(init)
});
|