Skip to content

Instantly share code, notes, and snippets.

View picanteverde's full-sized avatar

Alejandro Hernández picanteverde

View GitHub Profile
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({
CmdUtils.CreateCommand({
name: "fecha",
_date: function(){
var date = new Date();
return date.toLocaleDateString();
},
preview: function( pblock ) {
var msg = 'Fecha de hoy: "<i>${date}</i>"';