1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[283],{6903:(e,t,n)=>{n.d(t,{A:()=>i});n(6540);var r=n(1176),o=n(4848);function i(){return(0,o.jsx)(r.A.Google,{style:{display:"block",textAlign:"center"},layout:"in-article",format:"fluid",client:"ca-pub-7015533392136941",slot:"7527831842"})}},848:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>l,default:()=>d,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var r=n(8390),o=n(4848),i=n(8453);n(6903);const s={title:"\u5212\u8bcd\u7ffb\u8bd1\u5c06\u5f00\u59cb\u9010\u6b65\u8fc1\u79fb\u5230 Manifest V3",tags:["\u516c\u544a"]},l=void 0,a={authorsImageUrls:[]},c=[{value:"\u8fc1\u79fb\u8fc7\u7a0b",id:"\u8fc1\u79fb\u8fc7\u7a0b",level:2},{value:"\u5f71\u54cd\u5982\u4e0b",id:"\u5f71\u54cd\u5982\u4e0b",level:2},{value:"\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e9b\u5f71\u54cd\uff1f",id:"\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e9b\u5f71\u54cd",level:2},{value:"\u4e3a\u4ec0\u4e48 Edge \u548c Firefox \u4e5f\u4f1a\u53d7\u5230\u5f71\u54cd\uff1f",id:"\u4e3a\u4ec0\u4e48-edge-\u548c-firefox-\u4e5f\u4f1a\u53d7\u5230\u5f71\u54cd",level:2},{value:"\u76f8\u5173\u8d44\u6599",id:"\u76f8\u5173\u8d44\u6599",level:2}];function u(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",ol:"ol",p:"p",ul:"ul",...(0,i.R)(),...e.components},{Details:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.admonition,{title:"\u8fd9\u7bc7\u516c\u544a\u5df2\u7ecf\u5931\u6548",type:"note",children:(0,o.jsxs)(t.p,{children:["\u8bf7\u67e5\u7
170b",(0,o.jsx)(t.a,{href:"/blog/2023/12/15/mv3",children:"\u5173\u4e8e\u8fc1\u79fb Manifest V3 \u7684\u6700\u65b0\u516c\u544a"}),"\u3002"]})}),"\n",(0,o.jsx)(t.p,{children:"Chrome \u5c06\u5728 2023 \u5e74 6 \u6708\u4e0b\u67b6\u5e76\u7981\u7528\u6240\u6709 Manifest V2 \u6269\u5c55\u7a0b\u5e8f\uff0c\u4e3a\u6b64\u5212\u8bcd\u7ffb\u8bd1\u5c06\u5f00\u59cb\u9010\u6b65\u8fc1\u79fb\u5230 Manifest V3\uff0c\u8fd9\u4f1a\u5bf9\u5212\u8bcd\u7ffb\u8bd1\u9020\u6210\u4e00\u4e9b\u5f71\u54cd\u3002"}),"\n",(0,o.jsx)(t.p,{children:"\u867d\u7136\u8fd9\u662f Chrome \u505a\u51fa\u7684\u51b3\u5b9a\uff0c\u4f46 Edge \u548c Firefox \u4e5f\u540c\u6837\u4f1a\u53d7\u5230\u5f71\u54cd\u3002"}),"\n",(0,o.jsx)(t.h2,{id:"\u8fc1\u79fb\u8fc7\u7a0b",children:"\u8fc1\u79fb\u8fc7\u7a0b"}),"\n",(0,o.jsx)(t.p,{children:"\u8fc1\u79fb\u8fc7\u7a0b\u4f1a\u5206\u4e3a\u4e24\u4e2a\u6b65\u9aa4\uff1a"}),"\n",(0,o.jsxs)(t.ol,{children:["\n",(0,o.jsxs)(t.li,{children:["\u5148\u5bf9\u90e8\u5206\u4ee3\u7801\u8fdb\u884c\u6539\u9020\uff0c\u5c3d\u53ef\u80fd\u8ba9\u8fd9\u4e9b\u4ee3\u7801\u53ef\u4ee5\u540c\u65f6\u8fd0\u884c\u5728 Manifest V2 \u548c Manifest V3 \u91cc\u3002","\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"\u6bd4\u5982 v9.1.0 \u91cc\u5bf9\u8c37\u6b4c\u7ffb\u8bd1\u7684\u4ee3\u7801\u505a\u4e86\u6539\u9020\u3001v9.2.0 \u91cc\u5bf9 DeepL \u7684\u4ee3\u7801\u505a\u4e86\u6539\u9020"}),"\n",(0,o.jsxs)(t.li,{children:["\u6539\u5199\u8fc7\u540e\u7684\u4ee3\u7801\u4f1a\u53d1\u5e03\u5230\u5212\u8bcd\u7ffb\u8bd1\u7684\u65b0\u7248\u672c\u5f53\u4e2d\uff0c\u4f60\u4f1a\u7ecf\u5e38\u5728",(0,o.jsx)(t.a,{href:"/docs/log/",children:"\u66f4\u65b0\u65e5\u5fd7"}),"\u91cc\u770b\u5230\u201c\u5bf9\u90e8\u5206\u4ee3\u7801 / xxx \u529f\u80fd\u8fdb\u884c Manifest V3 \u6539\u9020\u201d\u7684\u6761\u76ee\u3002"]}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(t.li,{children:"\u5f53\u5269\u4e0b\u7684\u6539\u9020\u80fd\u4e14\u53ea\u80fd\u5728 Manifest V3 \u91cc\u8fdb\u884c\u65f6\uff0c\u5212\u8bcd\u7ffb\u8bd1\u4f1a\u53d1\u5e03\u4e00\u4e2a\u65b0\u7684\u5927\u7248\u672c\uff08\u521d\u6b65\u8ba1\u5212\u4e3a v11.0.0 \u7248\u672c\uff09\u5e76\u6b63\u5f0f\u5207\u6362\u4e3a Manifest V3\u3002"}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"\u5f71\u54cd\u5982\u4e0b",children:"\u5f71\u54cd\u5982\u4e0b"}),"\n",(0,o.jsx)(t.p,{children:"\u6211\u660e\u767d\u8fd9\u4e9b\u6539\u52a8\u4f1a\u5f71\u54cd\u5230\u4f60\u7684\u4f7f\u7528\u4f53\u9a8c\uff0c\u4f46\u662f\u4e3a\u4e86\u907f\u514d\u88ab Chrome \u4e0b\u67b6 / \u7981\u7528\uff0c\u6211\u4e0d\u5f97\u4e0d\u505a\u8fd9\u4e9b\u4e8b\u60c5\u3002"}),"\n",(0,o.jsx)(t.p,{children:"\u968f\u7740\u8fc1\u79fb\u5de5\u4f5c\u7684\u8fdb\u884c\uff1a"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["\u5212\u8bcd\u7ffb\u8bd1\u53ef\u80fd\u4f1a\u51fa\u73b0 bug\u3002","\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["\u6bd4\u5982 v9.1.0 \u4e2d\u8c37\u6b4c\u7ffb\u8bd1\u4f1a\u51fa\u73b0 ",(0,o.jsx)(t.code,{children:"Unexpected token < in JSON at position 0"})," \u62a5\u9519\u5c31\u662f\u56e0\u4e3a\u6211\u5bf9\u8c37\u6b4c\u7ffb\u8bd1\u7684\u76f8\u5173\u4ee3\u7801\u8fdb\u884c\u4e86 Manifest V3 \u6539\u9020\u3002\u8fd9\u4e2a\u95ee\u9898\u5df2\u5728 v9.1.1 \u4e2d\u4fee\u590d\u3002"]}),"\n",(0,o.jsxs)(t.li,{children:["\u82e5\u5212\u8bcd\u7ffb\u8bd1\u5728\u8fc1\u79fb\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86 bug\uff0c\u4f60\u53ef\u4ee5\u4e34\u65f6\u56de\u9000\u5230\u65e7\u7248\u672c\uff0c\u89c1",(0,o.jsx)(t.a,{href:"/docs/installv2/offline",children:"\u4e0b\u8f7d\u79bb\u7ebf\u5b89\u88c5\u5305\u624b\u52a8\u5b89\u88c5\u5212\u8bcd\u7ffb\u8bd1"}),"\u3002"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"\u5f53\u5212\u8bcd\u7ffb\u8bd1\u5207\u6362\u4e3a Manifest V3 \u4e4b\u540e\uff1a"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["\u4f60\u9700\u8981\u5c06 Chrome / Edge \u6d4f\u89c8\u5668\u5347\u7ea7\u5230\u81f3\u5c11 v109 \u7248\u672c\u624d\u80fd\u8fd0\u884c\u5212\u8bcd\u7ffb\u8bd1\u3002","\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Firefox \u6d4f\u89c8\u5668\u7684\u6700\u4f4e\u7248\u672c\u53f7\u8981\u6c42\u6682\u65f6\u672a\u77e5\u3002"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e9b\u5f71\u54cd",children:"\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e9b\u5f71\u54cd\uff1f"}),"\n",(0,o.jsxs)(n,{children:[(0,o.jsx)("summary",{children:"\u901a\u4fd7\u6613\u61c2\u7684\u89e3\u91ca"}),(0,o.jsx)(t.p,{children:"\u4f60\u53ef\u4ee5\u628a\u5212\u8bcd\u7ffb\u8bd1\u8fd9\u7c7b\u6269\u5c55\u7a0b\u5e8f\u60f3\u8c61\u6210\u201c\u6c7d\u8f66\u201d\uff0c\u628a Chrome \u6d4f\u89c8\u5668\u60f3\u8c61\u6210\u63d0\u4f9b\u201c\u53d1\u52a8\u673a\u201d\u548c\u7ba1\u7406\u6c7d\u8f66\u6807\u51c6\u7684\u4eba\u3002"}),(0,o.jsx)(t.p,{children:"Chrome \u901a\u77e5\u6211\u4eec\u8fd9\u4e9b\u751f\u4ea7\u201c\u6c7d\u8f66\u201d\u7684\u4eba\u8bf4\uff0c\u6211\u4f7f\u7528\u201c\u65e7\u53d1\u52a8\u673a\u201d\uff08\u4ee3\u53f7\u4e3a Manifest V2\uff09\u5f00\u53d1\u7684\u201c\u6c7d\u8f66\u201d\uff0c\u653e\u5728\u73b0\u5728\u4e0d\u7b26\u5408\u8981\u6c42\u4e86\uff08\u6bd4\u5982\u4e0d\u591f\u73af\u4fdd\u3001\u5360\u7528\u592a\u591a\u8d44\u
16e90\u7b49\uff09\uff0c\u6240\u4ee5\u8981\u6c42\u6211\u6362\u6210\u201c\u65b0\u53d1\u52a8\u673a\u201d\uff08\u4ee3\u53f7\u4e3a Manifest V3\uff09\uff0c\u800c Chrome \u4f1a\u5728 2023 \u5e74 6 \u6708\u540e\u7981\u6b62\u6240\u6709\u8fd8\u5728\u7528\u201c\u65e7\u53d1\u52a8\u673a\u201d\u7684\u201c\u6c7d\u8f66\u201d\u4e0a\u8def\u3002"}),(0,o.jsx)(t.p,{children:"\u4f46\u662f\uff0cChrome \u63d0\u4f9b\u7684\u201c\u65b0\u53d1\u52a8\u673a\u201d\u5e76\u4e0d\u517c\u5bb9\u201c\u65e7\u53d1\u52a8\u673a\u201d\uff0c\u4ee5\u81f3\u4e8e\u5347\u7ea7\u6210\u201c\u65b0\u53d1\u52a8\u673a\u201d\u4e0d\u5f97\u4e0d\u5bf9\u8f66\u91cc\u7684\u5f88\u591a\u96f6\u4ef6\u505a\u8c03\u6574\uff0c\u867d\u7136\u5916\u5f62\u4e0a\u6ca1\u6709\u53d8\u5316\uff0c\u4f46\u5185\u90e8\u505a\u4e86\u975e\u5e38\u591a\u7684\u6539\u9020\uff0c\u6240\u4ee5\u96be\u514d\u4f1a\u51fa\u73b0 bug\u3002"})]}),"\n",(0,o.jsxs)(n,{children:[(0,o.jsx)("summary",{children:"\u6280\u672f\u672f\u8bed\u89e3\u91ca"}),(0,o.jsx)(t.p,{children:"\u5728 Manifest V2 \u4e2d\uff0c\u80cc\u666f\u9875\u662f\u4e00\u4e2a\u7f51\u9875\uff0c\u6709 DOM \u73af\u5883\u3001\u80fd\u6301\u7eed\u5b58\u5728\uff0c\u4f46\u5728 Manifest V3 \u4e2d\uff0c\u80cc\u666f\u9875\u53d8\u6210\u4e86 Service Worker\uff0c\u5b83\u6ca1\u6709 DOM \u73af\u5883\uff0c\u6bcf\u9694 5 \u5206\u949f\u8fd8\u4f1a\u88ab Chrome \u5f3a\u5236\u5173\u95ed\u4e00\u6b21\u3002"}),(0,o.jsx)(t.p,{children:"\u4e3a\u6b64\uff0c\u4ee3\u7801\u4e0d\u5f97\u4e0d\u505a\u975e\u5e38\u5927\u7684\u8c03\u6574\u6765\u9002\u914d Service Worker\uff0c\u8fd9\u5c31\u5bfc\u81f4\u4e86\u4ee3\u7801\u4f1a\u51fa\u73b0 bug \u7b49\u3002"}),(0,o.jsxs)(t.p,{children:["\u8be6\u7ec6\u89e3\u91ca\u89c1 ",(0,o.jsx)(t.a,{href:"https://github.com/lmk123/blog/issues/121",children:"https://github.com/lmk123/blog/issues/121"})]})]}),"\n",(0,o.jsx)(t.h2,{id:"\u4e3a\u4ec0\u4e48-edge-\u548c-firefox-\u4e5f\u4f1a\u53d7\u5230\u5f71\u54cd",children:"\u4e3a\u4ec0\u4e48 Edge \u548c Firefox \u4e5f\u4f1a\u53d7\u5230\u5f71\u54cd\uff1f"}),"\n",(0,o.jsx)(t.p,{children:"Edge \u7684\u5185\u6838\u662f Chrome\uff0c\u6240\u4ee5\u5f53 Chrome \u7981\u7528 Manifest V2 \u6269\u5c55\u7a0b\u5e8f\u65f6\uff0cEdge \u4e5f\u540c\u6837\u4f1a\u7981\u7528\u3002"}),"\n",(0,o.jsx)(t.p,{children:"Firefox \u867d\u7136\u6ca1\u6709\u51c6\u5907\u7981\u7528 Manifest V2 \u7684\u6269\u5c55\u7a0b\u5e8f\uff0c\u4f46\u662f\uff1a"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"\u6211\u6ca1\u6709\u7cbe\u529b\u7ef4\u62a4\u4e24\u79cd\u7248\u672c\u7684\u5212\u8bcd\u7ffb\u8bd1\u3002"}),"\n",(0,o.jsx)(t.li,{children:"Firefox \u4e5f\u6b63\u5728\u652f\u6301 Manifest V3\uff0c\u5207\u6362\u5230 Manifest V3 \u662f\u8fdf\u65e9\u7684\u4e8b\u3002"}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"\u76f8\u5173\u8d44\u6599",children:"\u76f8\u5173\u8d44\u6599"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:(0,o.jsx)(t.a,{href:"https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/",children:"Chrome \u5b98\u65b9\u901a\u77e5"})}),"\n"]})]})}function d(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},2115:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6540),s=(r=i)&&r.__esModule?r:{default:r};var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"adsbybaidu"},"TODO")}}]),t}(s.default.Component);t.default=l},8265:(e,t,n)=>
1{Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(6540)),i=s(n(5556));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){window&&(window.adsbygoogle=window.adsbygoogle||[]).push({})}},{key:"render",value:function(){return o.default.createElement("ins",{className:this.props.className+" adsbygoogle",style:this.props.style,"data-ad-client":this.props.client,"data-ad-slot":this.props.slot,"data-ad-layout":this.props.layout,"data-ad-layout-key":this.props.layoutKey,"data-ad-format":this.props.format,"data-full-width-responsive":this.props.responsive})}}]),t}(o.default.Component);t.default=l,l.propTypes={className:i.default.string,style:i.default.object,client:i.default.string.isRequired,slot:i.default.string.isRequired,layout:i.default.string,layoutKey:i.default.string,format:i.default.string,responsive:i.default.string},l.defaultProps={className:"",style:{display:"block"},format:"auto",layout:"",layoutKey:"",responsive:"false"}},1176:(e,t,n)=>{var r=i(n(8265)),o=i(n(2115));function i(e){return e&&e.__esModule?e:{default:e}}var s={Google:r.default,Baidu:o.default};t.A=s},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>l});var r=n(6540);const o={},i=r.createContext(o);function s(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),r.createElement(i.Provider,{value:t},e.children)}},8390:e=>{e.exports=JSON.parse('{"permalink":"/blog/2022/11/27/mv3","editUrl":"/docs/edit-note?blog%2F2022-11-27-mv3.mdx","source":"@site/blog/2022-11-27-mv3.mdx","title":"\u5212\u8bcd\u7ffb\u8bd1\u5c06\u5f00\u59cb\u9010\u6b65\u8fc1\u79fb\u5230 Manifest V3","description":"\u8bf7\u67e5\u7
170b\u5173\u4e8e\u8fc1\u79fb Manifest V3 \u7684\u6700\u65b0\u516c\u544a\u3002","date":"2022-11-27T00:00:00.000Z","tags":[{"inline":true,"label":"\u516c\u544a","permalink":"/blog/tags/\u516c\u544a"}],"readingTime":3.23,"hasTruncateMarker":true,"authors":[],"frontMatter":{"title":"\u5212\u8bcd\u7ffb\u8bd1\u5c06\u5f00\u59cb\u9010\u6b65\u8fc1\u79fb\u5230 Manifest V3","tags":["\u516c\u544a"]},"unlisted":false,"prevItem":{"title":"\u5212\u8bcd\u7ffb\u8bd1 v9.5.0 \u73b0\u5df2\u652f\u6301 ChatGPT \u7ffb\u8bd1","permalink":"/blog/2023/03/02/chatgpt"},"nextItem":{"title":"\u8c37\u6b4c\u7ffb\u8bd1\u4e0d\u80fd\u7528\u7684\u89e3\u51b3\u65b9\u6848","permalink":"/blog/2022/09/28/ggg"}}')}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.