<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arricc &#187; javascript</title>
	<atom:link href="http://www.arricc.net/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.arricc.net</link>
	<description>50% IT snippets that I couldn&#039;t readily find existing help on. 50% drivel.</description>
	<lastBuildDate>Wed, 02 Mar 2011 23:44:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Greasemonkey</title>
		<link>http://www.arricc.net/greasemonkey-lj-script1.php</link>
		<comments>http://www.arricc.net/greasemonkey-lj-script1.php#comments</comments>
		<pubDate>Wed, 19 Jul 2006 11:14:18 +0000</pubDate>
		<dc:creator>Fizzgig</dc:creator>
				<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Greasemonky]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Livejournal]]></category>

		<guid isPermaLink="false">http://www.arricc.net/greasemonkey.php</guid>
		<description><![CDATA[Quick greasemonkey script to change links to community.livejournal.com/commname to commname.livejournal.com. Based off the &#8220;Always link to full LiveJournal userinfo&#8221; script. Probably doesn&#8217;t take into account a bunch of stuff&#8230; // ==UserScript==// @name&#160; &#160; &#160; &#160; &#160; Change community.livejournal.com/commname ... to commname.livejournal.com// @namespace&#160; &#160; http://livejournal.arricc.net/// @description&#160; Modify links to LJ communities// @include&#160; &#160; &#160; http://*.livejournal.com/*// ==/UserScript==(function(){&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Quick greasemonkey script to change links to community.livejournal.com/commname to commname.livejournal.com. Based off the &#8220;Always link to full LiveJournal userinfo&#8221; script.</p>
<p>Probably doesn&#8217;t take into account a bunch of stuff&#8230;</p>
<p><div class="codeblock"><code><span class="synComment">// ==UserScript==</span><br /><span class="synComment">// @name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change community.livejournal.com/commname ... to commname.livejournal.com</span><br /><span class="synComment">// @namespace&nbsp; &nbsp;  http://livejournal.arricc.net/</span><br /><span class="synComment">// @description&nbsp;  Modify links to LJ communities</span><br /><span class="synComment">// @include&nbsp; &nbsp; &nbsp;  http://*.livejournal.com/*</span><br /><span class="synComment">// ==/UserScript==</span><br />(<span class="synIdentifier">function</span>()<span class="synIdentifier">{</span><br />&nbsp; <span class="synIdentifier">var</span> commRegEx = <span class="synConstant">/^(http:\/\/community\.livejournal\.com)?\/([^/</span><span class="synIdentifier">]</span>+)(<span class="synIdentifier">\</span><span class="synConstant">/)?(.*)/i</span>;<br />&nbsp; <span class="synIdentifier">var</span> l = <span class="synStatement">document</span>.getElementsByTagName(<span class="synConstant">&quot;a&quot;</span>);<br />&nbsp; <span class="synStatement">for</span> (<span class="synIdentifier">var</span> cand = <span class="synStatement">null</span>, i = 0; (cand = l<span class="synIdentifier">[</span>i<span class="synIdentifier">]</span>); i++) <span class="synIdentifier">{</span><br />&nbsp; &nbsp; uim = commRegEx.exec(cand.getAttribute(<span class="synConstant">'href'</span>));<br />&nbsp; &nbsp; <span class="synStatement">if</span> (uim != <span class="synStatement">null</span>) <span class="synIdentifier">{</span><br />&nbsp; &nbsp; &nbsp; cand.setAttribute(<span class="synConstant">'href'</span>,<span class="synConstant">'http://'</span> + uim<span class="synIdentifier">[</span>2<span class="synIdentifier">]</span> + <span class="synConstant">'.livejournal.com/'</span> + uim<span class="synIdentifier">[</span>4<span class="synIdentifier">]</span>);<br />&nbsp; &nbsp; <span class="synIdentifier">}</span><br />&nbsp; <span class="synIdentifier">}</span><br /><span class="synIdentifier">}</span>)();<br /></code></div></p>
<p>Download: <a id="p21" href="wp-content/uploads/changecommunitylivejourn.user.js" title="changecommunitylivejourn.user.js">changecommunitylivejourn.user.js</a></p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="mark@arricc.net" /><input type="hidden" name="return" value="http://www.arricc.net/pp-thanks.php" /><input type="hidden" name="item_name" value="Buy Me a Beer for Greasemonkey" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="5" /><input type="image" src="http://www.arricc.net/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="" title="" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=mark@arricc.net&amp;currency_code=GBP&amp;amount=5&amp;return=http://www.arricc.net/pp-thanks.php&amp;item_name=Buy+Me+a+Beer+for+Greasemonkey" target="paypal">If you find this article useful, buy me a beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.arricc.net/greasemonkey-lj-script1.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

