-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmeta.ts
23 lines (21 loc) · 863 Bytes
/
meta.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { UserscriptMetadata } from '@lib/util/metadata';
import { MB_EDIT_PAGE_PATHS, transformMBMatchURL } from '@lib/util/metadata';
const metadata: UserscriptMetadata = {
'name': 'MB: Display CAA image dimensions',
'description': 'Displays the dimensions and size of images in the cover art archive.',
'run-at': 'document-start',
'match': [
'event/*',
'release/*',
'release-group/*',
...MB_EDIT_PAGE_PATHS,
].map((path) => transformMBMatchURL(path)),
'exclude': [
transformMBMatchURL('event/*/edit'),
transformMBMatchURL('release/*/edit'),
transformMBMatchURL('release/*/edit-relationships'),
transformMBMatchURL('release-group/*/edit'),
],
'blurb': 'Loads and displays the image dimensions of images in the cover art archive.',
};
export default metadata;