//function definition

(function ( $ ) {

$.fn.greenify = function() {
this.css( “color”, “green” );
return this;
};

}( jQuery ));

 

//function calling

$( “a” ).greenify();