JingMatrix / ChromeXt

UserScript and DevTools supports for Chromium based and WebView based browsers

Home Page:https://jingmatrix.github.io/ChromeXt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install UserScripts (without Eruda) in Edge v122

JingMatrix opened this issue · comments

Edge v122 no longer allows to present JavaScript files inside the browser, so that users of ChromeXt cannot view the scripts before install them.

From the source code in chromium, we have following related information:

  1. Parse text file, third_party/blink/renderer/core/html/parser/text_document_parser.cc
  2. Compute document type, third_party/blink/renderer/core/dom/document_init.cc

Edge has excluded urls ending with user.js from preview. Hence, we may provide a fake filename for these files.
The download triger might locate at libchrome.so.

Currently, to install scripts for Egde, we

  1. download the scripts as asked by the browser;
  2. go to download files in the settings of browser, and rename the script file: change the extention .user.js to .js;
  3. click on the rename file, ChromeXt will then propose to install the script.

Currently, to install scripts for Egde, we

  1. download the scripts as asked by the browser;
  2. go to download files in the settings of browser, and rename the script file: change the extention .user.js to .js;
  3. click on the rename file, ChromeXt will then propose to install the script.

Some scripts still won't install.

https://greasyfork.org/zh-CN/scripts/480094

Some scripts still won't install.

https://greasyfork.org/zh-CN/scripts/480094

Currently, that is really a bug of Edge browser. You could disable ChromeXt and find out that Egde simply cannot deal with files of Chinese names.
I hope the Egde dev team could solve this kind of stupid mistakes.