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
User scripts for local files ("file:///" protocol) #2693
Comments
The issue you linked is about installing a local |
I'm actually not sure about this. Executing a user script on a |
Conceptually, no. Today we I hope #2549 will help with this, but we have to wait for Firefox to unblock us there. |
Okay, but without Firefox changing something, Violentmonkey already is able to execute scripts on local pages. Are they doing something fundamentally different ? |
Content scripts will run on In the current codebase the only thing preventing scripts from running on [1] @erosman made some good points in regard to local file install workflow. I think it should be considered. |
Is there an update to this? |
Hasn't changed. Should be a quick fix to execute user scripts on I'll post back in a few minutes. |
@Sxderp Thanks Is there an ETA for the release? |
Not that I have any control over. It's when @arantius has the time. |
@arantius Do you have a release date for 4.2? |
GM 4.2beat2 Code:
Result:
Line 190 is not part of |
In what way is this comment related to this issue? |
I thought it was obvious since the subject is ("file:///" protocol) but I updated the above post for clarification. |
Can't reproduce on a Linux box, could you give us a bare working example? My test script. // ==UserScript==
// @name Test File xml
// @version 1
// @grant GM.xmlHttpRequest
// @match file:///*
// ==/UserScript==
function results(xml) {
console.log(xml);
}
console.log(GM);
GM.xmlHttpRequest({'url': 'https://ncgamers.org', 'onload': results}); Console
|
Oops.... apologies .. that was my mistake. I found out the problem (which was with an embedded script version of GM script that I was working on, not GM injected script). Please disregard my post. It seems to be working just fine. |
I believe this can be closed now. |
I know it is stated in the Greasemonkey (4) wiki that "User scripts will not run on documents from any other scheme (ftp, file, etc.) or any other part of about. ", but why is this the case? WebExtensions are able to access local files and Violentmonkey for example is able to execute user scripts on "file:///" pages.
The text was updated successfully, but these errors were encountered: