Skip to content

Instantly share code, notes, and snippets.

View picanteverde's full-sized avatar

Alejandro Hernández picanteverde

View GitHub Profile
CmdUtils.CreateCommand({
name: "fecha",
_date: function(){
var date = new Date();
return date.toLocaleDateString();
},
preview: function( pblock ) {
var msg = 'Fecha de hoy: "<i>${date}</i>"';
function processNode() {
var href = jQuery(this).attr("href");
if(/[a-z]\:\/\//.exec(href) === null) {
if(href[0] == "/")
jQuery(this).attr("href", "http://www.taringa.net" + href);
}
}
CmdUtils.CreateCommand({