{
  "autoclick" : [
    {
      "frame" : "",
      "selector" : "div[data-role=\"button\"]#necessary",
      "timeout" : 10,
      "website" : "app.elektraweb.com"
    },
    {
      "frame" : "",
      "selector" : "div.cmplz-cookiebanner.banner-1.cookie-consent.optin.cmplz-bottom-right.cmplz-categories-type-view-preferences.cmplz-show > div.cmplz-buttons > button.cmplz-btn.cmplz-deny",
      "timeout" : 10,
      "website" : "casalumar.com"
    },
    {
      "frame" : "",
      "selector" : "a[href=\"https\\:\\/\\/www\\.expedia\\.com\\/close-banner\"].uitk-link.uitk-layout-flex-item-align-self-center.uitk-layout-flex-item.uitk-link-align-center.uitk-link-theme-inverse.uitk-link-layout-inline",
      "timeout" : 10,
      "website" : "www.expedia.com"
    },
    {
      "frame" : "",
      "selector" : "div.newsletter-modal-initial-screen-container > button.no-thanks-cta",
      "timeout" : 10,
      "website" : "www.forbes.com"
    },
    {
      "frame" : "",
      "selector" : "button#stayButton",
      "timeout" : 10,
      "website" : "www.asus.com"
    },
    {
      "frame" : "",
      "selector" : "button#onetrust-accept-btn-handler",
      "timeout" : 10,
      "website" : "edition.cnn.com"
    }
  ],
  "hidePageElement" : [
    {
      "leaveSpace" : false,
      "selector" : "div[data-role=\"button\"]#necessary",
      "website" : "app.elektraweb.com"
    },
    {
      "leaveSpace" : false,
      "selector" : ".InContentBarrierFloatingBar-JNTCd",
      "website" : "www.wired.com"
    },
    {
      "leaveSpace" : true,
      "selector" : "#sp_message_container_1426772",
      "website" : "www.spiegel.de"
    },
    {
      "leaveSpace" : false,
      "selector" : "#tou-announcement",
      "website" : "codeberg.org"
    },
    {
      "leaveSpace" : false,
      "selector" : ".uitk-dialog-layer",
      "website" : "www.expedia.com"
    },
    {
      "leaveSpace" : false,
      "selector" : ".paywall_ribbon",
      "website" : "www.forbes.com"
    }
  ],
  "lastTag" : 97,
  "replacements" : [
    {
      "enabled" : false,
      "pattern" : "/^https://www\\.google\\.com/search\\?((?!&udm=[0-9]).)+$/",
      "platforms" : "None",
      "replace" : "$&&udm=14"
    },
    {
      "enabled" : true,
      "pattern" : "https://youtube.com/",
      "platforms" : "All",
      "replace" : "https://invidious.nerdvpn.de/"
    },
    {
      "enabled" : true,
      "pattern" : "https://m.youtube.com/",
      "platforms" : "All",
      "replace" : "https://inv.nadeko.net/"
    },
    {
      "enabled" : true,
      "pattern" : "https://www.youtube.com/",
      "platforms" : "All",
      "replace" : "https://inv.nadeko.net/"
    },
    {
      "enabled" : false,
      "pattern" : "https://music.youtube.com/",
      "platforms" : "None",
      "replace" : "https://hyperpipe.ducks.party/"
    },
    {
      "enabled" : true,
      "pattern" : "/^https://www\\.reddit\\.com/(?!media\\?url=|gallery/|poll/)/",
      "platforms" : "All",
      "replace" : "https://redlib.catsarch.com/"
    },
    {
      "enabled" : true,
      "pattern" : "https://stackoverflow.com/",
      "platforms" : "All",
      "replace" : "https://anonymousoverflow.catsarch.com/"
    },
    {
      "enabled" : false,
      "pattern" : "https://news.ycombinator.com/item?id=",
      "platforms" : "None",
      "replace" : "https://hn.vern.cc/stories/"
    },
    {
      "enabled" : true,
      "pattern" : "^https?:\\\\/{2}(www\\\\.)?maps\\\\.google(\\\\.[a-z]{2,3}){1,2}\\\\/",
      "platforms" : "All",
      "replace" : "https://www.openstreetmap.org/"
    },
    {
      "enabled" : true,
      "pattern" : "https://www.google.com/maps/place/",
      "platforms" : "All",
      "replace" : "https://www.openstreetmap.org/search?query="
    },
    {
      "enabled" : true,
      "pattern" : "https://medium.com/",
      "platforms" : "All",
      "replace" : "https://small.private.coffee/"
    },
    {
      "enabled" : true,
      "pattern" : "https://www.goodreads.com/",
      "platforms" : "All",
      "replace" : "https://br.bloat.cat/"
    },
    {
      "enabled" : true,
      "pattern" : "https://www.quora.com/",
      "platforms" : "All",
      "replace" : "https://quetre.lunar.icu/"
    },
    {
      "enabled" : true,
      "pattern" : "/^https://en\\.wikipedia\\.org/",
      "platforms" : "All",
      "replace" : "https://wm.bloat.cat/en.wikipedia.org/"
    },
    {
      "enabled" : true,
      "pattern" : "https://tr.wikipedia.org/wiki/",
      "platforms" : "All",
      "replace" : "https://wm.bloat.cat/tr.wikipedia.org/wiki/"
    },
    {
      "enabled" : true,
      "pattern" : "https://m.soundcloud.com",
      "platforms" : "All",
      "replace" : "https://sc.bloat.cat"
    },
    {
      "enabled" : true,
      "pattern" : "https://soundcloud.com/",
      "platforms" : "All",
      "replace" : "https://sc.bloat.cat/"
    },
    {
      "enabled" : true,
      "pattern" : "https://bandcamp.com/discover",
      "platforms" : "All",
      "replace" : "https://tent.sny.sh/discover.php"
    },
    {
      "enabled" : true,
      "pattern" : "https://imgur.com/",
      "platforms" : "All",
      "replace" : "https://rimgo.catsarch.com/"
    },
    {
      "enabled" : true,
      "pattern" : "https://tiktok.com/",
      "platforms" : "All",
      "replace" : "https://tok.adminforge.de/"
    },
    {
      "enabled" : true,
      "pattern" : "https://fandom.com/wiki/",
      "platforms" : "All",
      "replace" : "https://breezewiki.private.coffee/wiki/"
    },
    {
      "enabled" : true,
      "pattern" : "https://www.x.com/",
      "platforms" : "All",
      "replace" : "https://shitter.thepixora.com/"
    },
    {
      "enabled" : true,
      "pattern" : "https://mobile.x.com/",
      "platforms" : "All",
      "replace" : "https://shitter.thepixora.com/"
    },
    {
      "enabled" : true,
      "pattern" : "https://x.com/",
      "platforms" : "All",
      "replace" : "https://shitter.thepixora.com/"
    },
    {
      "enabled" : true,
      "pattern" : "https://t.co/",
      "platforms" : "All",
      "replace" : "https://nitter.meowing.monster/t.co/"
    },
    {
      "enabled" : true,
      "pattern" : "/^https://(pbs|video)\\.twimg\\.com/(.*)",
      "platforms" : "All",
      "replace" : "https://nitter.meowing.monster/pic/$1.twimg.com/$2"
    },
    {
      "enabled" : true,
      "pattern" : "https://mobile.twitter.com/",
      "platforms" : "All",
      "replace" : "https://shitter.thepixora.com/"
    },
    {
      "enabled" : true,
      "pattern" : "https://twitter.com/",
      "platforms" : "All",
      "replace" : "https://shitter.thepixora.com/"
    },
    {
      "enabled" : true,
      "pattern" : "xcancel.com",
      "platforms" : "All",
      "replace" : "shitter.thepixora.com"
    },
    {
      "enabled" : true,
      "pattern" : "/^mailto:/",
      "platforms" : "All",
      "replace" : ""
    }
  ],
  "settings" : {
    "2" : {
      "isPreset" : true,
      "options" : {
        "animationJS" : true,
        "clipboardWrite" : true,
        "css" : "",
        "js" : ""
      },
      "preset" : "1",
      "title" : ""
    },
    "4" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "91",
      "title" : "codeberg.org"
    },
    "7" : {
      "isPreset" : true,
      "options" : {
        "ampViewer" : true,
        "link" : true
      },
      "preset" : "1",
      "title" : "stopthemadnesspro"
    },
    "16" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "crypt.ee"
    },
    "19" : {
      "isPreset" : false,
      "options" : {
        "select" : false
      },
      "platforms" : "All",
      "preset" : "91",
      "title" : "github.com"
    },
    "21" : {
      "isPreset" : false,
      "options" : {
        "audio" : true,
        "loop" : true,
        "pipYouTube" : true,
        "video" : true
      },
      "platforms" : "All",
      "preset" : "89",
      "title" : "inv.nadeko.net"
    },
    "22" : {
      "isPreset" : false,
      "options" : {
        "extensionEnabled" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "account.proton.me"
    },
    "25" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false,
        "scroll" : true
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "beta.music.apple.com"
    },
    "32" : {
      "isPreset" : true,
      "options" : {
        "css" : "/* http://meyerweb.com/eric/tools/css/reset/ \n   v2.0 | 20110126\n   License: none (public domain)\n*/\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed, \nfigure, figcaption, footer, header, hgroup, \nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure, \nfooter, header, hgroup, menu, nav, section {\n\tdisplay: block;\n}\nbody {\n\tline-height: 1;\n}\nol, ul {\n\tlist-style: none;\n}\nblockquote, q {\n\tquotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}",
        "inheritCSS" : true,
        "js" : ""
      },
      "preset" : "2",
      "title" : "css"
    },
    "33" : {
      "isPreset" : true,
      "options" : {
        "css" : "/* 1. Use a more-intuitive box-sizing model */\n*, *::before, *::after {\n  box-sizing: border-box;\n}\n\n/* 2. Remove default margin */\n*:not(dialog) {\n  margin: 0;\n}\n\n/* 3. Enable keyword animations */\n@media (prefers-reduced-motion: no-preference) {\n  html {\n    interpolate-size: allow-keywords;\n  }\n}\n\nbody {\n  /* 4. Add accessible line-height */\n  line-height: 1.5;\n  /* 5. Improve text rendering */\n  -webkit-font-smoothing: antialiased;\n}\n\n/* 6. Improve media defaults */\nimg, picture, video, canvas, svg {\n  display: block;\n  max-width: 100%;\n}\n\n/* 7. Inherit fonts for form controls */\ninput, button, textarea, select {\n  font: inherit;\n}\n\n/* 8. Avoid text overflows */\np, h1, h2, h3, h4, h5, h6 {\n  overflow-wrap: break-word;\n}\n\n/* 9. Improve line wrapping */\np {\n  text-wrap: pretty;\n}\nh1, h2, h3, h4, h5, h6 {\n  text-wrap: balance;\n}\n\n/*\n  10. Create a root stacking context\n*/\n#root, #__next {\n  isolation: isolate;\n}",
        "js" : ""
      },
      "preset" : "2",
      "title" : "cssr"
    },
    "37" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "195.175.53.114"
    },
    "38" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "mxtoolbox.com"
    },
    "39" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "www.booking.com"
    },
    "40" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "www.rossmann.com.tr"
    },
    "41" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "porkbun.com"
    },
    "44" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "mullvad.net"
    },
    "45" : {
      "isPreset" : false,
      "options" : {
        "audio" : true,
        "loop" : true,
        "pipYouTube" : true,
        "video" : true
      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "invidious.nerdvpn.de"
    },
    "51" : {
      "isPreset" : false,
      "options" : {
        "pullToRefresh" : true,
        "scroll" : true
      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "spotify.com"
    },
    "52" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "app.tuta.com"
    },
    "53" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "booking.com"
    },
    "55" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false,
        "scroll" : true
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "nitter.net"
    },
    "56" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false,
        "scroll" : true
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "apple.com"
    },
    "57" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false,
        "scroll" : true
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "icloud.com"
    },
    "58" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false,
        "pipYouTube" : true,
        "scroll" : true
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "nitter.poast.org"
    },
    "59" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "90",
      "title" : "redlib.catsarch.com"
    },
    "61" : {
      "isPreset" : false,
      "options" : {
        "clipboardWrite" : false,
        "downloads" : false,
        "select" : false
      },
      "platforms" : "All",
      "preset" : "91",
      "title" : "sr.ht"
    },
    "63" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "anonradio.net"
    },
    "64" : {
      "isPreset" : false,
      "options" : {
        "animationJS" : false,
        "audio" : true,
        "loop" : true,
        "video" : true
      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "somafm.com"
    },
    "68" : {
      "isPreset" : false,
      "options" : {
        "audio" : true,
        "pipYouTube" : true
      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "ytify.pp.ua"
    },
    "69" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "duck.ai"
    },
    "70" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "192.168.50.1"
    },
    "71" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "filen.io"
    },
    "75" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "2",
      "title" : "www.forbes.com"
    },
    "76" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "infosec.exchange"
    },
    "77" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "1",
      "title" : "wm.bloat.cat"
    },
    "80" : {
      "isPreset" : true,
      "options" : {
        "animationJS" : true,
        "clipboardWrite" : true,
        "downloads" : true,
        "scroll" : true
      },
      "preset" : "1",
      "title" : "nitter"
    },
    "82" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "80",
      "title" : "shi.meowing.de"
    },
    "83" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "80",
      "title" : "shitter.thepixora.com"
    },
    "84" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "80",
      "title" : "nitter.xitter.cc"
    },
    "85" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "80",
      "title" : "nitter.meowing.monster"
    },
    "87" : {
      "isPreset" : true,
      "options" : {
        "autoplay" : true,
        "clipboardWrite" : true,
        "downloads" : true,
        "loop" : true,
        "navigate" : true,
        "pause" : true,
        "scroll" : true,
        "shadowDeclarative" : true,
        "tabSameSite" : {
          "tabBehavior" : 1
        },
        "video" : true
      },
      "preset" : "1",
      "title" : "mag"
    },
    "88" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "87",
      "title" : "alternativeto.net"
    },
    "89" : {
      "isPreset" : true,
      "options" : {

      },
      "preset" : "1",
      "title" : "media"
    },
    "90" : {
      "isPreset" : true,
      "options" : {
        "animationJS" : true,
        "clipboardWrite" : true,
        "downloads" : true,
        "scroll" : true
      },
      "preset" : "1",
      "title" : "red"
    },
    "91" : {
      "isPreset" : true,
      "options" : {
        "select" : false
      },
      "preset" : "1",
      "title" : "git"
    },
    "92" : {
      "isPreset" : false,
      "options" : {

      },
      "platforms" : "All",
      "preset" : "80",
      "title" : "nitter.mizuki.st"
    },
    "94" : {
      "isPreset" : true,
      "options" : {
        "clipboardWrite" : true
      },
      "preset" : "1",
      "title" : "custom"
    },
    "97" : {
      "isPreset" : true,
      "options" : {
        "select" : false
      },
      "preset" : "1",
      "title" : "map"
    }
  },
  "snippets" : [
    {
      "jsTopFrame" : false,
      "name" : "pip",
      "script" : "javascript:document.querySelector(%22video%22).webkitSetPresentationMode(%22picture-in-picture%22);"
    },
    {
      "jsTopFrame" : false,
      "name" : "html-validator",
      "script" : "javascript:void(document.location='https://validator.nu/?doc='+escape(document.location)+'&showoutline=yes')"
    },
    {
      "jsTopFrame" : false,
      "name" : "to-markdown",
      "script" : "javascript:(function()%7Bjavascript%3A%20(()%20%3D%3E%20%7B%0A%20%20const%20script%20%3D%20document.createElement(%22script%22)%3B%0A%20%20script.type%20%3D%20%22text%2Fjavascript%22%3B%0A%20%20script.src%20%3D%20%22https%3A%2F%2Funpkg.com%2Fturndown%2Fdist%2Fturndown.js%22%3B%0A%20%20script.async%20%3D%20false%3B%0A%20%20script.defer%20%3D%20false%3B%0A%20%20document.head.appendChild(script)%3B%0A%20%20script.addEventListener('load'%2C%20()%20%3D%3E%20%7B%0A%20%20%20%20%20%20const%20selection%20%3D%20window.getSelection()%3B%0A%20%20%20%20%20%20const%20range%20%3D%20selection.getRangeAt(0)%3B%0A%20%20%20%20%20%20const%20turndownService%20%3D%20new%20TurndownService()%3B%0A%20%20%20%20%20%20const%20dummy%20%3D%20document.createElement('div')%3B%0A%20%20%20%20%20%20dummy.appendChild(range.cloneContents())%3B%0A%20%20%20%20%20%20const%20markdown%20%3D%20turndownService.turndown(dummy.innerHTML)%3B%0A%20%20%20%20%20%20const%20final%20%3D%20markdown%20%2B%20'%5Cn%5Cn-%5B'%20%2B%20document.title%20%2B%20'%5D'%20%2B%20'('%20%2B%20location.href%20%2B%20')'%3B%0A%20%20%20%20%20%20navigator.clipboard.writeText(final)%3B%0A%20%20%7D)%0A%7D)()%7D)()\n"
    },
    {
      "jsTopFrame" : false,
      "name" : "rss-find",
      "script" : "javascript:(function(){var feeds=[];var links=document.getElementsByTagName('link');for(var i=0;i<links.length;i++){var link=\"links[i];var\" type=\"link.getAttribute('type');var\" rel=\"link.getAttribute('rel');var\" href=\"link.getAttribute('href');if(href&&(type==='application/rss+xml'||type==='application/atom+xml'||(rel==='alternate'&&(type==='application/rss+xml'||type==='application/atom+xml')))){if(href.indexOf('http')!==0){if(href.startsWith('/')){href=window.location.origin+href;}else{href=window.location.href.substring(0,window.location.href.lastIndexOf('/')+1)+href;}}feeds.push(href);}}if(feeds.length>0){window.open(feeds[0],'_blank');}else{alert('No RSS feeds found on this page.');}})();"
    },
    {
      "jsTopFrame" : false,
      "name" : "url",
      "script" : "javascript:alert(%22URL%3A%22%20+%20location.href)"
    },
    {
      "jsTopFrame" : false,
      "name" : "textastic",
      "script" : "// verify on an iOS device, then swap in URL protocol of Textastic iOS app\nif (/iP(.d|hone)/.test(navigator.userAgent)) {\n    location.href = location.href.replace(/^https?/, 'textastic');\n}"
    },
    {
      "jsTopFrame" : false,
      "name" : "removesticky",
      "script" : "document.querySelectorAll('body *').forEach(function(node) {\nif (['fixed', 'sticky'].includes(getComputedStyle(node) .position))\nnode.parentNode.removeChild(node);\n});\ndocument.querySelectorAll('html *'). forEach(function(node) {\nvar s = getComputedStyle (node);\nif ('hidden' === s.overflow) { node.style.overflow = 'visible'; }\nif ('hidden' === s.overflowX) { node.style.overflowX = 'visible'; }\nif ('hidden' === s.overflowY) { node.style.overflowY = 'visible'; }\n}) ;\nvar htmlNode = document.querySelector('html');\nhtmlNode.style.overflow = 'visible';\nhtmlNode.style.overflowX = 'visible';\nhtmlNode.style.overflowY = 'visible';"
    },
    {
      "jsTopFrame" : false,
      "name" : "lobsters",
      "script" : "javascript:(function()%20%7B%20if%20(document.querySelector('%23comment-view-tabs'))%20return;%20const%20commentsLabel%20=%20document.querySelector('.comments_label');%20const%20commentsContainer%20=%20document.querySelector('ol.comments');%20if%20(!commentsLabel%20%7C%7C%20!commentsContainer)%20%7B%20alert('This%20bookmarklet%20only%20works%20on%20Lobste.rs%20comment%20pages');%20return;%20%7D%20const%20originalCommentsHTML%20=%20commentsContainer.innerHTML;%20function%20getAuthor(element)%20%7B%20const%20links%20=%20element.querySelectorAll('a%5Bhref%5E=%22/~%22%5D');%20for%20(const%20link%20of%20links)%20%7B%20const%20text%20=%20link.textContent?.trim();%20if%20(text)%20return%20text;%20%7D%20return%20null;%20%7D%20function%20extractComments()%20%7B%20const%20comments%20=%20%5B%5D;%20document.querySelectorAll('.comments_subtree').forEach(subtree%20=%3E%20%7B%20const%20comment%20=%20subtree.querySelector(':scope%20%3E%20.comment%5Bid%5E=%22c_%22%5D');%20if%20(!comment)%20return;%20const%20timeEl%20=%20comment.querySelector('time');%20const%20parentSubtree%20=%20subtree.parentElement?.closest('.comments_subtree');%20const%20parentComment%20=%20parentSubtree?.querySelector(':scope%20%3E%20.comment%5Bid%5E=%22c_%22%5D');%20comments.push(%7B%20id:%20comment.id,%20element:%20comment.cloneNode(true),%20author:%20getAuthor(comment),%20timestamp:%20parseInt(timeEl?.getAttribute('data-at-unix')%20%7C%7C%20'0'),%20parentId:%20parentComment?.id%20%7C%7C%20null,%20parentAuthor:%20parentComment%20?%20getAuthor(parentComment)%20:%20null%20%7D);%20%7D);%20return%20comments;%20%7D%20const%20tabsContainer%20=%20document.createElement('div');%20tabsContainer.id%20=%20'comment-view-tabs';%20tabsContainer.innerHTML%20=%20%60%20%3Cstyle%3E%20%23comment-view-tabs%20%7B%20margin:%2010px%200%20%7D%20%23comment-view-tabs%20.tab-buttons%20%7B%20display:%20flex;%20gap:%200%20%7D%20%23comment-view-tabs%20.tab-btn%20%7B%20padding:%208px%2016px;%20border:%201px%20solid%20%23ac0000;%20background:%20white;%20cursor:%20pointer;%20font-size:%2014px;%20color:%20%23ac0000;%20%7D%20%23comment-view-tabs%20.tab-btn:first-child%20%7B%20border-radius:%204px%200%200%204px%20%7D%20%23comment-view-tabs%20.tab-btn:nth-child(2)%20%7B%20border-radius:%200%204px%204px%200;%20border-left:%20none%20%7D%20%23comment-view-tabs%20.tab-btn:last-child%20%7B%20border-radius:%204px;%20margin-left:%20auto%20%7D%20%23comment-view-tabs%20.tab-btn.active%20%7B%20background:%20%23ac0000;%20color:%20white%20%7D%20%23comment-view-tabs%20.tab-btn:hover:not(.active)%20%7B%20background:%20%23f0f0f0%20%7D%20.flat-comment%20%7B%20margin:%200%200%2015px%200%20!important;%20padding:%2010px%20!important;%20border-left:%203px%20solid%20%23ddd%20!important;%20%7D%20.reply-to-link%20%7B%20font-size:%2012px;%20color:%20%23666;%20margin-left:%2010px%20%7D%20.reply-to-link%20a%20%7B%20color:%20%23ac0000;%20text-decoration:%20none%20%7D%20.reply-to-link%20a:hover%20%7B%20text-decoration:%20underline%20%7D%20%3C/style%3E%20%3Cdiv%20class=%22tab-buttons%22%3E%20%3Cbutton%20class=%22tab-btn%20active%22%20data-view=%22default%22%3EDefault%3C/button%3E%20%3Cbutton%20class=%22tab-btn%22%20data-view=%22latest%22%3ELatest%3C/button%3E%20%3Cbutton%20class=%22tab-btn%22%20data-view=%22copy%22%3ECopy%20Thread%3C/button%3E%20%3C/div%3E%20%60;%20const%20byline%20=%20commentsLabel.closest('.byline');%20byline.parentNode.insertBefore(tabsContainer,%20byline.nextSibling);%20function%20switchToDefault(scrollToId)%20%7B%20document.querySelectorAll('.tab-btn').forEach(b%20=%3E%20b.classList.remove('active'));%20document.querySelector('.tab-btn%5Bdata-view=%22default%22%5D').classList.add('active');%20commentsContainer.innerHTML%20=%20originalCommentsHTML;%20if%20(scrollToId)%20%7B%20setTimeout(()%20=%3E%20%7B%20const%20el%20=%20document.getElementById(scrollToId);%20if%20(el)%20%7B%20el.scrollIntoView(%7B%20behavior:%20'smooth',%20block:%20'center'%20%7D);%20el.style.transition%20=%20'background%200.3s';%20el.style.background%20=%20'%23ffffd0';%20setTimeout(()%20=%3E%20el.style.background%20=%20'',%202000);%20%7D%20%7D,%20100);%20%7D%20%7D%20function%20buildFlatView()%20%7B%20const%20comments%20=%20extractComments();%20comments.sort((a,%20b)%20=%3E%20b.timestamp%20-%20a.timestamp);%20const%20flatContainer%20=%20document.createElement('div');%20comments.forEach(c%20=%3E%20%7B%20const%20wrapper%20=%20document.createElement('div');%20wrapper.className%20=%20'flat-comment-wrapper';%20const%20commentEl%20=%20c.element;%20commentEl.classList.add('flat-comment');%20commentEl.style.marginLeft%20=%20'0';%20if%20(c.parentId%20&&%20c.parentAuthor)%20%7B%20const%20byline%20=%20commentEl.querySelector('.byline');%20if%20(byline)%20%7B%20const%20replySpan%20=%20document.createElement('span');%20replySpan.className%20=%20'reply-to-link';%20replySpan.innerHTML%20=%20%60%20%E2%86%A9%20reply%20to%20%3Ca%20href=%22%23$%7Bc.parentId%7D%22%3E@$%7Bc.parentAuthor%7D%3C/a%3E%60;%20byline.appendChild(replySpan);%20%7D%20%7D%20const%20timeLink%20=%20commentEl.querySelector('a%5Bhref%5E=%22/c/%22%5D');%20if%20(timeLink)%20%7B%20const%20commentId%20=%20c.id;%20timeLink.addEventListener('click',%20function(e)%20%7B%20e.preventDefault();%20switchToDefault(commentId);%20%7D);%20%7D%20wrapper.appendChild(commentEl);%20flatContainer.appendChild(wrapper);%20%7D);%20return%20flatContainer;%20%7D%20function%20formatThreadForExport()%20%7B%20const%20result%20=%20%5B%5D;%20const%20storyEl%20=%20document.querySelector('.story_liner');%20const%20storyTitle%20=%20storyEl?.querySelector('.u-url')?.textContent?.trim()%20%7C%7C%20document.title;%20const%20storyAuthor%20=%20storyEl%20?%20getAuthor(storyEl)%20:%20null;%20result.push(%60%5B1%5D%20$%7BstoryAuthor%20%7C%7C%20'Unknown'%7D:%20$%7BstoryTitle%7D%60);%20const%20comments%20=%20extractComments();%20const%20commentMap%20=%20new%20Map();%20comments.forEach(c%20=%3E%20commentMap.set(c.id,%20c));%20function%20buildHierarchy(parentId%20=%20null,%20pathPrefix%20=%20'1')%20%7B%20let%20counter%20=%200;%20const%20children%20=%20comments.filter(c%20=%3E%20c.parentId%20===%20parentId);%20children.forEach(comment%20=%3E%20%7B%20counter++;%20const%20path%20=%20parentId%20===%20null%20?%20%60$%7BpathPrefix%7D.$%7Bcounter%7D%60%20:%20%60$%7BpathPrefix%7D.$%7Bcounter%7D%60;%20const%20author%20=%20comment.author%20%7C%7C%20'Anonymous';%20const%20textEl%20=%20comment.element.querySelector('.comment_text');%20const%20text%20=%20textEl%20?%20textEl.textContent.trim().replace(/%5Cs+/g,%20'%20')%20:%20'';%20result.push(%60%5B$%7Bpath%7D%5D%20$%7Bauthor%7D:%20$%7Btext%7D%60);%20buildHierarchy(comment.id,%20path);%20%7D);%20%7D%20buildHierarchy();%20return%20result.join('%5Cn%5Cn');%20%7D%20let%20flatViewCache%20=%20null;%20const%20tabButtons%20=%20tabsContainer.querySelectorAll('.tab-btn');%20tabButtons.forEach(btn%20=%3E%20%7B%20btn.addEventListener('click',%20()%20=%3E%20%7B%20const%20view%20=%20btn.dataset.view;%20if%20(view%20===%20'copy')%20%7B%20const%20text%20=%20formatThreadForExport();%20navigator.clipboard.writeText(text).then(()%20=%3E%20%7B%20btn.textContent%20=%20'Copied!';%20setTimeout(()%20=%3E%20btn.textContent%20=%20'Copy%20Thread',%202000);%20%7D).catch(()%20=%3E%20%7B%20const%20textarea%20=%20document.createElement('textarea');%20textarea.value%20=%20text;%20document.body.appendChild(textarea);%20textarea.select();%20document.execCommand('copy');%20document.body.removeChild(textarea);%20btn.textContent%20=%20'Copied!';%20setTimeout(()%20=%3E%20btn.textContent%20=%20'Copy%20Thread',%202000);%20%7D);%20return;%20%7D%20tabButtons.forEach(b%20=%3E%20b.classList.remove('active'));%20btn.classList.add('active');%20if%20(view%20===%20'default')%20%7B%20commentsContainer.innerHTML%20=%20originalCommentsHTML;%20%7D%20else%20if%20(view%20===%20'latest')%20%7B%20if%20(!flatViewCache)%20%7B%20flatViewCache%20=%20buildFlatView();%20%7D%20commentsContainer.innerHTML%20=%20'';%20commentsContainer.appendChild(flatViewCache.cloneNode(true));%20commentsContainer.querySelectorAll('a%5Bhref%5E=%22/c/%22%5D').forEach(link%20=%3E%20%7B%20const%20wrapper%20=%20link.closest('.flat-comment-wrapper');%20const%20commentEl%20=%20wrapper?.querySelector('.comment');%20const%20commentId%20=%20commentEl?.id;%20if%20(commentId)%20%7B%20link.addEventListener('click',%20function(e)%20%7B%20e.preventDefault();%20switchToDefault(commentId);%20%7D);%20%7D%20%7D);%20%7D%20%7D);%20%7D);%20%7D)();"
    },
    {
      "jsTopFrame" : false,
      "name" : "grayscale",
      "script" : "javascript:%20(function%20()%20%7B%20document.body.style.filter%20=%20'grayscale(100%25)';%20%7D)();"
    }
  ],
  "stopTheMadnessProExportClient" : "iOS Safari",
  "stopTheMadnessProExportVersion" : "145",
  "trackers" : [
    {
      "domain" : "github.com",
      "enabled" : true,
      "isDefault" : false,
      "name" : "ref",
      "prefix" : false
    },
    {
      "domain" : "git.sr.ht",
      "enabled" : true,
      "isDefault" : false,
      "name" : "ref",
      "prefix" : false
    },
    {
      "domain" : "codeberg.org",
      "enabled" : true,
      "isDefault" : false,
      "name" : "ref",
      "prefix" : false
    },
    {
      "domain" : "gitlab.com",
      "enabled" : true,
      "isDefault" : false,
      "name" : "ref",
      "prefix" : false
    }
  ]
}