Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
blammm opened this Issue · 6 comments

5 participants

blammm arantius Ryan Chatham Brock Jeroen van Warmerdam
blammm

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
Collaborator

What does "add to default metablock" mean?

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

blammm

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

Ryan Chatham

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

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

Jeroen van Warmerdam

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 referenced this issue from a commit in arantius/greasemonkey
Jeroen van Warmerdam jerone Custom meta-data block format. Fixes #1753 a40de47
arantius arantius referenced this issue from a commit in arantius/greasemonkey
arantius arantius Simplify and rename the new user script template.
Refs #1752 Refs #1753
c6ecfbe
arantius arantius closed this in 3f3914b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.