[{"data":1,"prerenderedAt":656},["ShallowReactive",2],{"navigation_docs":3,"-match-patterns-installation":133,"-match-patterns-installation-surround":653},[4,22,51,62,73,84,99,118],{"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","/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,115],{"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":48,"path":116,"stem":117},"/proxy-service/api","proxy-service/api",{"title":119,"path":120,"stem":121,"children":122,"page":21},"Storage","/storage","storage",[123,126,130],{"title":28,"path":124,"stem":125},"/storage/installation","storage/0.installation",{"title":127,"path":128,"stem":129},"Typescript","/storage/typescript","storage/1.typescript",{"title":48,"path":131,"stem":132},"/storage/api","storage/api",{"id":134,"title":28,"body":135,"description":185,"extension":648,"links":649,"meta":650,"navigation":388,"path":79,"seo":651,"stem":80,"__hash__":652},"docs/match-patterns/0.installation.md",{"type":136,"value":137,"toc":643},"minimark",[138,159,164,171,174,179,204,242,246,265,345,349,359,578,586,639],[139,140,141,146,147,146,150,146,153,146,156],"p",{},[142,143,145],"badge",{"type":144},"success","MV2"," ",[142,148,149],{"type":144},"MV3",[142,151,152],{"type":144},"Chrome",[142,154,155],{"type":144},"Firefox",[142,157,158],{"type":144},"Safari",[160,161,163],"h2",{"id":162},"overview","Overview",[139,165,166,170],{},[167,168,169],"code",{},"@webext-core/match-patterns"," provides utilities for working with match patterns.",[160,172,28],{"id":173},"installation",[175,176,178],"h6",{"id":177},"npm","NPM",[180,181,186],"pre",{"className":182,"code":183,"language":184,"meta":185,"style":185},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm i @webext-core/match-patterns\n","bash","",[167,187,188],{"__ignoreMap":185},[189,190,193,197,201],"span",{"class":191,"line":192},"line",1,[189,194,196],{"class":195},"sBMFI","pnpm",[189,198,200],{"class":199},"sfazB"," i",[189,202,203],{"class":199}," @webext-core/match-patterns\n",[180,205,209],{"className":206,"code":207,"language":208,"meta":185,"style":185},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { MatchPattern } from '@webext-core/match-patterns';\n","ts",[167,210,211],{"__ignoreMap":185},[189,212,213,217,221,225,228,231,234,236,239],{"class":191,"line":192},[189,214,216],{"class":215},"s7zQu","import",[189,218,220],{"class":219},"sMK4o"," {",[189,222,224],{"class":223},"sTEyZ"," MatchPattern",[189,226,227],{"class":219}," }",[189,229,230],{"class":215}," from",[189,232,233],{"class":219}," '",[189,235,169],{"class":199},[189,237,238],{"class":219},"'",[189,240,241],{"class":219},";\n",[175,243,245],{"id":244},"cdn","CDN",[180,247,249],{"className":182,"code":248,"language":184,"meta":185,"style":185},"curl -o match-patterns.js https://cdn.jsdelivr.net/npm/@webext-core/match-patterns/lib/index.global.js\n",[167,250,251],{"__ignoreMap":185},[189,252,253,256,259,262],{"class":191,"line":192},[189,254,255],{"class":195},"curl",[189,257,258],{"class":199}," -o",[189,260,261],{"class":199}," match-patterns.js",[189,263,264],{"class":199}," https://cdn.jsdelivr.net/npm/@webext-core/match-patterns/lib/index.global.js\n",[180,266,270],{"className":267,"code":268,"language":269,"meta":185,"style":185},"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",[167,271,272,304,313,335],{"__ignoreMap":185},[189,273,274,277,281,285,288,291,294,296,299,301],{"class":191,"line":192},[189,275,276],{"class":219},"\u003C",[189,278,280],{"class":279},"swJcz","script",[189,282,284],{"class":283},"spNyl"," src",[189,286,287],{"class":219},"=",[189,289,290],{"class":219},"\"",[189,292,293],{"class":199},"/match-patterns.js",[189,295,290],{"class":219},[189,297,298],{"class":219},">\u003C/",[189,300,280],{"class":279},[189,302,303],{"class":219},">\n",[189,305,307,309,311],{"class":191,"line":306},2,[189,308,276],{"class":219},[189,310,280],{"class":279},[189,312,303],{"class":219},[189,314,316,319,321,324,327,330,333],{"class":191,"line":315},3,[189,317,318],{"class":283},"  const",[189,320,220],{"class":219},[189,322,323],{"class":223}," MatchPattern ",[189,325,326],{"class":219},"}",[189,328,329],{"class":219}," =",[189,331,332],{"class":223}," webExtCoreMatchPatterns",[189,334,241],{"class":219},[189,336,338,341,343],{"class":191,"line":337},4,[189,339,340],{"class":219},"\u003C/",[189,342,280],{"class":279},[189,344,303],{"class":219},[160,346,348],{"id":347},"usage","Usage",[139,350,351,354,355,358],{},[167,352,353],{},"MatchPattern"," includes one function: ",[167,356,357],{},"includes",". It can be used to check if a URL is included (or matches) the match pattern.",[180,360,362],{"className":206,"code":361,"language":208,"meta":185,"style":185},"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",[167,363,364,384,390,421,449,473,478,505,530,555],{"__ignoreMap":185},[189,365,366,368,370,372,374,376,378,380,382],{"class":191,"line":192},[189,367,216],{"class":215},[189,369,220],{"class":219},[189,371,224],{"class":223},[189,373,227],{"class":219},[189,375,230],{"class":215},[189,377,233],{"class":219},[189,379,169],{"class":199},[189,381,238],{"class":219},[189,383,241],{"class":219},[189,385,386],{"class":191,"line":306},[189,387,389],{"emptyLinePlaceholder":388},true,"\n",[189,391,392,395,398,400,403,406,409,411,414,416,419],{"class":191,"line":315},[189,393,394],{"class":283},"const",[189,396,397],{"class":223}," google ",[189,399,287],{"class":219},[189,401,402],{"class":219}," new",[189,404,224],{"class":405},"s2Zo4",[189,407,408],{"class":223},"(",[189,410,238],{"class":219},[189,412,413],{"class":199},"*://*.google.com",[189,415,238],{"class":219},[189,417,418],{"class":223},")",[189,420,241],{"class":219},[189,422,423,426,429,431,433,435,438,440,442,445],{"class":191,"line":337},[189,424,425],{"class":223},"google",[189,427,428],{"class":219},".",[189,430,357],{"class":405},[189,432,408],{"class":223},[189,434,238],{"class":219},[189,436,437],{"class":199},"https://accounts.google.com",[189,439,238],{"class":219},[189,441,418],{"class":223},[189,443,444],{"class":219},";",[189,446,448],{"class":447},"sHwdD"," // true\n",[189,450,452,454,456,458,460,462,465,467,469,471],{"class":191,"line":451},5,[189,453,425],{"class":223},[189,455,428],{"class":219},[189,457,357],{"class":405},[189,459,408],{"class":223},[189,461,238],{"class":219},[189,463,464],{"class":199},"https://google.com/search?q=test",[189,466,238],{"class":219},[189,468,418],{"class":223},[189,470,444],{"class":219},[189,472,448],{"class":447},[189,474,476],{"class":191,"line":475},6,[189,477,389],{"emptyLinePlaceholder":388},[189,479,481,483,486,488,490,492,494,496,499,501,503],{"class":191,"line":480},7,[189,482,394],{"class":283},[189,484,485],{"class":223}," youtube ",[189,487,287],{"class":219},[189,489,402],{"class":219},[189,491,224],{"class":405},[189,493,408],{"class":223},[189,495,238],{"class":219},[189,497,498],{"class":199},"*://youtube.com/watch",[189,500,238],{"class":219},[189,502,418],{"class":223},[189,504,241],{"class":219},[189,506,508,511,513,515,517,519,522,524,526,528],{"class":191,"line":507},8,[189,509,510],{"class":223},"youtube",[189,512,428],{"class":219},[189,514,357],{"class":405},[189,516,408],{"class":223},[189,518,238],{"class":219},[189,520,521],{"class":199},"https://youtube.com/watch",[189,523,238],{"class":219},[189,525,418],{"class":223},[189,527,444],{"class":219},[189,529,448],{"class":447},[189,531,533,535,537,539,541,543,546,548,550,552],{"class":191,"line":532},9,[189,534,510],{"class":223},[189,536,428],{"class":219},[189,538,357],{"class":405},[189,540,408],{"class":223},[189,542,238],{"class":219},[189,544,545],{"class":199},"https://youtube.com/mrbeast",[189,547,238],{"class":219},[189,549,418],{"class":223},[189,551,444],{"class":219},[189,553,554],{"class":447}," // false\n",[189,556,558,560,562,564,566,568,570,572,574,576],{"class":191,"line":557},10,[189,559,510],{"class":223},[189,561,428],{"class":219},[189,563,357],{"class":405},[189,565,408],{"class":223},[189,567,238],{"class":219},[189,569,437],{"class":199},[189,571,238],{"class":219},[189,573,418],{"class":223},[189,575,444],{"class":219},[189,577,554],{"class":447},[139,579,580,582,583],{},[167,581,357],{}," also accepts URLs and ",[167,584,585],{},"window.location",[180,587,589],{"className":206,"code":588,"language":208,"meta":185,"style":185},"google.includes(new URL('https://google.com'));\ngoogle.includes(window.location);\n",[167,590,591,621],{"__ignoreMap":185},[189,592,593,595,597,599,601,604,607,609,611,614,616,619],{"class":191,"line":192},[189,594,425],{"class":223},[189,596,428],{"class":219},[189,598,357],{"class":405},[189,600,408],{"class":223},[189,602,603],{"class":219},"new",[189,605,606],{"class":405}," URL",[189,608,408],{"class":223},[189,610,238],{"class":219},[189,612,613],{"class":199},"https://google.com",[189,615,238],{"class":219},[189,617,618],{"class":223},"))",[189,620,241],{"class":219},[189,622,623,625,627,629,632,634,637],{"class":191,"line":306},[189,624,425],{"class":223},[189,626,428],{"class":219},[189,628,357],{"class":405},[189,630,631],{"class":223},"(window",[189,633,428],{"class":219},[189,635,636],{"class":223},"location)",[189,638,241],{"class":219},[640,641,642],"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":185,"searchDepth":306,"depth":306,"links":644},[645,646,647],{"id":162,"depth":306,"text":163},{"id":173,"depth":306,"text":28},{"id":347,"depth":306,"text":348},"md",null,{},{"title":28,"description":185},"_W9m5l4_qaSDWWeTICeqiTRI8295DafY8AhvdBBOiGU",[654,655],{"title":48,"path":71,"stem":72,"description":185,"children":-1},{"title":48,"path":82,"stem":83,"description":185,"children":-1},1779305975103]