You would be better off having Greasemonkey use its privileged position to read the file contents into a data: URI, then replacing the site style with that data: URI. However, if that's not possible, add this above the default SYSTEM rule
Because of another problem (relative URLs in the CSS), at the moment I am getting the file with GM_xml http Request and fixing the relative URLs before inserting it into the document with GM_add Style
Is that what you were referring to?
Are there any other/better ways of ding it?
Thanks
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
I was actually thinking it might be possible for Greasemonkey to fetch the stylesheet from chrome and not the webpage context...
If your stylesheet includes other resources loaded from http://ip:8000, try instead this more generic rule, above the default SYSTEM rule
And a better way to go about testing stylesheets would be to have Greasemonkey simply *remove* the webpage's current stylesheet, and use Stylish to apply your new style.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
I have Stylish. Problem with Stylish is that it doesn't allow external editor and its own editor is limited.
Anyway, it would be better to work in one environment instead of 2 (GreaseMonkey + Stylish)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
If all else fails, you could try using only the builtin SYSTEM rule, modified as follows: (this is a bad idea, it would be better to figure out the actual problem)
# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL target
Deny
If that doesn't work you've probably found a bug. Please let us know how it goes.
(Note: another possible alternative might be to try leveraging GM_getResourceText somehow instead of reconfiguring ABE... but not sure how or if that would actually work)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
For reference, did you get it to work, and if so, what worked?
Although I use Scriptish not Greasemonkey, as a test I tried injecting stylesheet from my local server into a remote page the way you described above from a user script, and it just worked without *any* reconfiguring of ABE...
Unfortunately I can't post the script here due to spam filter, sorry.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
[ABE] <LOCAL> Deny on {GET http://172.****:8000/*****/style.css <<< http://www.*****/ - 4}
SYSTEM rule:
Site LOCAL
Accept from LOCAL
Deny
As I mentioned in that thread, I am using GM_xml http Request to grab the css from http://172.****:8000/*****/style.css and then insert it
I havent been able to get a rule to work in ABE
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
# NoScript ABE Rule for MiniWeb
Site localhost:8000
Accept from domain
# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0