2019-06-29 15:16:27 +02:00
|
|
|
declare class BloomFilter {
|
|
|
|
constructor(data: Uint32Array, k: number);
|
|
|
|
test(key: string): boolean;
|
2019-06-29 19:47:05 +02:00
|
|
|
name: LabelKind;
|
|
|
|
}
|
|
|
|
interface HTMLElement {
|
|
|
|
assignedCssLabel?: string
|
|
|
|
}
|
|
|
|
interface LabelToSolve {
|
|
|
|
element: HTMLAnchorElement
|
|
|
|
identifier: string
|
2019-06-29 15:16:27 +02:00
|
|
|
}
|
2019-10-06 16:31:46 +02:00
|
|
|
type LabelKind = 't-friendly' | 'transphobic' | 'none' | '' | 'bad-identifier';
|
2019-06-29 19:47:05 +02:00
|
|
|
interface ShinigamiEyesSubmission {
|
|
|
|
mark?: LabelKind
|
|
|
|
url?: string
|
|
|
|
tabId?: number
|
|
|
|
frameId?: number
|
|
|
|
debug?: number
|
2019-06-29 15:41:37 +02:00
|
|
|
identifier?: string
|
|
|
|
secondaryIdentifier?: string
|
2019-06-29 19:47:05 +02:00
|
|
|
version?: number
|
|
|
|
submissionId?: string
|
|
|
|
contextPage?: string
|
|
|
|
linkId?: number
|
|
|
|
snippet?: string
|
2019-10-06 14:29:26 +02:00
|
|
|
isSocialNetwork?: boolean
|
2019-06-29 19:47:05 +02:00
|
|
|
}
|
|
|
|
interface ShinigamiEyesCommand {
|
|
|
|
acceptClicked?: boolean
|
|
|
|
myself?: string
|
|
|
|
ids?: string[]
|
|
|
|
updateAllLabels?: boolean
|
2019-07-17 23:35:00 +02:00
|
|
|
closeCallingTab?: boolean
|
|
|
|
setTheme?: string
|
2019-10-06 14:29:26 +02:00
|
|
|
confirmSetIdentifier?: string
|
|
|
|
confirmSetLabel?: LabelKind
|
2019-10-07 21:07:36 +02:00
|
|
|
confirmSetUrl?: string
|
2019-10-06 16:31:46 +02:00
|
|
|
badIdentifierReason?: BadIdentifierReason
|
2019-06-29 19:47:05 +02:00
|
|
|
}
|
2019-06-29 19:54:25 +02:00
|
|
|
type LabelMap = { [identifier: string]: LabelKind };
|
2019-06-29 19:47:05 +02:00
|
|
|
|
2019-06-29 19:54:25 +02:00
|
|
|
interface ShinigamiEyesMessage extends ShinigamiEyesSubmission, ShinigamiEyesCommand {
|
2019-06-29 15:41:37 +02:00
|
|
|
}
|
2019-06-29 19:47:05 +02:00
|
|
|
|
2020-12-26 09:55:04 +01:00
|
|
|
type ContextMenuCommand = 'mark-t-friendly' | 'mark-transphobic' | 'mark-none' | 'help' | 'options' | 'separator';
|
2019-10-06 16:31:46 +02:00
|
|
|
type BadIdentifierReason = 'SN' | 'AR';
|