-
Notifications
You must be signed in to change notification settings - Fork 218
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
Failed to get remote content: Invalid URL #519
Comments
It looks like I was wrong about You might want to update the Readme to mention this. |
For the first question, the For the second question, we only support user script URL addresses where For the question about |
Thanks, I got it working the first way using Is there a reason query params aren't supported in the second case? |
I'm not sure, but that provides certainty and security to some extent? We might not normally want user script to be dynamically generated. In any case, you can still do it with something like address rewrite rules. |
By the same token a malicious actor could also use rewrite rules. I don't think this restriction does anything at all to help security. But for now, I guess a rewrite rule will fix my issue. Thanks. |
I've got my userscripts configured to work across browsers (I use Safari for personal stuff and Chrome+TamperMonkey for WebDev). To do this I have a local webserver to serve the files directly. The extension doesn't like this arrangement for some reason. If I try to add the remote
![Screencap2023 07 28 0800](https://private-user-images.githubusercontent.com/5273016/256858444-ca76df31-bb44-45da-ad6e-111f9a0bbbf5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDgxNjQsIm5iZiI6MTczODkwNzg2NCwicGF0aCI6Ii81MjczMDE2LzI1Njg1ODQ0NC1jYTc2ZGYzMS1iYjQ0LTQ1ZGEtYWQ2ZS0xMTFmOWEwYmJiZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDU1NzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzVkZWQ5Y2E5MGFlMDY3NjllMDdhNjI5ZjIyNDQ3M2NjODEwYzI3ZDQ1ZmRlMjcwYTdjOWIyZTZjNTQ0YzRmMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9W8akxAJnCKOMyytcGKYcWb92nml6Ge98XrXV60gMYU)
http://localhost:2400/userscript/disable-fixed-elements.js
the extension replies with "Failed to get remote content".When I fetch that same URL using
curl
it seems to be served properly (unless I'm missing something):Secondly, theres a different but related issue.
I have a tiny PHP script which can serve the JS files. This script simply replaces the @Version number with a file's timestamp so I don't need to worry about forgetting to change it manually. (In TamperMonkey, scripts won't update unless the @Version is incremented - I'm not sure if this is also true about this extension).
To do this I can retrieve the userscript with URLs of the form:
http://localhost:2400/userscript/?file=disable-fixed-elements.js
. In that case, the extension throws an error about it being an invalid URL (I'm, going to take a guess that it's because of the?
perhaps?).I know that the URL works. Here's the output with Curl:
NOTE: I realize this extension doesn't support
@run-at context-menu
but this was just an easy example to paste here. The point is that in both cases, the extension can't even retrieve the script.Thanks for an awesome extension. I'm so glad I don't have to use TamperMonkey on Safari any more.
The text was updated successfully, but these errors were encountered: