Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 43 44 45 46 47 ... 65
Let's say, perhaps, that you are already forwarding your web traffic through an SSH/SOCKS tunnel at work (for privacy reasons that have absolutely no relation to accessing blocked sites LOL!) and you would like to use that same tunnel on your iPhone/...
1 6832 posted 15 years ago by shaunchapman
I made this class because is was fed up with all those strings with escaped quotes with when building html into an output-string. You could also build a php-version of it.
0 664 posted 15 years ago by leonardreinders
A simple JS script to validate a date. It returns a boolean type (true | false)
0 956 posted 15 years ago by mardix
1) if jQuery is already loaded into a browsers' cache -> do nothing 2) if the object is undefined, write a script-element into the source which references google's minified jquery file. 3) if jQuery is still undefined (let's assume Google is down)....
2 921 posted 15 years ago by iroybot
This will only work in FF 3.5 and web-kit browsers after (06/26/2009)
2 661 posted 15 years ago by adamdecaf
This will only work in FF 3.5 and web-kit browsers. (post 06/20/2009)
0 725 posted 15 years ago by adamdecaf
Basic setup code for using SWFObject to embed flash content in a plage.
2 914 posted 15 years ago by irishspacemonk
- a javascript for alternate row/column table striping - supports row hover, column hover and cell hover effects and click events. demo here: http://www.frequency-decoder.com/demo/table-actions/
0 773 posted 15 years ago by beneberle
Does autoscrolling, language translation, RT, via, and short url destination resolution. I think a Mac user made this because it doesn't work for Firefox, IE and Opera, but does in Chrome and Safari.
0 588 posted 15 years ago by rickdog
Namespace to avoid collision with other javascript variable/method names
1 776 posted 15 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance. I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1 735 posted 15 years ago by inkdeep
1 854 posted 15 years ago by arpit
Adds a method to the Array object that lets you slice the array down to everything before the given value.
0 521 posted 15 years ago by segdeha
Enable jQuery on any website, just clicking on a bookmarklet with this code. Or drag & drop this on your bookmark bar: <a href="javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs...
4 850 posted 15 years ago by danielfilho
Assign methods to a Function prototype when you intend to create instances of the type of object. Use object literals when you just need a container for functions.
0 938 posted 15 years ago by segdeha
just testing snipplr.com
0 696 posted 15 years ago by cfleschhut
added ability to use effects and some other improvements.
0 636 posted 15 years ago by pdswan
Adds a class of hasJS to the html element, can be used for CSS styling.
1 1058 posted 15 years ago by 1man
Stub for creating classes in JQuery
0 822 posted 15 years ago by arpit
1 ... 43 44 45 46 47 ... 65