r/programming • • Jun 09 '16

jQuery 3.0 Released!

https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
1.1k Upvotes

354 comments sorted by

View all comments

Show parent comments

95

u/[deleted] Jun 10 '16

40

u/El_Impresionante Jun 10 '16

Guys, I wrote this function to jQuery to do just that. How do I get the jQuery devs to include it in the main library?

function $_add(n1, n2) {
    result = null;
	$.ajax({
		url : "https://www.google.com/search?q=" + n1.toString() + "%2B" + n2.toString(),
        context: document.body
	})
    .done(function() {
        result = parseInt($(this).find("#cwcot").text());
    });
    return result;
}

5

u/kirbyfan64sos Jun 10 '16

+1 Did not see this coming. At all.

5

u/tasty_cupcakes Jun 10 '16

Can you create a npm package for it? Thx, it's the last thing i need to finish my webscale pacemaker.

22

u/sgraf812 Jun 10 '16

It's this one

-1 not enough jQuery

14

u/sarmatron Jun 10 '16

StackOverflow does shitposts now?

30

u/[deleted] Jun 10 '16

It's not a real post, just a joke.

21

u/Arancaytar Jun 10 '16

Asked a while ago

Viewed some times

11

u/gliph Jun 10 '16

You can tell it's fake because it's not closed topic.

1

u/Fiennes Jun 10 '16

Nah - judging by the layout of the site, it looks pretty ancient.

1

u/[deleted] Jun 10 '16

thanks fellow peasant!! I didn't have to toil bcoz of you.

1

u/gerrywastaken Jun 10 '16

Haha, thank you, that's pretty great.

0

u/twiggy99999 Jun 10 '16

dying laughing at this