[
  {
    "ignoreSelector": ".button, code, footer, form, mark, pre, .mwe-math-element, .mw-editsection",
    "pattern": "en.wikipedia.org"
  },
  {
    "selector": "p, .titleline, .commtext, .hn-item-title, .hn-comment-text, .hn-story-title",
    "keepSelector": "code, img, svg, pre, .sitebit",
    "ignoreSelector": "button, code, footer, form, header, mark, nav, pre, .reply",
    "autoScan": "false",
    "pattern": "news.ycombinator.com"
  },
  {
    "selector": "[data-testid='tweetText'], [data-testid='twitter-article-title'], [data-testid='UserDescription'], .public-DraftStyleDefault-block, span.text-body, div.css-175oi2r.r-3pj75a div.css-175oi2r>span, div.css-175oi2r.r-3pj75a li>span, div.r-1s2bzr4>div.r-16dba41, div.r-16y2uox>div.r-1jeg54m",
    "keepSelector": "img, svg, a, span:has(a), div:has(a)",
    "ignoreSelector": "[data-testid='videoPlayer'], [data-testid^='tweetTextarea']",
    "autoScan": "false",
    "selectStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "pattern": "twitter.com, https://x.com"
  },
  {
    "rootsSelector": "div#items",
    "selector": "span.yt-live-chat-text-message-renderer",
    "autoScan": "false",
    "pattern": "www.youtube.com/live_chat"
  },
  {
    "ignoreSelector": "-button",
    "pattern": "m.youtube.com"
  },
  {
    "rootsSelector": "ytd-page-manager, yt-lockup-view-model, ytm-shorts-lockup-view-model",
    "ignoreSelector": "aside, button, footer, form, header, pre, mark, nav, #player, .caption-window, .ytp-settings-menu, #kiss-youtube-subtitle-list-container, yt-pdg-comment-chip-renderer",
    "blockSelector": "yt-lockup-view-model, ytm-shorts-lockup-view-model, ytm-shorts-lockup-view-model-v2, ytd-post-renderer",
    "selectStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "parentStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "grandStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "injectCss": ".ytLockupMetadataViewModelStandard.ytLockupMetadataViewModelRichGridLegacyTypography .ytLockupMetadataViewModelTitle {\n  -webkit-line-clamp: unset;\n  max-height: none;\n  height: auto;\n}\n\n.yt-horizontal-list-renderer+kiss-translator {\n  display: none;\n}",
    "pattern": "www.youtube.com"
  },
  {
    "autoScan": "false",
    "selector": ".text-content, .embedded-text-wrapper",
    "rootsSelector": ".Transition",
    "pattern": "web.telegram.org"
  },
  {
    "ignoreSelector": "table",
    "keepSelector": "b, i",
    "transStartHook": "({text})=>({text:text.replace(/[\\r\\n]+/g, \"\")})",
    "injectJs": "document.querySelectorAll('pre').forEach(pre=>pre.innerHTML = pre.innerHTML?.replace(/(?:\\r\\n|\\r|\\n){2,}/g, '<br /><br />'));",
    "pattern": "man7.org"
  },
  {
    "autoScan": "false",
    "selector": "h1, h2, h3, h4, h5, h6, .markdown-body li, p, dd, blockquote, figcaption, label, legend, .user-profile-bio>div, [data-testid=\"results-list\"] .search-match, .Subhead-description, [class^=\"prc-SelectPanel-Subtitle-\"], [class^=\"prc-ActionList-ItemLabel-\"], [role=\"dialog\"] .overflow-auto, .h4, .repos-list-description, .discussion-title, [class*=\"PinnedIssue-module__Link\"] span, .js-wiki-sidebar-page-container :is(.Truncate-text, .Link--primary), .markdown-body td:not(:first-child)",
    "ignoreSelector": "button, p.pinned-item-desc+p",
    "pattern": "github.com"
  },
  {
    "ignoreSelector": ".notion-inline-code-container",
    "keepSelector": "code, cite, math, .math, a:has(code), span:has(.katex), .notion-inline-code-container",
    "injectJs": "setTimeout(() => {\n  const originalReactRoot = document.getElementById(\"notion-app\");\n  if (originalReactRoot) {\n    originalReactRoot.style.display = \"none\";\n    const clonedHTML = originalReactRoot.innerHTML;\n    const clonedRoot = document.createElement(\"div\");\n    clonedRoot.id = \"cloned-notion-app\";\n    clonedRoot.innerHTML = clonedHTML;\n    const parent = originalReactRoot.parentNode;\n    parent?.insertBefore(clonedRoot, originalReactRoot.nextSibling);\n  }\n}, 5000);",
    "pattern": "*.notion.site"
  },
  {
    "injectJs": "document.addEventListener('selectionchange', (e) => {\n  const selection = window.getSelection();\n  if (selection && selection.anchorNode) {\n      const container = selection.anchorNode.parentElement;\n      if (container?.closest('.cooked')) {\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n      }\n  }\n}, true);\n\ndocument.addEventListener('mouseup', (e) => {\n  if (e.target.closest('.cooked')) {\n      e.stopPropagation();\n  }\n}, true);",
    "pattern": "meta.discourse.org"
  },
  {
    "injectJs": "document.addEventListener('selectionchange', (e) => {\n  const selection = window.getSelection();\n  if (selection && selection.anchorNode) {\n      const container = selection.anchorNode.parentElement;\n      if (container?.closest('.cooked')) {\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n      }\n  }\n}, true);\n\ndocument.addEventListener('mouseup', (e) => {\n  if (e.target.closest('.cooked')) {\n      e.stopPropagation();\n  }\n}, true);",
    "pattern": "discussion.fedoraproject.org"
  },
  {
    "ignoreSelector": "+#footer, +svg, +.bb_img_ctn, +#game_area_legal",
    "pattern": "store.steampowered.com"
  },
  {
    "selector": ".usertext",
    "ignoreSelector": ".tabmenu, #sr-header-area, .tagline, .flat-list, .author, code",
    "pattern": "old.reddit.com"
  },
  {
    "selector": "#field-value-short_desc, .comment-text",
    "pattern": "/show_bug.cgi"
  },
  {
    "selectStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "parentStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "grandStyle": "-webkit-line-clamp: unset; max-height: none; height: auto;",
    "pattern": "youtrack.jetbrains.com"
  },
  {
    "rootsSelector": ".title",
    "pattern": "liveuamap.com"
  },
  {
    "ignoreSelector": ".ask-left, .ask-center-footer, #tap-input-field",
    "pattern": "search.brave.com/ask"
  }
]