<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://48pedia.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-PrettyDiff.js</id>
	<title>MediaWiki:Gadget-PrettyDiff.js - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://48pedia.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-PrettyDiff.js"/>
	<link rel="alternate" type="text/html" href="https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;action=history"/>
	<updated>2026-07-16T15:44:48Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;diff=61613&amp;oldid=prev</id>
		<title>2016年5月29日 (日) 21:04に48wikiによる</title>
		<link rel="alternate" type="text/html" href="https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;diff=61613&amp;oldid=prev"/>
		<updated>2016-05-29T21:04:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2016年5月30日 (月) 06:04時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;1行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;var DMP_JS_URL = &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;http&lt;/del&gt;://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;google-diff-match-patch&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;googlecode&lt;/del&gt;.com/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;svn&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;trunk&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;javascript&lt;/del&gt;/diff_match_patch.js&#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;var DMP_JS_URL = &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https&lt;/ins&gt;://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cdnjs&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cloudflare&lt;/ins&gt;.com/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ajax&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;libs&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;diff_match_patch/20121119&lt;/ins&gt;/diff_match_patch.js&#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function diff_prettyHtml(a) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function diff_prettyHtml(a) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>48wiki</name></author>
	</entry>
	<entry>
		<id>https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;diff=21161&amp;oldid=prev</id>
		<title>No.name2: ライブプレビューの差分で最初の1回しか動作しない問題の修正</title>
		<link rel="alternate" type="text/html" href="https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;diff=21161&amp;oldid=prev"/>
		<updated>2014-07-05T01:30:47Z</updated>

		<summary type="html">&lt;p&gt;ライブプレビューの差分で最初の1回しか動作しない問題の修正&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2014年7月5日 (土) 10:30時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;25行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;25行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function prettyDiff() {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function prettyDiff() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var $table = $(this);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var $table = $(this);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if ($table.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hasClass&lt;/del&gt;(&#039;pretty-diff&#039;)) return&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if ($table.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;find&lt;/ins&gt;(&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; tbody &amp;gt; tr.&lt;/ins&gt;pretty-diff&#039;)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.length &amp;gt; 0&lt;/ins&gt;) return;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    $table.addClass(&#039;pretty-diff&#039;)&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var dmp = new diff_match_patch();&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var dmp = new diff_match_patch();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var $lineno = $table.find(&amp;#039;&amp;gt; tbody &amp;gt; tr:has(.diff-lineno)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var $lineno = $table.find(&amp;#039;&amp;gt; tbody &amp;gt; tr:has(.diff-lineno)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;37行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;36行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             .map(function() { return $(this).text(); }).get().join(&amp;#039;\n&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             .map(function() { return $(this).text(); }).get().join(&amp;#039;\n&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         $(&#039;&amp;lt;tr/&amp;gt;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         $(&#039;&amp;lt;tr &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;class=&quot;pretty-diff&quot;&lt;/ins&gt;/&amp;gt;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             .append(&amp;#039;&amp;lt;td colspan=&amp;quot;4&amp;quot; style=&amp;quot;border: 1px solid #e6e6e6;&amp;quot;&amp;gt;&amp;#039; +&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             .append(&amp;#039;&amp;lt;td colspan=&amp;quot;4&amp;quot; style=&amp;quot;border: 1px solid #e6e6e6;&amp;quot;&amp;gt;&amp;#039; +&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     diff_prettyHtml(dmp.diff_main(oldStr, newStr)) +&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                     diff_prettyHtml(dmp.diff_main(oldStr, newStr)) +&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>No.name2</name></author>
	</entry>
	<entry>
		<id>https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;diff=21141&amp;oldid=prev</id>
		<title>No.name2: 版間の差分をdiff-match-patchで表示する</title>
		<link rel="alternate" type="text/html" href="https://48pedia.org/index.php?title=MediaWiki:Gadget-PrettyDiff.js&amp;diff=21141&amp;oldid=prev"/>
		<updated>2014-07-05T00:55:24Z</updated>

		<summary type="html">&lt;p&gt;版間の差分をdiff-match-patchで表示する&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;var DMP_JS_URL = &amp;#039;http://google-diff-match-patch.googlecode.com/svn/trunk/javascript/diff_match_patch.js&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
function diff_prettyHtml(a) {&lt;br /&gt;
  var c = /&amp;amp;/g,&lt;br /&gt;
      d = /&amp;lt;/g,&lt;br /&gt;
      e = /&amp;gt;/g,&lt;br /&gt;
      f = /\n/g;&lt;br /&gt;
  return a.map(function(b) {&lt;br /&gt;
    var h = b[0],&lt;br /&gt;
        j = b[1].replace(c, &amp;#039;&amp;amp;amp;&amp;#039;)&lt;br /&gt;
            .replace(d, &amp;#039;&amp;amp;lt;&amp;#039;)&lt;br /&gt;
            .replace(e, &amp;#039;&amp;amp;gt;&amp;#039;)&lt;br /&gt;
            .replace(f, &amp;#039;&amp;amp;para;&amp;lt;br/&amp;gt;&amp;#039;);&lt;br /&gt;
    switch (h) {&lt;br /&gt;
      case 1:&lt;br /&gt;
        return &amp;#039;&amp;lt;ins style=&amp;quot;background-color:#D8ECFF;&amp;quot;&amp;gt;&amp;#039; + j + &amp;#039;&amp;lt;/ins&amp;gt;&amp;#039;;&lt;br /&gt;
      case -1:&lt;br /&gt;
        return &amp;#039;&amp;lt;del style=&amp;quot;background-color:#FEEEC8;&amp;quot;&amp;gt;&amp;#039; + j + &amp;#039;&amp;lt;/del&amp;gt;&amp;#039;;&lt;br /&gt;
      case 0:&lt;br /&gt;
        return j;&lt;br /&gt;
    }&lt;br /&gt;
  }).join(&amp;#039;&amp;#039;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function prettyDiff() {&lt;br /&gt;
    var $table = $(this);&lt;br /&gt;
    if ($table.hasClass(&amp;#039;pretty-diff&amp;#039;)) return;&lt;br /&gt;
    $table.addClass(&amp;#039;pretty-diff&amp;#039;);&lt;br /&gt;
    var dmp = new diff_match_patch();&lt;br /&gt;
    var $lineno = $table.find(&amp;#039;&amp;gt; tbody &amp;gt; tr:has(.diff-lineno)&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
    $lineno.each(function() {&lt;br /&gt;
        var $c = $(this).nextUntil($lineno);&lt;br /&gt;
        var oldStr = $c.find(&amp;#039;&amp;gt; .diff-deletedline, &amp;gt; .diff-context:eq(0)&amp;#039;)&lt;br /&gt;
            .map(function() { return $(this).text(); }).get().join(&amp;#039;\n&amp;#039;);&lt;br /&gt;
        var newStr = $c.find(&amp;#039;&amp;gt; .diff-addedline, &amp;gt; .diff-context:eq(1)&amp;#039;)&lt;br /&gt;
            .map(function() { return $(this).text(); }).get().join(&amp;#039;\n&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
        $(&amp;#039;&amp;lt;tr/&amp;gt;&amp;#039;)&lt;br /&gt;
            .append(&amp;#039;&amp;lt;td colspan=&amp;quot;4&amp;quot; style=&amp;quot;border: 1px solid #e6e6e6;&amp;quot;&amp;gt;&amp;#039; +&lt;br /&gt;
                    diff_prettyHtml(dmp.diff_main(oldStr, newStr)) +&lt;br /&gt;
                    &amp;#039;&amp;lt;/td&amp;gt;&amp;#039;)&lt;br /&gt;
            .insertAfter(this);&lt;br /&gt;
        $c.remove();&lt;br /&gt;
    });&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if (mw.util.getParamValue(&amp;#039;diff&amp;#039;) || $.inArray(mw.config.get(&amp;#039;wgAction&amp;#039;), [&amp;#039;edit&amp;#039;, &amp;#039;submit&amp;#039;]) !== -1) {&lt;br /&gt;
    mw.hook(&amp;#039;wikipage.content&amp;#039;).add(function($content) {&lt;br /&gt;
        $.getScript(DMP_JS_URL, function() {&lt;br /&gt;
            $content.on(&amp;#039;dblclick&amp;#039;, &amp;#039;table.diff&amp;#039;, prettyDiff);&lt;br /&gt;
        });&lt;br /&gt;
    });&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>No.name2</name></author>
	</entry>
</feed>