<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/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://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-exlinks.js"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-exlinks.js&amp;action=history"/>
	<updated>2026-06-11T22:13:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-exlinks.js&amp;diff=10022&amp;oldid=prev</id>
		<title>Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=MediaWiki:Gadget-exlinks.js&amp;diff=10022&amp;oldid=prev"/>
		<updated>2020-01-28T15:04:19Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;// **********************************************************************&lt;br /&gt;
// **                 ***WARNING GLOBAL GADGET FILE***                 **&lt;br /&gt;
// **             changes to this file affect many users.              **&lt;br /&gt;
// **           please discuss on the talk page before editing         **&lt;br /&gt;
// **                                                                  **&lt;br /&gt;
// **********************************************************************&lt;br /&gt;
/**&lt;br /&gt;
 * @source mediawiki.org/wiki/Snippets/Open_external_links_in_new_window&lt;br /&gt;
 * @version 5&lt;br /&gt;
 */&lt;br /&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>Caleb Cooper</name></author>
	</entry>
</feed>