Open GoogleCodeExporter opened 9 years ago
Well I tried to reproduce on mine chromium but without any succes. Do you have
any page where I can see the problem live ?
Thanks in advance
Original comment by wil...@gmail.com
on 17 Sep 2013 at 11:16
Unfortunately I have no live examples. I wrote a little script for my own use
and run it through Tampermonkey.
Here is a link my script would run on though -
http://lebojct.com/Swift-N-Sure/5-11-13-CarWash/images/01.jpg
If you inspect the page using Chrome you see -
<html>
<body style="margin: 0px;">
<img style="-webkit-user-select: none" src="http://lebojct.com/Swift-N-Sure/5-11-13-CarWash/images/01.jpg">
</body>
</html>
There is a <BODY> element, but there is not a <HEAD> element.
So the plugin breaks around line 10 running the code -
styles = document.getElementsByTagName("head")[0].style
There is no <head> element, so document.getElementsByTagName("head") returns
null, and then the plugin stops when trying to execute .style on null.
Original comment by neoj...@gmail.com
on 17 Sep 2013 at 10:38
Ahh hmm ok now i get it :) Still it's weird as a <head></head> element should
be created internally in browser even if not defined explicite, I need to
investigate a bit more. Thanks for finding
Original comment by wil...@gmail.com
on 18 Sep 2013 at 7:37
Ahh I get it, you're using it as/trough extension - in that case a normal
global context might be slighty different. Still there should be other,easy way
to append styles crossbrowse mhmm..
Original comment by wil...@gmail.com
on 18 Sep 2013 at 7:39
Original issue reported on code.google.com by
neoj...@gmail.com
on 10 Sep 2013 at 11:15