Can't rename or create more than one custom userscript script in Tampermonkey -
i trying create 3 userscripts in tampermonkey separate pages. using gui, can click on "add new script", every time save after making changes, re-saves on top of 'my fancy new userscript' , there doesn't seem way of renaming scripts.
perhaps missing something?:)
the name set @name
directive. in tampermonkey, there can never more 1 script same @name
1.
in fact, should examine , change, or delete, every 1 of default @
directives each new script. of clutter (most of time), , it's poor practice have script run on every page @match http://*/*
specifies.
a starter template is:
// ==userscript== // @name _your_script_name // @match http://your_server.com/your_path/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js // @grant gm_addstyle // ==/userscript== /*- @grant directive needed work around design change introduced in gm 1.0. restores sandbox. */
where change @name
, @match
(es) every script.
this template uses jquery local disk (which want serious scripting), , compatible greasemonkey.
1 bit of bug. tampermonkey should follow greasemonkey model, it's @name
+ @namespace
combination has unique.
Comments
Post a Comment