import './options.css'; import React from 'dom-chef'; import select from 'select-dom'; import fitTextarea from 'fit-textarea'; import {applyToLink} from 'shorten-repo-url'; import indentTextarea from 'indent-textarea'; import {getAllOptions} from './options-storage'; import * as domFormatters from './libs/dom-formatters'; function parseDescription(description: string): DocumentFragment { const descriptionElement = {description}; domFormatters.linkifyIssues(descriptionElement, { baseUrl: 'https://github.com', user: 'sindresorhus', repository: 'refined-github' }); domFormatters.linkifyURLs(descriptionElement); domFormatters.parseBackticks(descriptionElement); for (const a of select.all('a', descriptionElement)) { applyToLink(a); } return descriptionElement; } function buildFeatureCheckbox({name, description, screenshot, disabled}: FeatureInfo): HTMLElement { // `undefined` disconnects it from the options const key = disabled ? undefined : `feature:${name}`; return (
{ name === 'minimize-user-comments' &&

User list: