[{"data":1,"prerenderedAt":650},["ShallowReactive",2],{"navigation_docs":3,"-match-patterns-installation":127,"-match-patterns-installation-surround":647},[4,22,51,62,73,84,99,115],{"title":5,"path":6,"stem":7,"children":8,"page":21},"Get Started","/get-started","0.get-started",[9,13,17],{"title":10,"path":11,"stem":12},"Introduction","/get-started/introduction","0.get-started/0.introduction",{"title":14,"path":15,"stem":16},"Browser Support","/get-started/browser-support","0.get-started/1.browser-support",{"title":18,"path":19,"stem":20},"Contributing","/get-started/contributing","0.get-started/2.contributing",false,{"title":23,"path":24,"stem":25,"children":26,"page":21},"Fake Browser","/fake-browser","fake-browser",[27,31,35,39,43,47],{"title":28,"path":29,"stem":30},"Installation","/fake-browser/installation","fake-browser/0.installation",{"title":32,"path":33,"stem":34},"Testing Frameworks","/fake-browser/testing-frameworks","fake-browser/1.testing-frameworks",{"title":36,"path":37,"stem":38},"Triggering Events","/fake-browser/triggering-events","fake-browser/2.triggering-events",{"title":40,"path":41,"stem":42},"Resetting State","/fake-browser/reseting-state","fake-browser/3.reseting-state",{"title":44,"path":45,"stem":46},"Implemented Apis","/fake-browser/implemented-apis","fake-browser/4.implemented-apis",{"title":48,"path":49,"stem":50},"API Reference","/fake-browser/api","fake-browser/api",{"title":52,"path":53,"stem":54,"children":55,"page":21},"Isolated Element","/isolated-element","isolated-element",[56,59],{"title":28,"path":57,"stem":58},"/isolated-element/installation","isolated-element/0.installation",{"title":48,"path":60,"stem":61},"/isolated-element/api","isolated-element/api",{"title":63,"path":64,"stem":65,"children":66,"page":21},"Job Scheduler","/job-scheduler","job-scheduler",[67,70],{"title":28,"path":68,"stem":69},"/job-scheduler/installation","job-scheduler/0.installation",{"title":48,"path":71,"stem":72},"/job-scheduler/api","job-scheduler/api",{"title":74,"path":75,"stem":76,"children":77,"page":21},"Match Patterns","/match-patterns","match-patterns",[78,81],{"title":28,"path":79,"stem":80},"/match-patterns/installation","match-patterns/0.installation",{"title":48,"path":82,"stem":83},"/match-patterns/api","match-patterns/api",{"title":85,"path":86,"stem":87,"children":88,"page":21},"Messaging","/messaging","messaging",[89,92,96],{"title":28,"path":90,"stem":91},"/messaging/installation","messaging/0.installation",{"title":93,"path":94,"stem":95},"Protocol Maps","/messaging/protocol-maps","messaging/1.protocol-maps",{"title":48,"path":97,"stem":98},"/messaging/api","messaging/api",{"title":100,"path":101,"stem":102,"children":103,"page":21},"Proxy Service","/proxy-service","proxy-service",[104,107,111],{"title":28,"path":105,"stem":106},"/proxy-service/installation","proxy-service/0.installation",{"title":108,"path":109,"stem":110},"Defining Services","/proxy-service/defining-services","proxy-service/1.defining-services",{"title":112,"path":113,"stem":114},"Service Keys","/proxy-service/service-keys","proxy-service/2.service-keys",{"title":116,"path":117,"stem":118,"children":119,"page":21},"Storage","/storage","storage",[120,123],{"title":28,"path":121,"stem":122},"/storage/installation","storage/0.installation",{"title":124,"path":125,"stem":126},"Typescript","/storage/typescript","storage/1.typescript",{"id":128,"title":28,"body":129,"description":179,"extension":642,"links":643,"meta":644,"navigation":382,"path":79,"seo":645,"stem":80,"__hash__":646},"docs/match-patterns/0.installation.md",{"type":130,"value":131,"toc":637},"minimark",[132,153,158,165,168,173,198,236,240,259,339,343,353,572,580,633],[133,134,135,140,141,140,144,140,147,140,150],"p",{},[136,137,139],"badge",{"type":138},"success","MV2"," ",[136,142,143],{"type":138},"MV3",[136,145,146],{"type":138},"Chrome",[136,148,149],{"type":138},"Firefox",[136,151,152],{"type":138},"Safari",[154,155,157],"h2",{"id":156},"overview","Overview",[133,159,160,164],{},[161,162,163],"code",{},"@webext-core/match-patterns"," provides utilities for working with match patterns.",[154,166,28],{"id":167},"installation",[169,170,172],"h6",{"id":171},"npm","NPM",[174,175,180],"pre",{"className":176,"code":177,"language":178,"meta":179,"style":179},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm i @webext-core/match-patterns\n","bash","",[161,181,182],{"__ignoreMap":179},[183,184,187,191,195],"span",{"class":185,"line":186},"line",1,[183,188,190],{"class":189},"sBMFI","pnpm",[183,192,194],{"class":193},"sfazB"," i",[183,196,197],{"class":193}," @webext-core/match-patterns\n",[174,199,203],{"className":200,"code":201,"language":202,"meta":179,"style":179},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { MatchPattern } from '@webext-core/match-patterns';\n","ts",[161,204,205],{"__ignoreMap":179},[183,206,207,211,215,219,222,225,228,230,233],{"class":185,"line":186},[183,208,210],{"class":209},"s7zQu","import",[183,212,214],{"class":213},"sMK4o"," {",[183,216,218],{"class":217},"sTEyZ"," MatchPattern",[183,220,221],{"class":213}," }",[183,223,224],{"class":209}," from",[183,226,227],{"class":213}," '",[183,229,163],{"class":193},[183,231,232],{"class":213},"'",[183,234,235],{"class":213},";\n",[169,237,239],{"id":238},"cdn","CDN",[174,241,243],{"className":176,"code":242,"language":178,"meta":179,"style":179},"curl -o match-patterns.js https://cdn.jsdelivr.net/npm/@webext-core/match-patterns/lib/index.global.js\n",[161,244,245],{"__ignoreMap":179},[183,246,247,250,253,256],{"class":185,"line":186},[183,248,249],{"class":189},"curl",[183,251,252],{"class":193}," -o",[183,254,255],{"class":193}," match-patterns.js",[183,257,258],{"class":193}," https://cdn.jsdelivr.net/npm/@webext-core/match-patterns/lib/index.global.js\n",[174,260,264],{"className":261,"code":262,"language":263,"meta":179,"style":179},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript src=\"/match-patterns.js\">\u003C/script>\n\u003Cscript>\n  const { MatchPattern } = webExtCoreMatchPatterns;\n\u003C/script>\n","html",[161,265,266,298,307,329],{"__ignoreMap":179},[183,267,268,271,275,279,282,285,288,290,293,295],{"class":185,"line":186},[183,269,270],{"class":213},"\u003C",[183,272,274],{"class":273},"swJcz","script",[183,276,278],{"class":277},"spNyl"," src",[183,280,281],{"class":213},"=",[183,283,284],{"class":213},"\"",[183,286,287],{"class":193},"/match-patterns.js",[183,289,284],{"class":213},[183,291,292],{"class":213},">\u003C/",[183,294,274],{"class":273},[183,296,297],{"class":213},">\n",[183,299,301,303,305],{"class":185,"line":300},2,[183,302,270],{"class":213},[183,304,274],{"class":273},[183,306,297],{"class":213},[183,308,310,313,315,318,321,324,327],{"class":185,"line":309},3,[183,311,312],{"class":277},"  const",[183,314,214],{"class":213},[183,316,317],{"class":217}," MatchPattern ",[183,319,320],{"class":213},"}",[183,322,323],{"class":213}," =",[183,325,326],{"class":217}," webExtCoreMatchPatterns",[183,328,235],{"class":213},[183,330,332,335,337],{"class":185,"line":331},4,[183,333,334],{"class":213},"\u003C/",[183,336,274],{"class":273},[183,338,297],{"class":213},[154,340,342],{"id":341},"usage","Usage",[133,344,345,348,349,352],{},[161,346,347],{},"MatchPattern"," includes one function: ",[161,350,351],{},"includes",". It can be used to check if a URL is included (or matches) the match pattern.",[174,354,356],{"className":200,"code":355,"language":202,"meta":179,"style":179},"import { MatchPattern } from '@webext-core/match-patterns';\n\nconst google = new MatchPattern('*://*.google.com');\ngoogle.includes('https://accounts.google.com'); // true\ngoogle.includes('https://google.com/search?q=test'); // true\n\nconst youtube = new MatchPattern('*://youtube.com/watch');\nyoutube.includes('https://youtube.com/watch'); // true\nyoutube.includes('https://youtube.com/mrbeast'); // false\nyoutube.includes('https://accounts.google.com'); // false\n",[161,357,358,378,384,415,443,467,472,499,524,549],{"__ignoreMap":179},[183,359,360,362,364,366,368,370,372,374,376],{"class":185,"line":186},[183,361,210],{"class":209},[183,363,214],{"class":213},[183,365,218],{"class":217},[183,367,221],{"class":213},[183,369,224],{"class":209},[183,371,227],{"class":213},[183,373,163],{"class":193},[183,375,232],{"class":213},[183,377,235],{"class":213},[183,379,380],{"class":185,"line":300},[183,381,383],{"emptyLinePlaceholder":382},true,"\n",[183,385,386,389,392,394,397,400,403,405,408,410,413],{"class":185,"line":309},[183,387,388],{"class":277},"const",[183,390,391],{"class":217}," google ",[183,393,281],{"class":213},[183,395,396],{"class":213}," new",[183,398,218],{"class":399},"s2Zo4",[183,401,402],{"class":217},"(",[183,404,232],{"class":213},[183,406,407],{"class":193},"*://*.google.com",[183,409,232],{"class":213},[183,411,412],{"class":217},")",[183,414,235],{"class":213},[183,416,417,420,423,425,427,429,432,434,436,439],{"class":185,"line":331},[183,418,419],{"class":217},"google",[183,421,422],{"class":213},".",[183,424,351],{"class":399},[183,426,402],{"class":217},[183,428,232],{"class":213},[183,430,431],{"class":193},"https://accounts.google.com",[183,433,232],{"class":213},[183,435,412],{"class":217},[183,437,438],{"class":213},";",[183,440,442],{"class":441},"sHwdD"," // true\n",[183,444,446,448,450,452,454,456,459,461,463,465],{"class":185,"line":445},5,[183,447,419],{"class":217},[183,449,422],{"class":213},[183,451,351],{"class":399},[183,453,402],{"class":217},[183,455,232],{"class":213},[183,457,458],{"class":193},"https://google.com/search?q=test",[183,460,232],{"class":213},[183,462,412],{"class":217},[183,464,438],{"class":213},[183,466,442],{"class":441},[183,468,470],{"class":185,"line":469},6,[183,471,383],{"emptyLinePlaceholder":382},[183,473,475,477,480,482,484,486,488,490,493,495,497],{"class":185,"line":474},7,[183,476,388],{"class":277},[183,478,479],{"class":217}," youtube ",[183,481,281],{"class":213},[183,483,396],{"class":213},[183,485,218],{"class":399},[183,487,402],{"class":217},[183,489,232],{"class":213},[183,491,492],{"class":193},"*://youtube.com/watch",[183,494,232],{"class":213},[183,496,412],{"class":217},[183,498,235],{"class":213},[183,500,502,505,507,509,511,513,516,518,520,522],{"class":185,"line":501},8,[183,503,504],{"class":217},"youtube",[183,506,422],{"class":213},[183,508,351],{"class":399},[183,510,402],{"class":217},[183,512,232],{"class":213},[183,514,515],{"class":193},"https://youtube.com/watch",[183,517,232],{"class":213},[183,519,412],{"class":217},[183,521,438],{"class":213},[183,523,442],{"class":441},[183,525,527,529,531,533,535,537,540,542,544,546],{"class":185,"line":526},9,[183,528,504],{"class":217},[183,530,422],{"class":213},[183,532,351],{"class":399},[183,534,402],{"class":217},[183,536,232],{"class":213},[183,538,539],{"class":193},"https://youtube.com/mrbeast",[183,541,232],{"class":213},[183,543,412],{"class":217},[183,545,438],{"class":213},[183,547,548],{"class":441}," // false\n",[183,550,552,554,556,558,560,562,564,566,568,570],{"class":185,"line":551},10,[183,553,504],{"class":217},[183,555,422],{"class":213},[183,557,351],{"class":399},[183,559,402],{"class":217},[183,561,232],{"class":213},[183,563,431],{"class":193},[183,565,232],{"class":213},[183,567,412],{"class":217},[183,569,438],{"class":213},[183,571,548],{"class":441},[133,573,574,576,577],{},[161,575,351],{}," also accepts URLs and ",[161,578,579],{},"window.location",[174,581,583],{"className":200,"code":582,"language":202,"meta":179,"style":179},"google.includes(new URL('https://google.com'));\ngoogle.includes(window.location);\n",[161,584,585,615],{"__ignoreMap":179},[183,586,587,589,591,593,595,598,601,603,605,608,610,613],{"class":185,"line":186},[183,588,419],{"class":217},[183,590,422],{"class":213},[183,592,351],{"class":399},[183,594,402],{"class":217},[183,596,597],{"class":213},"new",[183,599,600],{"class":399}," URL",[183,602,402],{"class":217},[183,604,232],{"class":213},[183,606,607],{"class":193},"https://google.com",[183,609,232],{"class":213},[183,611,612],{"class":217},"))",[183,614,235],{"class":213},[183,616,617,619,621,623,626,628,631],{"class":185,"line":300},[183,618,419],{"class":217},[183,620,422],{"class":213},[183,622,351],{"class":399},[183,624,625],{"class":217},"(window",[183,627,422],{"class":213},[183,629,630],{"class":217},"location)",[183,632,235],{"class":213},[634,635,636],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":179,"searchDepth":300,"depth":300,"links":638},[639,640,641],{"id":156,"depth":300,"text":157},{"id":167,"depth":300,"text":28},{"id":341,"depth":300,"text":342},"md",null,{},{"title":28,"description":179},"_W9m5l4_qaSDWWeTICeqiTRI8295DafY8AhvdBBOiGU",[648,649],{"title":48,"path":71,"stem":72,"description":179,"children":-1},{"title":48,"path":82,"stem":83,"description":179,"children":-1},1779312967449]