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

Importing user scripts is not working. #5354

Closed
4 of 6 tasks
bropines opened this issue Jun 8, 2024 · 7 comments
Closed
4 of 6 tasks

Importing user scripts is not working. #5354

bropines opened this issue Jun 8, 2024 · 7 comments

Comments

@bropines
Copy link

bropines commented Jun 8, 2024

Please answer the following questions for yourself before submitting an issue

  • Filters were updated before reproducing an issue
  • I checked the knowledge base and found no answer
  • I checked to make sure that this issue has not already been filed

AdGuard version

4.5.16

Environment

  • OS version: HyperOS 1.0.2.0
  • Device: Redmi note 12s

HTTPS filtering

  • yes, I do

Root access

  • yes, I have it

Integration with AdGuard VPN

  • yes, I do

Routing mode

Local VPN

Ad Blocking

No response

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Language-specific

No response

Other

No response

Which DNS server do you use?

AdGuard DNS

DNS protocol

None

Custom DNS

No response

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Try to add a user script via a link or file
  2. The administrator will write that the link is incorrect

Expected Behavior

No response

Actual Behavior

It doesn't work)

Screenshots

Screenshot 1

Screenshot_2024-06-08-09-17-08-749_com adguard android

Screenshot 2

Screenshot_2024-06-08-09-23-06-989_com adguard android

Additional Information

No response

@bropines
Copy link
Author

I guess either you're looking for a mistake by the sweat of your brow, or you just forgot)

@maxikuzmin
Copy link
Contributor

maxikuzmin commented Jun 14, 2024

@bropines thank you for the long wait!

Could you please share the link you are trying to add the script from?

I tried adding the script using the link and also using the file - the import works correctly

I used to test this script, you can try adding it for comparison

@bropines
Copy link
Author

But I don’t want anything @maxikuzmin . For some reason your script is added, but mine doesn’t even want to be added from the file.

scrcpy_NUs4tCv4WX.mp4

@maxikuzmin
Copy link
Contributor

@bropines there must be something wrong with your file. Check the file format (it should be .js) Maybe the file path or link path has changed, check that too.

Anyway, the problem is not in the application but in the file/link, otherwise other scripts would not be added as well

@bropines
Copy link
Author

So, no, it wasn't fixed. It’s not even imported from a file, but for the developer (whom I mentioned here) everything magically works. And the question is, either I’m schizoid, or something is broken.

@hymbz
Copy link

hymbz commented Jun 15, 2024

It should be related to @resource.

script.test.mp4

After switching to jsdelivr, scripts can be imported through local files. Is this caused by network issues? However, if I use a URL to import, it can be successfully imported without switching to jsdelivr.

@bropines
Copy link
Author

@maxikuzmin you can add logging (or tell me how to debug) that the import does not work because of the script itself, or the Internet. Now if I write complete nonsense in the script it will just write that the path to the file is not correct, which is quite confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants