<?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>餅と輪 &#187; Google Chrome</title>
	<atom:link href="http://blog.mochiring.net/archives/tag/google-chrome/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mochiring.net</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 14:20:54 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>｢Google Reader Auto Read Ads｣で排除できる広告を追加する</title>
		<link>http://blog.mochiring.net/archives/460</link>
		<comments>http://blog.mochiring.net/archives/460#comments</comments>
		<pubDate>Thu, 07 Jul 2011 03:45:50 +0000</pubDate>
		<dc:creator>Mochi</dc:creator>
				<category><![CDATA[インターネット]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chrome]]></category>

		<guid isPermaLink="false">http://blog.mochiring.net/?p=460</guid>
		<description><![CDATA[｢Google Reader Auto Read Ads｣はタイトルが「PR:」｢AD:｣｢[PR]｣で始まるRSS広告を自動的にクリックして既読にしてくれる、Google Reader用のGreasemonkeyスクリ [...]]]></description>
			<content:encoded><![CDATA[<p>｢<a href="http://userscripts.org/scripts/show/32322" target="_blank">Google Reader Auto Read Ads</a>｣はタイトルが「PR:」｢AD:｣｢[PR]｣で始まるRSS広告を自動的にクリックして既読にしてくれる、Google Reader用のGreasemonkeyスクリプトです。</p>
<p>「PR:」｢AD:｣｢[PR]｣これらが含まれている記事は高さを0にした上で既読にしているようなので、広告が目立たず、フィルタリングとして役に立ちます。この記事では上記の3つで始まるRSS広告だけではなく、タイトル中やタイトル末に特定の言葉が含まれる広告についても排除できるようにする方法を紹介します。(管理者の覚書です)</p>
<p><span id="more-460"></span></p>
<p>スクリプト内の15行目</p>
<p><strong>if (title.textContent.match(/^(PR:|AD:|\[PR\])/i)) {</strong></p>
<p>という行に注目します。この行の<strong>match(/パターン/)</strong>内に書かれている文字列が含まれている記事を広告とみなしています。</p>
<p>パターンは正規表現で書かれています。それでは最初に、今書かれている正規表現の説明に入ります。</p>
<p><strong>^</strong>先頭<br /><strong>()</strong>グループ化<br /><strong>|</strong> 論理和(hogeまたはfooというのようにどれか一つが当てはまれば良い)<br /><strong>i</strong>大文字小文字区別なし<br />\[と\]は[]がメタ文字(正規表現内で使われる特別な文字)のため それと区別するために\が付けられています。つまり、[PR]という文字列を表します。</p>
<p>これらからmatchの中に書かれている正規表現の意味は以下のようになります。</p>
<p><strong>記事タイトルの先頭にPR:またはAD:または[PR]が付いているもの。大文字と小文字を区別しない。 </strong></p>
<p>それでは、排除する広告の追加するための正規表現に入ります。</p>
<p><strong>先頭に特定の文字が含まれる広告</strong></p>
<p>match(/^(PR:|AD:|\[PR\]<strong>|広告</strong>)/i)</p>
<p><strong>|広告</strong>という文字列を追加しました。これで先頭に広告と付いているものに対してもマッチします。</p>
<p><strong>タイトル中に特定の文字が含まれる広告</strong></p>
<p>match(/^(PR:|AD:|\[PR\])<strong>|(広告)</strong>/i)</p>
<p><strong>|(広告)</strong>という文字列を追加しました。広告という一つの文字列しか無いので()を付ける必要はありませんが、分かりやすくするためにつけてあります。個数を増やすのであれば<strong>|(広告|広告2)</strong>というようにしてください。</p>
<p><strong>タイトル末に特定の文字が含まれる広告</strong></p>
<p>match(/^(PR:|AD:|\[PR\])<strong>|(広告)$</strong>/i)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mochiring.net/archives/460/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google ChromeでYouTubeをダウンロード</title>
		<link>http://blog.mochiring.net/archives/133</link>
		<comments>http://blog.mochiring.net/archives/133#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:31:15 +0000</pubDate>
		<dc:creator>Mochi</dc:creator>
				<category><![CDATA[インターネット]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[user script]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://blog.mochiring.net/?p=133</guid>
		<description><![CDATA[YouTube Video Download ダウンロードはこちら｡ このUser Scriptを使用するとYouTubeの動画を簡単にダウンロード､保存することができます｡Downloadは動画のすぐ下の｢お気に入りに [...]]]></description>
			<content:encoded><![CDATA[<p><a title="YouTube Download" href="http://blog.mochiring.net/wp-content/uploads/2010/02/youtube_download.jpg" rel="lightbox[133]"><img class="alignnone size-thumbnail wp-image-134" title="YouTube Download" src="http://blog.mochiring.net/wp-content/uploads/2010/02/youtube_download-425x148.jpg" alt="" width="425" height="148" /></a></p>
<p><span><strong>YouTube Video Download</strong></span></p>
<p>ダウンロードは<a href="http://userscripts.org/scripts/show/62634" target="_blank">こちら</a>｡</p>
<p>このUser Scriptを使用するとYouTubeの動画を簡単にダウンロード､保存することができます｡Downloadは動画のすぐ下の｢お気に入りに追加｣｢この動画を共有｣と書かれている部分に追加されています｡</p>
<p>ご使用は自己責任でお願いします。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mochiring.net/archives/133/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

