Thank you both,
I tried with Stylish, good to know it works on https & local files
Unfortunately, the https website would require some js for regular use.
I guess hosting in https will allow js just like css (for now i have issues
with the https setup)
Le dimanche 17 août 2014 18:38:05 UTC+2, Guillaume K a écrit :
>
> Hi,
>
> I've been using greasemonkey to override several websites CSS
> The script adds an external CSS to the page Head elements, the CSS is
> hosted on my network.
>
> This works usually fine except on several websites, i noticed in https.
>
> My CSS appears in the head of the page, the link is ok (Firefox shows me
> the CSS content), but it's not applied.
>
> The script i use (same script tested on http and https :
>
> if(window.navigator.vendor.match(/Google/)) {
> var doc = document;
> } else {
> var doc = unsafeWindow.document;
> }
>
> var link = window.document.createElement('link');
> link.href = "http://landomainname.com/css/filename.css";
> link.type = "text/css";
> link.rel = "stylesheet";
> document.getElementsByTagName("HEAD")[0].appendChild(link);
>
>
>
> Any idea how to make it work on https websites ?
>
> Thanks in advance
>
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.