<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://irony.wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-exlinks.js</id>
	<title>MediaWiki:Gadget-exlinks.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://irony.wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-exlinks.js"/>
	<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=MediaWiki:Gadget-exlinks.js&amp;action=history"/>
	<updated>2026-04-22T12:54:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://irony.wiki/index.php?title=MediaWiki:Gadget-exlinks.js&amp;diff=11601&amp;oldid=prev</id>
		<title>Saucy: Copy gadget from Wikipedia</title>
		<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=MediaWiki:Gadget-exlinks.js&amp;diff=11601&amp;oldid=prev"/>
		<updated>2023-10-18T23:48:11Z</updated>

		<summary type="html">&lt;p&gt;Copy gadget from Wikipedia&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;mw.hook(&amp;#039;wikipage.content&amp;#039;).add(function($content) {&lt;br /&gt;
	// Second selector is for external links in Parsoid HTML+RDFa output (bug 65243).&lt;br /&gt;
	$content.find(&amp;#039;a.external, a[rel=&amp;quot;mw:ExtLink&amp;quot;]&amp;#039;).each(function () {&lt;br /&gt;
		// Can&amp;#039;t use wgServer because it can be protocol relative&lt;br /&gt;
		// Use this.href property instead of this.getAttribute(&amp;#039;href&amp;#039;)  because the property&lt;br /&gt;
		// is converted to a full URL (including protocol)&lt;br /&gt;
		if (this.href.indexOf(location.protocol + &amp;#039;//&amp;#039; + location.hostname) !== 0) {&lt;br /&gt;
			this.target = &amp;#039;_blank&amp;#039;;&lt;br /&gt;
			if ( this.rel.indexOf( &amp;#039;noopener&amp;#039; ) &amp;lt; 0 ) {&lt;br /&gt;
				this.rel += &amp;#039; noopener&amp;#039;; // the leading space matters, rel attributes have space-separated tokens&lt;br /&gt;
			}&lt;br /&gt;
			if ( this.rel.indexOf( &amp;#039;noreferrer&amp;#039; ) &amp;lt; 0 ) {&lt;br /&gt;
				this.rel += &amp;#039; noreferrer&amp;#039;; // the leading space matters, rel attributes have space-separated tokens&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	});&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Saucy</name></author>
	</entry>
</feed>