Own meta-data block, include jQuery, author #1753

Closed
blammm opened this Issue Jun 21, 2013 · 6 comments

Projects

None yet

5 participants

blammm commented Jun 21, 2013

Hello!
I've problem, because I wanna add to default metablock with script 2 of meta-tags as default(author and required).

I try to do that by editing file greasemonkey.jar(of course browser will closed), but the greasemonkey don't working after this operation.

Is any option to add my own line to default script?

Thanks for replies!

Collaborator

What does "add to default metablock" mean?

And there's been no greasemonkey.jar for quite a long time.

blammm commented Jun 21, 2013

// ==UserScript==
// @name name
// @namespace namespace
// @include http://
// @version 1
// ==/UserScript==

This will be generate, if you will make a new script via menu greasemonkey.

I wanna make this effect:

// ==UserScript==
// @name name
// @namespace namespace
// @include http://
// @version 1
// @require http://
// @author me
// ==/UserScript==

Contributor
cletusc commented Jun 21, 2013

Tampermonkey has the ability to have a custom metadata block for new scripts which means you could have your own default requires, icon, etc. that appear when you start a new script. Consider this a feature request to override the default metadata block that appears when we start a new script.

blammm commented Jun 21, 2013

But is any option to make this effect for firefox? I use only this browser...

Contributor
BrockA commented Jun 23, 2013
Contributor
jerone commented Jun 24, 2013

I'm working on making a pull request for this feature. You can specify your own meta block and parts of it will be replaced by the new script values. Just finishing this off.

@arantius arantius added a commit to arantius/greasemonkey that referenced this issue Jul 24, 2013
@jerone @arantius jerone + arantius Custom meta-data block format. Fixes #1753 a40de47
@arantius arantius added a commit to arantius/greasemonkey that referenced this issue Jul 24, 2013
@arantius arantius Simplify and rename the new user script template.
Refs #1752 Refs #1753
c6ecfbe
@arantius arantius closed this in 3f3914b Jul 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment