<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - wizard04</title>
<link>http://snipplr.com/users/wizard04/tags/javascript</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 05:02:50 GMT</pubDate>
<item>
<title>(JavaScript) ISO 8601 date conversion</title>
<link>http://snipplr.com/view/58380/iso-8601-date-conversion/</link>
<description><![CDATA[ <p>This requires my [date formatting script](http://snipplr.com/view/54806/javascript-date-formatting/).

(date).toISO() converts the Date object to an ISO 8601 string

Date.fromISO() converts an ISO 8601 string to a Date object</p> ]]></description>
<pubDate>Fri, 02 Sep 2011 00:28:31 GMT</pubDate>
<guid>http://snipplr.com/view/58380/iso-8601-date-conversion/</guid>
</item>
<item>
<title>(JavaScript) Get time intervals between two Dates</title>
<link>http://snipplr.com/view/58379/get-time-intervals-between-two-dates/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 02 Sep 2011 00:20:57 GMT</pubDate>
<guid>http://snipplr.com/view/58379/get-time-intervals-between-two-dates/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Date Formatting</title>
<link>http://snipplr.com/view/54806/javascript-date-formatting/</link>
<description><![CDATA[ <p>Format a date into a string using several string variables.

Usage:  
(new Date("6/6/2011")).format("%W, %B %d%o, %Y");

Result:  
Monday, June 6th, 2011</p> ]]></description>
<pubDate>Fri, 03 Jun 2011 05:34:36 GMT</pubDate>
<guid>http://snipplr.com/view/54806/javascript-date-formatting/</guid>
</item>
<item>
<title>(JavaScript) typeOf - simple yet robust</title>
<link>http://snipplr.com/view/52051/typeof--simple-yet-robust/</link>
<description><![CDATA[ <p>Brilliant solution using Object.prototype.toString()

Test cases included (commented out)</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 05:30:20 GMT</pubDate>
<guid>http://snipplr.com/view/52051/typeof--simple-yet-robust/</guid>
</item>
<item>
<title>(JavaScript) Cross-browser event registration</title>
<link>http://snipplr.com/view/52041/crossbrowser-event-registration/</link>
<description><![CDATA[ <p>Enhanced cross-browser event handling</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 02:16:14 GMT</pubDate>
<guid>http://snipplr.com/view/52041/crossbrowser-event-registration/</guid>
</item>
<item>
<title>(JavaScript) Mouse Event Button</title>
<link>http://snipplr.com/view/52040/mouse-event-button/</link>
<description><![CDATA[ <p>Returns an object with the `event.button` values of both the W3C and Microsoft models.</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 02:12:49 GMT</pubDate>
<guid>http://snipplr.com/view/52040/mouse-event-button/</guid>
</item>
<item>
<title>(JavaScript) MouseEnter/Leave Handlers 2</title>
<link>http://snipplr.com/view/52039/mouseenterleave-handlers-2/</link>
<description><![CDATA[ <p>These functions allow you to set a handler for a mouseleave/enter event.</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 02:10:05 GMT</pubDate>
<guid>http://snipplr.com/view/52039/mouseenterleave-handlers-2/</guid>
</item>
<item>
<title>(JavaScript) Remove tracking script in Google search results</title>
<link>http://snipplr.com/view/39616/remove-tracking-script-in-google-search-results/</link>
<description><![CDATA[ <p>A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don't understand what the incompatibility is though, since the tracking script just changes the href attribute at the last minute.

Based on a script at [http://www.searchlores.org/ritz\_google\_anti\_snoop.htm](http://www.searchlores.org/ritz_google_anti_snoop.htm).</p> ]]></description>
<pubDate>Fri, 27 Aug 2010 23:31:54 GMT</pubDate>
<guid>http://snipplr.com/view/39616/remove-tracking-script-in-google-search-results/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Type Tests</title>
<link>http://snipplr.com/view/28564/javascript-type-tests/</link>
<description><![CDATA[ <p>A more useful version of `typeof` and functions to test if a parameter is of a specified type.</p> ]]></description>
<pubDate>Thu, 18 Feb 2010 15:31:20 GMT</pubDate>
<guid>http://snipplr.com/view/28564/javascript-type-tests/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Classes</title>
<link>http://snipplr.com/view/27256/javascript-classes/</link>
<description><![CDATA[ <p>An implementation of class inheritance in JavaScript.</p> ]]></description>
<pubDate>Thu, 28 Jan 2010 16:44:35 GMT</pubDate>
<guid>http://snipplr.com/view/27256/javascript-classes/</guid>
</item>
<item>
<title>(JavaScript) Reset 'undefined' Variable</title>
<link>http://snipplr.com/view/22506/reset-undefined-variable/</link>
<description><![CDATA[ <p>`undefined` is simply an undefined global variable. It is not a literal or a constant, though it is often used as if it is. Its value can be changed. To be sure its type is actually "undefined", redefine it at the beginning of your script files.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 14:45:54 GMT</pubDate>
<guid>http://snipplr.com/view/22506/reset-undefined-variable/</guid>
</item>
<item>
<title>(JavaScript) User-Script Location Bar Hack</title>
<link>http://snipplr.com/view/22474/userscript-location-bar-hack/</link>
<description><![CDATA[ <p>Runs a function from the address bar (like a bookmarklet). This can be used in Greasemonkey scripts to get around an XPCNativeWrapper object without accessing unsafeWindow.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 09:13:50 GMT</pubDate>
<guid>http://snipplr.com/view/22474/userscript-location-bar-hack/</guid>
</item>
<item>
<title>(JavaScript) Google Translate Bookmarklet</title>
<link>http://snipplr.com/view/22299/google-translate-bookmarklet/</link>
<description><![CDATA[ <p>Select some text to translate, or don't select anything to translate the entire page.</p> ]]></description>
<pubDate>Sun, 01 Nov 2009 23:33:59 GMT</pubDate>
<guid>http://snipplr.com/view/22299/google-translate-bookmarklet/</guid>
</item>
<item>
<title>(Regular Expression) Regex for "tel" URIs</title>
<link>http://snipplr.com/view/11540/regex-for-tel-uris/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 26 Jan 2009 16:03:11 GMT</pubDate>
<guid>http://snipplr.com/view/11540/regex-for-tel-uris/</guid>
</item>
<item>
<title>(JavaScript) Sort Gmail Messages by Subject</title>
<link>http://snipplr.com/view/10432/sort-gmail-messages-by-subject/</link>
<description><![CDATA[ <p>This is a very simple bookmarklet that will temporarily sort the *visible* messages in Gmail by subject. You'll have to run it again each time Gmail refreshes the list.

[Sort Gmail Messages](javascript:(function(&amp;#41;{function%20f(r&amp;#41;{var%20t=r.getElementsByTagName(&amp;#34;td&amp;#34;&amp;#41;;var%20d,s;var%20i,j;for(i=0;i</p> ]]></description>
<pubDate>Fri, 12 Dec 2008 11:01:21 GMT</pubDate>
<guid>http://snipplr.com/view/10432/sort-gmail-messages-by-subject/</guid>
</item>
<item>
<title>(JavaScript) MouseEnter/Leave Handlers</title>
<link>http://snipplr.com/view/8913/mouseenterleave-handlers/</link>
<description><![CDATA[ <p>These functions allow you to easily set a handler for a virtual mouseleave/enter event.

This requires my [MouseBoundaryCrossing](http://snipplr.com/view/8206/crossbrowser-mouseenterleave-solution/) class.</p> ]]></description>
<pubDate>Thu, 09 Oct 2008 15:41:54 GMT</pubDate>
<guid>http://snipplr.com/view/8913/mouseenterleave-handlers/</guid>
</item>
<item>
<title>(JavaScript) Snipplr Plain/Highlighted Text Greasemonkey Script</title>
<link>http://snipplr.com/view/8554/snipplr-plainhighlighted-text-greasemonkey-script/</link>
<description><![CDATA[ <p>When you're viewing an older version of a snippet, the Plain Text and Highlighted Text links point back to the latest version.  This greasemonkey script fixes those links to point to the version you're currently viewing.</p> ]]></description>
<pubDate>Tue, 23 Sep 2008 12:20:25 GMT</pubDate>
<guid>http://snipplr.com/view/8554/snipplr-plainhighlighted-text-greasemonkey-script/</guid>
</item>
<item>
<title>(JavaScript) Millisecond Equivalent of Time Interval</title>
<link>http://snipplr.com/view/8431/millisecond-equivalent-of-time-interval/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Sep 2008 14:32:43 GMT</pubDate>
<guid>http://snipplr.com/view/8431/millisecond-equivalent-of-time-interval/</guid>
</item>
<item>
<title>(JavaScript) PPK's Browser Detect</title>
<link>http://snipplr.com/view/8354/ppks-browser-detect/</link>
<description><![CDATA[ <p>Modified just a bit. This version includes the Google Chrome beta.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 16:27:18 GMT</pubDate>
<guid>http://snipplr.com/view/8354/ppks-browser-detect/</guid>
</item>
<item>
<title>(JavaScript) JavaScript labels</title>
<link>http://snipplr.com/view/8255/javascript-labels/</link>
<description><![CDATA[ <p>Just some pseudo-code notes about using labels with `break` and `continue` statements.</p> ]]></description>
<pubDate>Mon, 08 Sep 2008 15:29:59 GMT</pubDate>
<guid>http://snipplr.com/view/8255/javascript-labels/</guid>
</item>
</channel>
</rss>