jQuery and Greasemonkey work fine in Firefox 17 and 18 (as long as you keep the sandbox active); that is not the problem.
- Post and or link to the script that fails!
- Post an SSCCE.
- Follow this checklist (and the "How to ask" guidance).
The only major thing that changed with FF 17, that affected a lot of Greasemonkey scripts, is that Firefox dropped support for E4X.
With E4X, we could use CDATA
to great effect making robust, multiline strings, like so:
GM_addStyle ( (<><![CDATA[
#someNodeID {
position: fixed;
top: 0;
right: 0;
}
]]></>).toString () );
But, now that E4X is no longer supported, we must refactor every bit of code that used CDATA
, to using the javascript string escape (\
), like so:
GM_addStyle ( ' \
#someNodeID { \
position: fixed; \
top: 0; \
right: 0; \
} \
' );
When using that escape, you must pay extra attention to how you mix '
and "
quotes.