Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JingMatrix opened this issue Mar 18, 2024 · 4 comments
Open

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

JingMatrix opened this issue Mar 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@JingMatrix
Copy link
Owner

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 JingMatrix added the bug Something isn't working label Mar 18, 2024
@JingMatrix
Copy link
Owner Author

JingMatrix commented Mar 20, 2024

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
Copy link
Owner Author

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 added a commit that referenced this issue May 4, 2024
Edge has blocked .user.js from being previewed in the browser.
Hence, we can rename the file extension to be .js (remove .user) to
ensure Edge display the script inside browser.
This partially solves #156, not perfectly.
@JingMatrix
Copy link
Owner Author

JingMatrix commented May 4, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants