FuckYeah is a jQuery plugin that adds awesomeness to any jQuery code.
Download the production version or the development version.
In your web page:
<script src="jquery.js"></script>
<script src="fuckyeah.jquery.min.js"></script>
<script>
$.fuckYeah(); // Yeap!
</script>
This is best jQuery plugin ever. Take a look:
$(function () {
// All you jQuery code is now awesome
}).fuckYeah();
You can boost awesomeness and use fuckYeah()
on every line if you like:
$('#sexy').slideDown('slow').fuckYeah();
$('#sort-button').on('click', function () {
sortState = !sortState;
toggleSort();
}).fuckYeah();
Write your own aliases and get profit. But do not forget fuckYeah()
:
$.fn.noop = $.fn.fuckyeah;
var $more = $('.more');
$more[$more.is(':visible') ? 'fadeTo' : 'noop'](333, 0).fuckYeah();
Even bad code can be improved by fuckYeah:
$('.item .text .link a').click(function () {
var image = $($(this).parent().parent().parent().children()[0]).fuckYeah().html();
});
jQuery (1.0+) is required.
Copyright © 2012 Artem Polikarpov Licensed under the MIT License.
Looking forward for your pull requests with more live examples ;-)