<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://www.iran-pedia.org/w/index.php?action=history&amp;feed=atom&amp;title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C%3AGadget-Commenthighlighter.js</id>
	<title>مدیاویکی:Gadget-Commenthighlighter.js - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://www.iran-pedia.org/w/index.php?action=history&amp;feed=atom&amp;title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C%3AGadget-Commenthighlighter.js"/>
	<link rel="alternate" type="text/html" href="https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Commenthighlighter.js&amp;action=history"/>
	<updated>2026-04-26T12:24:52Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Commenthighlighter.js&amp;diff=2266&amp;oldid=prev</id>
		<title>Rootadmin: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Commenthighlighter.js&amp;diff=2266&amp;oldid=prev"/>
		<updated>2017-12-02T10:45:40Z</updated>

		<summary type="html">&lt;p&gt;۱ نسخه واردشده&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fa&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;نسخهٔ ‏۲ دسامبر ۲۰۱۷، ساعت ۱۲:۴۵&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fa&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(بدون تفاوت)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Rootadmin</name></author>
	</entry>
	<entry>
		<id>https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Commenthighlighter.js&amp;diff=2265&amp;oldid=prev</id>
		<title>Rootadmin: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Commenthighlighter.js&amp;diff=2265&amp;oldid=prev"/>
		<updated>2017-08-29T15:57:54Z</updated>

		<summary type="html">&lt;p&gt;۱ نسخه واردشده&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;//&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
// highlight-comments.js - written by PleaseStand, 2010.&lt;br /&gt;
// Source: http://en.wikipedia.org/wiki/User:PleaseStand/highlight-comments.js&lt;br /&gt;
// NOTE: This script is in the public domain (not copyrighted). For details, see&lt;br /&gt;
// http://en.wikipedia.org/wiki/Template:PD-self&lt;br /&gt;
 &lt;br /&gt;
// DESCRIPTION: Highlights your posts to discussion pages&lt;br /&gt;
// (at least a significant part). This is just the JS part; you need a&lt;br /&gt;
// corresponding CSS line to actually affect text color. An example:&lt;br /&gt;
 &lt;br /&gt;
// .mycomment { background: #ff9; }&lt;br /&gt;
 &lt;br /&gt;
/*global window, document, jQuery, wgFormattedNamespaces, wgUserName,&lt;br /&gt;
HighlightCommentsJsDefault, HighlightCommentsJsDescription */&lt;br /&gt;
&lt;br /&gt;
// Function names&lt;br /&gt;
var HighlightCommentsJsHighlight, HighlightCommentsJsUnhighlight;&lt;br /&gt;
&lt;br /&gt;
// Global variables&lt;br /&gt;
var HighlightCommentsJsWrapped = false, HighlightCommentsJsTries = 40,&lt;br /&gt;
    HighlightCommentsJsSwitch;&lt;br /&gt;
