Hello!
I am trying to show jQuery UI Dialog on a page, but somehow the CSS I try to append always gets ignored.
I need to link 2 CSS files to the page in my userscript, but the solutions I can think of do not work well.
The CSS simply is not applied for whatever reason, so only unformatted Test with Close button are displayed.
Is there a way to make this always work with linking the files, or do I have to copy-paste the content of the files into <style> element?
// ==UserScript==
// @name Test
// @namespace namespace21932193210
// @version 1
// ==/UserScript==
'<style id="userScriptCss" type=\'text/css\'>' +
'</style>');
$('body').append('<div id="testDialog">Test</div>');
$( '#testDialog' ).dialog();