JingMatrix / ChromeXt

UserScript and DevTools supports for Chromium based and WebView based browsers
https://jingmatrix.github.io/ChromeXt/
GNU General Public License v3.0
660 stars 36 forks source link

Unable to install UserScripts (without Eruda) in Edge v122 #156

Open JingMatrix opened 6 months ago

JingMatrix commented 6 months ago

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

JingMatrix commented 6 months ago

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
JingMatrix commented 5 months ago

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.

JingMatrix commented 5 months ago

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.
Zerorigin commented 3 months ago

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

JingMatrix commented 2 months ago

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.