<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-vector-headanchor.js</id>
	<title>MediaWiki:Gadget-vector-headanchor.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-vector-headanchor.js"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.js&amp;action=history"/>
	<updated>2026-07-18T01:34:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.js&amp;diff=1910&amp;oldid=prev</id>
		<title>Majestix: 1 revision imported: Initial Setup</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.js&amp;diff=1910&amp;oldid=prev"/>
		<updated>2026-04-09T10:34:01Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Initial Setup&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:34, 9 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikiNonStop:diff:1.41:old-1909:rev-1910 --&gt;
&lt;/table&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
	<entry>
		<id>https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.js&amp;diff=1909&amp;oldid=prev</id>
		<title>en&gt;Krinkle at 00:39, 8 March 2025</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=MediaWiki:Gadget-vector-headanchor.js&amp;diff=1909&amp;oldid=prev"/>
		<updated>2025-03-08T00:39:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/*!&lt;br /&gt;
 * Vector HeadAnchors gadget&lt;br /&gt;
 *&lt;br /&gt;
 * Copyright 2013 Timo Tijhof, https://mediawiki.org/wiki/MediaWiki:Gadget-vector-headanchor.js&lt;br /&gt;
 * SPDX-License-Identifier: MIT&lt;br /&gt;
 * License: https://opensource.org/licenses/MIT&lt;br /&gt;
 */&lt;br /&gt;
mw.hook( &amp;#039;wikipage.content&amp;#039; ).add( function ( $content ) {&lt;br /&gt;
	$content.find( &amp;#039;div.mw-heading&amp;#039; ).each( function ( i, heading ) {&lt;br /&gt;
		var el = heading.querySelector( &amp;#039;[id]:is(h1,h2,h3,h4,h5,h6)&amp;#039; );&lt;br /&gt;
		if ( !el || heading.querySelector( &amp;#039;.tpl-vheadanchor&amp;#039;) ) {&lt;br /&gt;
			// No anchor possible, or anchor already inserted&lt;br /&gt;
			return;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		// Support legacy Parser (wgParserEnableLegacyHeadingDOM=false):&lt;br /&gt;
		// &amp;lt;div class=mw-heading&amp;gt;&amp;lt;h2 id&amp;gt;Headline&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
		//&lt;br /&gt;
		// Support Parsoid:&lt;br /&gt;
		// &amp;lt;section&amp;gt;&lt;br /&gt;
		//   &amp;lt;div class=mw-heading&amp;gt;&amp;lt;h2 id&amp;gt;Headline&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
		// &amp;lt;/section&amp;gt;&lt;br /&gt;
		//&lt;br /&gt;
		// Support DiscussionTools:&lt;br /&gt;
		// - DiscussionTools wraps H2 into DIV.mw-heading, setting overflow:hidden on&lt;br /&gt;
		//   the outer DIV instead of H2. Our override has to match to avoid clipping&lt;br /&gt;
		//   the anchor.&lt;br /&gt;
		// - DiscussionTools inserts an element with [id] before H2, so the above selector&lt;br /&gt;
		//   for `el` must hardcode all heading tags instead of just [id].&lt;br /&gt;
		// &amp;lt;div class=mw-heading&amp;gt;&lt;br /&gt;
		//   &amp;lt;span id=&amp;quot;ooui-php-1&amp;quot; class=&amp;quot;ext-discussiontools-init-section-subscribeButton&amp;quot;&amp;gt;&amp;lt;a href&amp;gt;Subscribe&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
		//   &amp;lt;h2 id&amp;gt;&amp;lt;span&amp;gt;…&amp;lt;/span&amp;gt;Headline&amp;lt;span&amp;gt;…&amp;lt;/span&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
		// &amp;lt;/div&amp;gt;&lt;br /&gt;
		heading.classList.add( &amp;#039;tpl-vheadanchor-heading&amp;#039; );&lt;br /&gt;
&lt;br /&gt;
		// Insert anchor.&lt;br /&gt;
		anchor = document.createElement( &amp;#039;a&amp;#039; );&lt;br /&gt;
		anchor.href = &amp;#039;#&amp;#039; + el.id;&lt;br /&gt;
		anchor.textContent = &amp;#039;#&amp;#039;;&lt;br /&gt;
		anchor.title = &amp;#039;Link to this section&amp;#039;;&lt;br /&gt;
		anchor.className = &amp;#039;tpl-vheadanchor&amp;#039;;&lt;br /&gt;
		heading.insertBefore( anchor, el.nextSibling );&lt;br /&gt;
	} );&lt;br /&gt;
} );&lt;/div&gt;</summary>
		<author><name>en&gt;Krinkle</name></author>
	</entry>
</feed>