User:Stype & Co. (WMF)/common.js

//importScript('User:Stype & Co. (WMF)/alert.js');

( function ( $, mw ) {	if ( $( '#ca-edit' ).length && ( mw.config.get( 'wgNamespaceNumber' ) >= 0 && mw.config.get( 'wgNamespaceNumber' ) <= 3 ) ) {	   var title = encodeURIComponent( mw.config.get( 'wgPageName' ) );	    var proxyUrl = 'https://torproxy.wmflabs.org/torproxy/index.php?action=edit&title=' +  title;	    mw.util.addPortletLink( 'p-views', proxyUrl, 'Edit via Tor', 'tor-edit', 'Edit this page via torproxy', '', $('#ca-edit') );	} }( jQuery, mediaWiki ) );