I have a userscript which accesses a global variable from the website it is running. The variable is:
window.runParams.mainBigPic
The problem is that Firefox (compared to Google Chrome) does not allow access by default to the global variables, see here and here.
CloneInto() and so didn't work. Undefined.
I have to use resource so can't switch to @grant none
// @resource jquiCSS https://code.jquery.com/ui/1.11.2/themes/blitzer/jquery-ui.css
// @grant GM_getResourceText
var jquiCSS = GM_getResourceText ("jquiCSS");
GM_addStyle (jquiCSS);
What way can i access the onsite-variable in my userscript AND use the external Css?