User:DannyS712/common.js

mw.loader.load('//en.wikinews.org/w/index.php?title=User:DannyS712/hide.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikinews.org/w/index.php?title=User:Gryllida/js/wab-talk.js&action=raw&ctype=text/javascript');

$(document).ready( function {	if ( mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 4 ) {		$('span.sourceTemplate').each( function (index, template) { var $template = $(template); var links = $template.children( 'a.external' ); if ( links.length === 0 ) { return; }		   var link = links[0].href; var $dupdet = $('') .attr( 'href', 'https://tools.wmflabs.org/dupdet/compare.php?url1=https://en.wikinews.org%2Fwiki%2F' + encodeURIComponent( mw.config.get('wgPageName' ) ) + '&url2=' + encodeURIComponent( link ) + '&minwords=2&minchars=13' ) .text( 'Dupdet' ); $template.before( $dupdet ).before( ' ' ); } );	} } );