import React from 'dom-chef'; import {replaceFieldText} from 'text-field-edit'; import * as pageDetect from 'github-url-detection'; import features from '../feature-manager.js'; import {isRefinedGitHubRepo} from '../github-helpers/index.js'; import observe from '../helpers/selector-observer.js'; function extract(textarea: HTMLTextAreaElement): void { replaceFieldText(textarea, /\n/s, (_, match) => { textarea.closest('tab-container')!.before(