<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://calcwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-Wordcount.js</id>
	<title>MediaWiki:Gadget-Wordcount.js - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://calcwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-Wordcount.js"/>
	<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=MediaWiki:Gadget-Wordcount.js&amp;action=history"/>
	<updated>2026-04-06T20:39:40Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://calcwiki.org/index.php?title=MediaWiki:Gadget-Wordcount.js&amp;diff=5814&amp;oldid=prev</id>
		<title>春上冰月：​debug</title>
		<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=MediaWiki:Gadget-Wordcount.js&amp;diff=5814&amp;oldid=prev"/>
		<updated>2016-04-16T12:21:59Z</updated>

		<summary type="html">&lt;p&gt;debug&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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;zh&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年4月16日 (六) 12:21的版本&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-l30&quot;&gt;第30行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第30行：&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;                     &amp;#039;bottom&amp;#039;: &amp;#039;0&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;                     &amp;#039;bottom&amp;#039;: &amp;#039;0&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;                     &amp;#039;margin&amp;#039;: &amp;#039;4px&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;                     &amp;#039;margin&amp;#039;: &amp;#039;4px&amp;#039;,&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;                     &#039;padding&#039;: &#039;6px&#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;padding&#039;: &#039;6px&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    &#039;border&#039;: &#039;1px solid #f9dd34&#039;,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    &#039;background&#039;: &#039;#ffef8f&#039;,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    &#039;border-radius&#039;: &#039;3px&lt;/ins&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;                 })&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;                 })&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;                 .addClass(&amp;#039;wordcount ui-state-highlight ui-corner-all&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;                 .addClass(&amp;#039;wordcount ui-state-highlight ui-corner-all&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key calcwiki-cw_:diff:1.41:old-5788:rev-5814:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>春上冰月</name></author>
	</entry>
	<entry>
		<id>https://calcwiki.org/index.php?title=MediaWiki:Gadget-Wordcount.js&amp;diff=5788&amp;oldid=prev</id>
		<title>Qinyongr：​导入1个版本：from zhwp</title>
		<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=MediaWiki:Gadget-Wordcount.js&amp;diff=5788&amp;oldid=prev"/>
		<updated>2016-04-16T07:45:25Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本：from zhwp&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;    (function($) {&lt;br /&gt;
        function bytecount(text) {&lt;br /&gt;
            text = text.replace(/[\u0000-\u007F]/g, &amp;#039;.&amp;#039;);&lt;br /&gt;
            text = text.replace(/[\u0080-\u07FF\uD800-\uDFFF]/g, &amp;#039;..&amp;#039;);&lt;br /&gt;
            text = text.replace(/[\u0800-\uD7FF\uE000-\uFFFF]/g, &amp;#039;...&amp;#039;);&lt;br /&gt;
            return text.length;&lt;br /&gt;
        };&lt;br /&gt;
        function cjkcount(text) {&lt;br /&gt;
            text = text.replace(/\./g, &amp;#039;&amp;#039;);&lt;br /&gt;
            text = text.replace(/[㐀-\u4dbe一-\u9ffe豈-\ufafe]|[\ud840-\ud868\ud86a-\ud86c][\udc00-\udfff]|\ud869[\udc00-\udede\udf00-\udfff]|\ud86d[\udc00-\udf3e\udf40-\udfff]|\ud86e[\udc00-\udc1e]/g, &amp;#039;.&amp;#039;);&lt;br /&gt;
            text = text.replace(/[^\.]/g, &amp;#039;&amp;#039;);&lt;br /&gt;
            return text.length;&lt;br /&gt;
        };&lt;br /&gt;
        function getwcbytext(text) {&lt;br /&gt;
            return text.length + &amp;#039; character(s) (&amp;#039; + cjkcount(text) + &amp;#039; CJK)&amp;lt;br /&amp;gt;&amp;#039; +&lt;br /&gt;
                bytecount(text) + &amp;#039; byte(s) in &amp;lt;a href=&amp;quot;&amp;#039; + wgScript + &amp;#039;?title=UTF-8&amp;quot;&amp;gt;UTF-8&amp;lt;/a&amp;gt; encoding&amp;#039;;&lt;br /&gt;
        };&lt;br /&gt;
        function getsel() {&lt;br /&gt;
            if (!window.getSelection) return &amp;#039;&amp;#039;;&lt;br /&gt;
            return getSelection().toString();&lt;br /&gt;
        };&lt;br /&gt;
        function dowc(event) {&lt;br /&gt;
            $(&amp;#039;.wordcount&amp;#039;).remove(); // or remove after text.length == 0 checking?&lt;br /&gt;
            var text = getsel();&lt;br /&gt;
            if (text.length == 0) return;&lt;br /&gt;
            var divj = $(&amp;#039;&amp;lt;div /&amp;gt;&amp;#039;).html(getwcbytext(text))&lt;br /&gt;
                .css({&lt;br /&gt;
                    &amp;#039;position&amp;#039;: &amp;#039;fixed&amp;#039;,&lt;br /&gt;
                    &amp;#039;right&amp;#039;: &amp;#039;0&amp;#039;,&lt;br /&gt;
                    &amp;#039;bottom&amp;#039;: &amp;#039;0&amp;#039;,&lt;br /&gt;
                    &amp;#039;margin&amp;#039;: &amp;#039;4px&amp;#039;,&lt;br /&gt;
                    &amp;#039;padding&amp;#039;: &amp;#039;6px&amp;#039;&lt;br /&gt;
                })&lt;br /&gt;
                .addClass(&amp;#039;wordcount ui-state-highlight ui-corner-all&amp;#039;)&lt;br /&gt;
                .appendTo(&amp;#039;body&amp;#039;);&lt;br /&gt;
                // we hook keyup, so this may make it flickering&lt;br /&gt;
                // eg when shift, ctrl.etc key up&lt;br /&gt;
                //.hide().fadeIn(&amp;#039;slow&amp;#039;);&lt;br /&gt;
            setTimeout(function() {&lt;br /&gt;
                divj.fadeOut(&amp;#039;slow&amp;#039;);&lt;br /&gt;
            }, 5000);&lt;br /&gt;
        };&lt;br /&gt;
        $(document).mouseup(dowc).keyup(dowc);&lt;br /&gt;
    })(jQuery);&lt;/div&gt;</summary>
		<author><name>Qinyongr</name></author>
	</entry>
</feed>