adamyi / wechrome

Chrome extension to unblock web wechat
619 stars 107 forks source link

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details. #11

Open bryanray opened 1 year ago

bryanray commented 1 year ago

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

{ "name": "WeChrome", "version": "1.0", "description": "Unblock web version of WeChat", "permissions": [ "activeTab", "webRequest", "webRequestBlocking", "https://wx.qq.com/", "https://web.wechat.com/", "https://wx2.qq.com/", "https://wx8.qq.com/" ],

"background": { "scripts": ["background.js"] }, "icons": { "16": "images/get_started16.png", "32": "images/get_started32.png", "48": "images/get_started48.png", "128": "images/get_started128.png" }, "manifest_version": 2 <-----------------this part }

lqzhgood commented 1 year ago

v3 改动太大了~

看完文档,写完 Rules ,打包进浏览器报错~ Only standard HTTP request headers that can specify multiple values for a single entry are supported. 关键的自定义头好像不支持了,实现的话貌似要 hack XMLHttpRequest https://stackoverflow.com/questions/73548285/with-chrome-manifest-v3-how-can-i-add-custom-fields-to-request-headers

改了几个小时各种坑,这也不让用,那也不让用……

没错,我就是上来吐槽的 吐槽完毕,我重写一个吧……

T.T

lqzhgood commented 1 year ago

Manifest version 3 Implementation ~

https://github.com/lqzhgood/wechat-need-web

If you are careful enough, you can also discover a little something. ;)