Includes : CheckForUpdate [DISCONTINUED]

By w35l3y Last update Mar 25, 2011 — Installed 75,848 times.

How does @cfu:changelog work?

in
Subscribe to How does @cfu:changelog work? 1 post, 1 voice

w35l3y Script's Author

You need to create a function with three parameters that returns the result of the change log.
1 : Header of the old version
2 : Header of the new version
3 : Content of the new version

For example, lets say you have a multiline header named "@versiontext"
So the changelog function could be something like:

// @cfu:changelog     (function(o, n, t){return 'Change log:\n'+n['versiontext'].join('\n');})

OR
// @cfu:changelog     changeLog

// ...

function changeLog(o, n, t)
{
	return 'Change log:\n'+n['versiontext'].join('\n');
}

I'll give some other examples later.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel