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
Closed

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

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

Comments

@blammm
Copy link

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!

@arantius
Copy link
Collaborator

What does "add to default metablock" mean?

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

@blammm
Copy link
Author

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

@cletusc
Copy link
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
Copy link
Author

blammm commented Jun 21, 2013

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

@BrockA
Copy link
Contributor

BrockA commented Jun 23, 2013

Quick and dirty, temporary workaround at Stack Overflow, "How to change the default metadata in new Greasemonkey scripts?".

@jerone
Copy link
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 pushed 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants