<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=User%3ABot_doubleredirects%2FGadget-DoubleRedirectFixer.js</id>
	<title>User:Bot doubleredirects/Gadget-DoubleRedirectFixer.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=User%3ABot_doubleredirects%2FGadget-DoubleRedirectFixer.js"/>
	<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;action=history"/>
	<updated>2026-04-09T20:17:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=15463&amp;oldid=prev</id>
		<title>Bot doubleredirects at 15:34, 20 March 2026</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=15463&amp;oldid=prev"/>
		<updated>2026-03-20T15:34:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;amp;diff=15463&amp;amp;oldid=11707&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11707&amp;oldid=prev</id>
		<title>Bot doubleredirects at 14:49, 10 July 2025</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11707&amp;oldid=prev"/>
		<updated>2025-07-10T14:49:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;amp;diff=11707&amp;amp;oldid=11706&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11706&amp;oldid=prev</id>
		<title>Bot doubleredirects at 14:47, 10 July 2025</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11706&amp;oldid=prev"/>
		<updated>2025-07-10T14:47:35Z</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;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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:47, 10 July 2025&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-l55&quot;&gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&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;     const extractAnchorFromContent = (content) =&amp;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;     const extractAnchorFromContent = (content) =&amp;gt; {&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;         const match = content.match(/#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;הפניה&lt;/del&gt;\s*\[\[[^\]]+?(?:#(.+?))?\]\]/);&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;         const match = content.match(/#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;REDIRECT&lt;/ins&gt;\s*\[\[[^\]]+?(?:#(.+?))?\]\]/);&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;         return match?.[1] ? &amp;quot;#&amp;quot; + match[1] : &amp;quot;&amp;quot;;&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;         return match?.[1] ? &amp;quot;#&amp;quot; + match[1] : &amp;quot;&amp;quot;;&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l104&quot;&gt;Line 104:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 104:&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;quot;tags&amp;quot; הוסרו לחלוטין כאן.**&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;quot;tags&amp;quot; הוסרו לחלוטין כאן.**&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;                 title: title,&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;                 title: title,&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;                 text: &quot;#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;הפניה &lt;/del&gt;[[&quot; + target + &quot;]]&quot;,&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;                 text: &quot;#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;REDIRECT &lt;/ins&gt;[[&quot; + target + &quot;]]&quot;,&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;                 summary: &amp;quot;בוט: מתקן הפניה כפולה ל- [[&amp;quot; + target + &amp;quot;]]&amp;quot;,&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;                 summary: &amp;quot;בוט: מתקן הפניה כפולה ל- [[&amp;quot; + target + &amp;quot;]]&amp;quot;,&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;!-- diff cache key chabadpedia_en:diff:1.41:old-11705:rev-11706:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11705&amp;oldid=prev</id>
		<title>Bot doubleredirects at 14:42, 10 July 2025</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11705&amp;oldid=prev"/>
		<updated>2025-07-10T14:42:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;amp;diff=11705&amp;amp;oldid=11622&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11622&amp;oldid=prev</id>
		<title>Bot doubleredirects at 16:28, 30 June 2025</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11622&amp;oldid=prev"/>
		<updated>2025-06-30T16:28:50Z</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;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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:28, 30 June 2025&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;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 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;   &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;const BOT_USERS &lt;/del&gt;= &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[6163];&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;   &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(() &lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; {&lt;/ins&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;   const api = new mw.Api();&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;   const api = new mw.Api();&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;!-- diff cache key chabadpedia_en:diff:1.41:old-11621:rev-11622:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11621&amp;oldid=prev</id>
		<title>Bot doubleredirects at 16:26, 30 June 2025</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11621&amp;oldid=prev"/>
		<updated>2025-06-30T16:26: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;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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:26, 30 June 2025&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-l40&quot;&gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&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;       if (page.ns) {&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;       if (page.ns) {&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;         const namespacePrefixes = {&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;         const namespacePrefixes = {&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;           4: &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;המכלול&lt;/del&gt;:&quot;,&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;           4: &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;chabadpedia&lt;/ins&gt;:&quot;,&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;           6: &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;קובץ&lt;/del&gt;:&quot;,&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;           6: &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/ins&gt;:&quot;,&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;           10: &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;תבנית&lt;/del&gt;:&quot;,&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;           10: &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Template&lt;/ins&gt;:&quot;,&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;           12: &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;עזרה&lt;/del&gt;:&quot;,&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;           12: &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Help&lt;/ins&gt;:&quot;,&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;         return namespacePrefixes[page.ns] ?? &amp;quot;&amp;quot;;&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;         return namespacePrefixes[page.ns] ?? &amp;quot;&amp;quot;;&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-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&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;         bot: true,&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;         bot: true,&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;         title: title,&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;         title: title,&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;         text: `#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;הפניה &lt;/del&gt;[[${target}]]`,&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;         text: `#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;REDIRECT &lt;/ins&gt;[[${target}]]`,&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;       mw.notify(`\nstatus:${title} succes`);&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;       mw.notify(`\nstatus:${title} succes`);&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-l98&quot;&gt;Line 98:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 98:&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;     if (!userGroups.includes(&amp;quot;bot&amp;quot;) &amp;amp;&amp;amp; !BOT_USERS.includes(userId)) return;&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;     if (!userGroups.includes(&amp;quot;bot&amp;quot;) &amp;amp;&amp;amp; !BOT_USERS.includes(userId)) 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;     if (pageName !== &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;מיוחד&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;הפניות_כפולות&lt;/del&gt;&quot;) return;&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 (pageName !== &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Special&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;DoubleRedirects&lt;/ins&gt;&quot;) return;&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;     const num = prompt(&amp;quot;? כמה הפניות כפולות להציג&amp;quot;, 0);&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;     const num = prompt(&amp;quot;? כמה הפניות כפולות להציג&amp;quot;, 0);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key chabadpedia_en:diff:1.41:old-11620:rev-11621:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11620&amp;oldid=prev</id>
		<title>Bot doubleredirects at 16:13, 30 June 2025</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11620&amp;oldid=prev"/>
		<updated>2025-06-30T16:13:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;amp;diff=11620&amp;amp;oldid=11600&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11600&amp;oldid=prev</id>
		<title>Bot doubleredirects: Created page with &quot;// קרדיט: המכלול (גרסה משופרת - מאפשרת הרצה לכל משתמש מחובר) (() =&gt; {     const api = new mw.Api();      /**      * מקבל את תוכן דף ההפניה.      * @param {string} title - שם הדף.      * @returns {Promise&lt;string|null&gt;} תוכן הדף או null אם הייתה שגיאה.      */     const getRedirectContent = async (title) =&gt; {         try {             const response = await api.get({                 pro...&quot;</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=User:Bot_doubleredirects/Gadget-DoubleRedirectFixer.js&amp;diff=11600&amp;oldid=prev"/>
		<updated>2025-06-29T17:21:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;// קרדיט: המכלול (גרסה משופרת - מאפשרת הרצה לכל משתמש מחובר) (() =&amp;gt; {     const api = new mw.Api();      &lt;span class=&quot;autocomment&quot;&gt;*      * מקבל את תוכן דף ההפניה.      * @param {string} title - שם הדף.      * @returns {Promise&amp;lt;string|null&amp;gt;} תוכן הדף או null אם הייתה שגיאה.: &lt;/span&gt;     const getRedirectContent = async (title) =&amp;gt; {         try {             const response = await api.get({                 pro...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;// קרדיט: המכלול (גרסה משופרת - מאפשרת הרצה לכל משתמש מחובר)&lt;br /&gt;
(() =&amp;gt; {&lt;br /&gt;
    const api = new mw.Api();&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * מקבל את תוכן דף ההפניה.&lt;br /&gt;
     * @param {string} title - שם הדף.&lt;br /&gt;
     * @returns {Promise&amp;lt;string|null&amp;gt;} תוכן הדף או null אם הייתה שגיאה.&lt;br /&gt;
     */&lt;br /&gt;
    const getRedirectContent = async (title) =&amp;gt; {&lt;br /&gt;
        try {&lt;br /&gt;
            const response = await api.get({&lt;br /&gt;
                prop: &amp;quot;revisions&amp;quot;,&lt;br /&gt;
                titles: title,&lt;br /&gt;
                rvprop: &amp;quot;content&amp;quot;,&lt;br /&gt;
                rvslots: &amp;quot;*&amp;quot;,&lt;br /&gt;
                formatversion: &amp;quot;2&amp;quot;,&lt;br /&gt;
            });&lt;br /&gt;
            const page = response.query?.pages?.[0];&lt;br /&gt;
            return page?.revisions?.[0]?.slots?.main?.content ?? null;&lt;br /&gt;
        } catch (error) {&lt;br /&gt;
            console.error(&amp;quot;שגיאה בקבלת תוכן הפניה עבור &amp;quot; + title + &amp;quot;:&amp;quot;, error);&lt;br /&gt;
            return null;&lt;br /&gt;
        }&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * מקבל את יעד ההפניה הסופי.&lt;br /&gt;
     * @param {string} title - שם דף ההפניה.&lt;br /&gt;
     * @returns {Promise&amp;lt;string|null&amp;gt;} יעד ההפניה או null אם לא נמצא.&lt;br /&gt;
     */&lt;br /&gt;
    const getRedirectTarget = async (title) =&amp;gt; {&lt;br /&gt;
        try {&lt;br /&gt;
            const { query } = await api.get({&lt;br /&gt;
                titles: title,&lt;br /&gt;
                redirects: true, // מאפשר למדיה-וויקי לעקוב אחר הפניות&lt;br /&gt;
            });&lt;br /&gt;
&lt;br /&gt;
            if (query?.pages) {&lt;br /&gt;
                // מצא את הדף שאינו חסר (היעד הסופי)&lt;br /&gt;
                const page = Object.values(query.pages).find((p) =&amp;gt; !p.missing);&lt;br /&gt;
                return page?.title ?? null;&lt;br /&gt;
            }&lt;br /&gt;
            return null;&lt;br /&gt;
        } catch (error) {&lt;br /&gt;
            console.error(&amp;quot;שגיאה בקבלת יעד ההפניה עבור &amp;quot; + title + &amp;quot;:&amp;quot;, error);&lt;br /&gt;
            return null;&lt;br /&gt;
        }&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * מחלץ את העוגן (anchor) מתוך תוכן הפניה (לדוגמה: [[דף_יעד#עוגן]]).&lt;br /&gt;
     * @param {string} content - תוכן דף ההפניה.&lt;br /&gt;
     * @returns {string} העוגן עם &amp;#039;#&amp;#039; אם קיים, אחרת מחרוזת ריקה.&lt;br /&gt;
     */&lt;br /&gt;
    const extractAnchorFromContent = (content) =&amp;gt; {&lt;br /&gt;
        const match = content.match(/#הפניה\s*\[\[[^\]]+?(?:#(.+?))?\]\]/);&lt;br /&gt;
        return match?.[1] ? &amp;quot;#&amp;quot; + match[1] : &amp;quot;&amp;quot;;&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * מקבל את קידומת מרחב השם של דף (לדוגמה: &amp;quot;מדיה ויקי:&amp;quot;, &amp;quot;קובץ:&amp;quot;).&lt;br /&gt;
     * @param {string} title - שם הדף.&lt;br /&gt;
     * @returns {Promise&amp;lt;string&amp;gt;} קידומת מרחב השם או מחרוזת ריקה.&lt;br /&gt;
     */&lt;br /&gt;
    const getNamespacePrefix = async (title) =&amp;gt; {&lt;br /&gt;
        try {&lt;br /&gt;
            const { query } = await api.get({&lt;br /&gt;
                titles: title,&lt;br /&gt;
                prop: &amp;quot;info&amp;quot;,&lt;br /&gt;
            });&lt;br /&gt;
&lt;br /&gt;
            if (query?.pages) {&lt;br /&gt;
                const page = Object.values(query.pages)[0];&lt;br /&gt;
                if (page.ns !== undefined) {&lt;br /&gt;
                    // יש להוסיף כאן מרחבי שמות נוספים במידת הצורך&lt;br /&gt;
                    const namespacePrefixes = {&lt;br /&gt;
                        4: &amp;quot;חבדפדיה:&amp;quot;,    // Namespace 4&lt;br /&gt;
                        6: &amp;quot;קובץ:&amp;quot;,       // Namespace 6&lt;br /&gt;
                        10: &amp;quot;תבנית:&amp;quot;,     // Namespace 10&lt;br /&gt;
                        12: &amp;quot;עזרה:&amp;quot;,      // Namespace 12&lt;br /&gt;
                        // ... ניתן להוסיף עוד מרחבי שמות לפי המספרים שלהם בוויקי&lt;br /&gt;
                    };&lt;br /&gt;
                    return namespacePrefixes[page.ns] ?? &amp;quot;&amp;quot;;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            return &amp;quot;&amp;quot;;&lt;br /&gt;
        } catch (error) {&lt;br /&gt;
            console.error(&amp;quot;שגיאה בקבלת קידומת מרחב שם עבור &amp;quot; + title + &amp;quot;:&amp;quot;, error);&lt;br /&gt;
            return &amp;quot;&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * יוצר/מתקן הפניה.&lt;br /&gt;
     * @param {string} title - שם הדף שיהפוך להפניה.&lt;br /&gt;
     * @param {string} target - יעד ההפניה.&lt;br /&gt;
     */&lt;br /&gt;
    const createRedirect = async (title, target) =&amp;gt; {&lt;br /&gt;
        try {&lt;br /&gt;
            await api.postWithEditToken({&lt;br /&gt;
                action: &amp;quot;edit&amp;quot;,&lt;br /&gt;
                format: &amp;quot;json&amp;quot;,&lt;br /&gt;
                // **השורות עם &amp;quot;tags&amp;quot; הוסרו לחלוטין כאן.**&lt;br /&gt;
                title: title,&lt;br /&gt;
                text: &amp;quot;#הפניה [[&amp;quot; + target + &amp;quot;]]&amp;quot;,&lt;br /&gt;
                summary: &amp;quot;בוט: מתקן הפניה כפולה ל- [[&amp;quot; + target + &amp;quot;]]&amp;quot;,&lt;br /&gt;
            });&lt;br /&gt;
            mw.notify(title + &amp;quot;: ההפניה תוקנה בהצלחה ל- &amp;quot; + target, { type: &amp;#039;success&amp;#039;, title: &amp;#039;הצלחה&amp;#039; });&lt;br /&gt;
        } catch (error) {&lt;br /&gt;
            console.error(&amp;quot;שגיאה ביצירת הפניה עבור &amp;quot; + title + &amp;quot; ל- &amp;quot; + target + &amp;quot;:&amp;quot;, error);&lt;br /&gt;
            // בדיקה ספציפית לשגיאת badtags&lt;br /&gt;
            if (error.code === &amp;#039;badtags&amp;#039;) {&lt;br /&gt;
                 mw.notify(title + &amp;quot;: שגיאה: אין הרשאה להשתמש בתגיות עריכה. אנא פנה למנהל המערכת.&amp;quot;, { type: &amp;#039;error&amp;#039;, title: &amp;#039;שגיאת הרשאה&amp;#039; });&lt;br /&gt;
            } else {&lt;br /&gt;
                 mw.notify(title + &amp;quot;: נכשל תיקון ההפניה. פרטים בקונסול.&amp;quot;, { type: &amp;#039;error&amp;#039;, title: &amp;#039;שגיאה&amp;#039; });&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * מעבד הפניה כפולה יחידה: מוצא את היעד הסופי ומתקן אותה.&lt;br /&gt;
     * @param {string} title - שם הדף של ההפניה הכפולה.&lt;br /&gt;
     */&lt;br /&gt;
    const processRedirect = async (title) =&amp;gt; {&lt;br /&gt;
        try {&lt;br /&gt;
            const content = await getRedirectContent(title);&lt;br /&gt;
            if (content === null) {&lt;br /&gt;
                mw.notify(title + &amp;quot;: לא ניתן לאחזר תוכן דף ההפניה.&amp;quot;, { type: &amp;#039;warn&amp;#039; });&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            const anchor = extractAnchorFromContent(content);&lt;br /&gt;
            const finalTarget = await getRedirectTarget(title);&lt;br /&gt;
&lt;br /&gt;
            if (!finalTarget) {&lt;br /&gt;
                mw.notify(title + &amp;quot;: לא נמצא יעד הפניה סופי.&amp;quot;, { type: &amp;#039;warn&amp;#039; });&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            const namespace = await getNamespacePrefix(finalTarget);&lt;br /&gt;
            const fullTarget = namespace + finalTarget + anchor;&lt;br /&gt;
&lt;br /&gt;
            // בדיקה למניעת הפניות מעגליות או תיקונים מיותרים&lt;br /&gt;
            if (title.replace(/_/g, &amp;quot; &amp;quot;) === finalTarget.replace(/_/g, &amp;quot; &amp;quot;) &amp;amp;&amp;amp; !anchor) {&lt;br /&gt;
                mw.notify(title + &amp;quot;: ההפניה כבר תקינה. אין צורך בתיקון.&amp;quot;, { type: &amp;#039;info&amp;#039; });&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            if (title.replace(/_/g, &amp;quot; &amp;quot;) === fullTarget.replace(/_/g, &amp;quot; &amp;quot;)) {&lt;br /&gt;
                mw.notify(title + &amp;quot;: הפניה מעגלית או תקינה. אין צורך בתיקון.&amp;quot;, { type: &amp;#039;info&amp;#039; });&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            console.log(&amp;quot;יוצר הפניה חדשה: &amp;quot; + title + &amp;quot; --&amp;gt; &amp;quot; + fullTarget);&lt;br /&gt;
            await createRedirect(title, fullTarget);&lt;br /&gt;
&lt;br /&gt;
        } catch (error) {&lt;br /&gt;
            console.error(&amp;quot;שגיאה בעיבוד הפניה כפולה עבור &amp;quot; + title + &amp;quot;:&amp;quot;, error);&lt;br /&gt;
            mw.notify(title + &amp;quot;: אירעה שגיאה בעת עיבוד ההפניה. פרטים בקונסול.&amp;quot;, { type: &amp;#039;error&amp;#039;, title: &amp;#039;שגיאה&amp;#039; });&lt;br /&gt;
        }&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * הפונקציה הראשית שמפעילה את הסקריפט.&lt;br /&gt;
     */&lt;br /&gt;
    const init = async () =&amp;gt; {&lt;br /&gt;
        const pageName = mw.config.get(&amp;quot;wgPageName&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        // ודא שהסקריפט רץ רק בדף ההפניות הכפולות&lt;br /&gt;
        if (pageName !== &amp;quot;מיוחד:הפניות_כפולות&amp;quot;) {&lt;br /&gt;
            console.log(&amp;quot;הסקריפט פועל רק בדף מיוחד:הפניות_כפולות.&amp;quot;);&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        const numInput = prompt(&amp;quot;כמה הפניות כפולות להציג ולתקן? (מומלץ להתחיל עם מספר קטן, לדוגמה: 10)&amp;quot;, &amp;quot;0&amp;quot;);&lt;br /&gt;
        const num = parseInt(numInput, 10);&lt;br /&gt;
&lt;br /&gt;
        if (isNaN(num) || num &amp;lt;= 0) {&lt;br /&gt;
            mw.notify(&amp;quot;קלט לא חוקי. אנא הזן מספר שלם חיובי.&amp;quot;, { type: &amp;#039;error&amp;#039; });&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        try {&lt;br /&gt;
            mw.notify(&amp;quot;מתחיל בדיקת &amp;quot; + num + &amp;quot; הפניות כפולות...&amp;quot;, { type: &amp;#039;info&amp;#039; });&lt;br /&gt;
&lt;br /&gt;
            // קבלת רשימת ההפניות הכפולות באמצעות API&lt;br /&gt;
            const { query } = await api.get({&lt;br /&gt;
                list: &amp;quot;querypage&amp;quot;,&lt;br /&gt;
                qppage: &amp;quot;DoubleRedirects&amp;quot;,&lt;br /&gt;
                qplimit: num,&lt;br /&gt;
            });&lt;br /&gt;
&lt;br /&gt;
            const redirects = query.querypage.results;&lt;br /&gt;
            if (redirects.length === 0) {&lt;br /&gt;
                mw.notify(&amp;quot;לא נמצאו הפניות כפולות לתיקון.&amp;quot;, { type: &amp;#039;info&amp;#039; });&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            // לולאה על כל הפניה ותיקונה&lt;br /&gt;
            for (const redirect of redirects) {&lt;br /&gt;
                const title = redirect.title.replace(/_/g, &amp;quot; &amp;quot;);&lt;br /&gt;
                await processRedirect(title);&lt;br /&gt;
            }&lt;br /&gt;
            mw.notify(&amp;quot;סיום עיבוד ההפניות הכפולות.&amp;quot;, { type: &amp;#039;success&amp;#039;, title: &amp;#039;סיום&amp;#039; });&lt;br /&gt;
&lt;br /&gt;
        } catch (error) {&lt;br /&gt;
            console.error(&amp;quot;שגיאה באחזור הפניות כפולות:&amp;quot;, error);&lt;br /&gt;
            mw.notify(&amp;quot;אירעה שגיאה באחזור רשימת ההפניות הכפולות.&amp;quot;, { type: &amp;#039;error&amp;#039;, title: &amp;#039;שגיאה כללית&amp;#039; });&lt;br /&gt;
        }&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
    // הפעל את הסקריפט כאשר הדף נטען&lt;br /&gt;
    $(init);&lt;br /&gt;
})();&lt;/div&gt;</summary>
		<author><name>Bot doubleredirects</name></author>
	</entry>
</feed>