Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

@blammm
Copy link

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!

@arantius

This comment has been minimized.

Copy link
Collaborator

commented Jun 21, 2013

What does "add to default metablock" mean?

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

@blammm

This comment has been minimized.

Copy link
Author

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==

@cletusc

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Author

commented Jun 21, 2013

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

@BrockA

This comment has been minimized.

Copy link
Contributor

commented Jun 23, 2013

@jerone

This comment has been minimized.

Copy link
Contributor

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 added a commit to arantius/greasemonkey that referenced this issue Jul 24, 2013
arantius added a commit to arantius/greasemonkey that referenced this issue Jul 24, 2013
@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
Projects
None yet
5 participants
You can’t perform that action at this time.