Skip to content

Instantly share code, notes, and snippets.

@kuruma-gs
kuruma-gs / jquery.tap.js
Created August 2, 2011 04:39
jquery.tap.js
/*!
* 2009 Jiayong Ou
*
* License (MIT):
* http://github.com/jou/jquery.tap.js/blob/master/LICENSE
*/
(function(){
jQuery.fn.tap = function(fn /* [callback_arg], [callback_arg], [...] */) {
var args = jQuery.makeArray(arguments);
args.unshift();
@kuruma-gs
kuruma-gs / jquery.url.js
Created August 2, 2011 03:36
jquery.url.js
// JQuery URL Parser plugin - https://github.com/allmarkedup/jQuery-URL-Parser
// Written by Mark Perkins, [email protected]
// License: http://unlicense.org/ (i.e. do what you want with it!)
;(function($, undefined) {
var tag2attr = {
a : 'href',
img : 'src',
form : 'action',