Ah yeah okay. Thanks.
For the moment, I've changed everything and my config.xml is like:
<UserScriptConfig>
<Script filename="men_preprod_admin.js" name="Men Preprod Admin"
namespace="autolog" description="" enabled="true" basedir="scripts">
<Include>xxxxx</Include>
</Script>
<Script filename="nmb.js" name="NMB" namespace="autolog" description=""
enabled="true" basedir="scripts">
<Include>http://projet.businessdecision.com/login.php</Include>
</Script>
<Script filename="pelican_bo.js" name="Pelican BO" namespace="autolog"
description="" enabled="true" basedir="scripts">
<Include>xxxxx</Include>
<Include>xxxxx</Include>
<Include>http://canal5.dev.backoffice/login.php</Include>
</Script>
</UserScriptConfig>
It means every scripts are in "scripts" folder. and I can easily rename it
now in changing "name".
I'm not enough advanced in greasemonkey to use for the moment GM_setValue().
I have to read the doc.
I mostly use it with jQuery:
// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);
// Check if jQuery's loaded
function GM_wait() {
if(typeof unsafeWindow.jQuery == 'undefined') {
window.setTimeout(GM_wait,100); }
else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();
// All your GM code must be inside this function
function letsJQuery() {
alert($); // check if the dollar (jquery) function works
}
2009/10/5 Anthony Lieuallen <[email protected]>
>
> On 10/05/09 04:48, Kud wrote:
> > Anthony, I don't see the problem with the fact to rename my own js
> > script. As said qufighter, editing config.xml seems enough.
>
> A variety of things, but most importantly, changing the name will
> divorce the script from any previously stored GM_setValue() values.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---