&lt;br /&gt;
HighlightCommentsJsHighlight = function(){&lt;br /&gt;
    // Lists the tags that can contain comments/indented text respectively.&lt;br /&gt;
    var commentTags = &amp;quot;dd,li,p&amp;quot;;&lt;br /&gt;
    var indentTags = &amp;quot;dl,ol,ul&amp;quot;;&lt;br /&gt;
    &lt;br /&gt;
    if(!HighlightCommentsJsWrapped) {&lt;br /&gt;
        // Do the work, adding span wrappers&lt;br /&gt;
        jQuery(&amp;quot;a[title=\&amp;quot;&amp;quot; + (wgFormattedNamespaces[2] + &amp;quot;:&amp;quot; +&lt;br /&gt;
            wgUserName).replace(/&amp;quot;/g, &amp;quot;\\\&amp;quot;&amp;quot;) + &amp;quot;\&amp;quot;]&amp;quot;).closest(commentTags).&lt;br /&gt;
            contents().not(indentTags).&lt;br /&gt;
            wrap(jQuery(&amp;quot;&amp;lt;span class=\&amp;quot;mycomment\&amp;quot;/&amp;gt;&amp;quot;));&lt;br /&gt;
        // Set the flag that wrapping is done&lt;br /&gt;
        HighlightCommentsJsWrapped = true;&lt;br /&gt;
    } else {&lt;br /&gt;
        // Just change the classes&lt;br /&gt;
        jQuery(&amp;quot;.mycomment-off&amp;quot;).removeClass(&amp;quot;mycomment-off&amp;quot;).&lt;br /&gt;
            addClass(&amp;quot;mycomment&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    var ns = null;&lt;br /&gt;
    if(HighlightCommentsJsSwitch) {&lt;br /&gt;
        ns = HighlightCommentsJsSwitch.parentNode.removeChild(HighlightCommentsJsSwitch);&lt;br /&gt;
    }&lt;br /&gt;
    HighlightCommentsJsSwitch = mw.util.addPortletLink(&amp;quot;p-cactions&amp;quot;,&lt;br /&gt;
        &amp;quot;javascript:HighlightCommentsJsUnhighlight()&amp;quot;, &amp;quot;نوشتهٔ من، بدون رنگ&amp;quot;,&lt;br /&gt;
        &amp;quot;ca-highlightcomments&amp;quot;,&lt;br /&gt;
        &amp;quot;Disable highlighting of your own comments on this page&amp;quot;, null, ns);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
HighlightCommentsJsUnhighlight = function(){&lt;br /&gt;
    // Change the classes&lt;br /&gt;
    jQuery(&amp;quot;.mycomment&amp;quot;).removeClass(&amp;quot;mycomment&amp;quot;).addClass(&amp;quot;mycomment-off&amp;quot;);&lt;br /&gt;
    var ns = null;&lt;br /&gt;
    if(HighlightCommentsJsSwitch) {&lt;br /&gt;
        ns = HighlightCommentsJsSwitch.parentNode.removeChild(HighlightCommentsJsSwitch);&lt;br /&gt;
    }&lt;br /&gt;
    HighlightCommentsJsSwitch = mw.util.addPortletLink(&amp;quot;p-cactions&amp;quot;,&lt;br /&gt;
        &amp;quot;javascript:HighlightCommentsJsHighlight()&amp;quot;, &amp;quot;نوشتهٔ من، رنگی&amp;quot;,&lt;br /&gt;
        &amp;quot;ca-highlightcomments&amp;quot;,&lt;br /&gt;
        &amp;quot;Enable highlighting of your own comments on this page&amp;quot;, null, ns);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
function HighlightCommentsJsLoaded() {&lt;br /&gt;
    var desc;&lt;br /&gt;
        &lt;br /&gt;
        if(typeof HighlightCommentsJsDescription == &amp;quot;undefined&amp;quot;) {&lt;br /&gt;
            // Default toolbox link text&lt;br /&gt;
            desc = &amp;quot;Toggle comment highlighting&amp;quot;;&lt;br /&gt;
        } else {&lt;br /&gt;
            // User-defined toolbox link text&lt;br /&gt;
            desc = HighlightCommentsJsDescription;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if(typeof HighlightCommentsJsDefault == &amp;quot;undefined&amp;quot; || !HighlightCommentsJsDefault) {&lt;br /&gt;
            // Create and add the menu item or tab&lt;br /&gt;
            HighlightCommentsJsSwitch = mw.util.addPortletLink(&amp;quot;p-cactions&amp;quot;,&lt;br /&gt;
                &amp;quot;javascript:HighlightCommentsJsHighlight()&amp;quot;, &amp;quot;نوشتهٔ من، رنگی&amp;quot;,&lt;br /&gt;
                &amp;quot;ca-highlightcomments&amp;quot;,&lt;br /&gt;
                &amp;quot;فعال کردن ابزار پررنگ کنندهٔ نظرهای شما در صفحه‌های بحث و نظرخواهی&amp;quot;);&lt;br /&gt;
        } else {&lt;br /&gt;
            HighlightCommentsJsSwitch = null;&lt;br /&gt;
            HighlightCommentsJsHighlight();&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
mw.loader.using( &amp;#039;mediawiki.util&amp;#039;, function () {&lt;br /&gt;
  $(HighlightCommentsJsLoaded);&lt;br /&gt;
} );&lt;br /&gt;
//&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rootadmin</name></author>
	</entry>
</feed>