User:Midas02/common.js

/* Mark changes as minor by default */ if(wgAction == 'edit') { addOnloadHook(function minorEdit {      document.getElementById('wpMinoredit').checked = true;    } )}

/* Verminder irritatie rond WikiData */ mw.util.addPortletLink('p-tb', 'http://www.wikidata.org/w/index.php?button=&title=Special%3ASearch&search=' + encodeURIComponent(wgTitle), "Find in WikiData", "ca-wikidata", "Find in Wikidata"); //mw.loader.load( '//nl.wikipedia.org/w/index.php?title=' //   + 'Gebruiker:Zanaq/fwikidata.js&action=raw&ctype=text/javascript' );

/* User:Zhaofeng Li/reFill */ mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

importScript('User:Anomie/watchlist-change-style-selector.js'); // Linkback: User:Anomie/watchlist-change-style-selector.js importStylesheet('User:Anomie/watchlist-change-style-selector.css'); // Linkback: User:Anomie/watchlist-change-style-selector.css // importScript('User:Anomie/linkclassifier.js'); // Linkback: User:Anomie/linkclassifier.js // importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: User:Anomie/linkclassifier.css

/* Link to Wikiblame */ mw.util.addPortletLink('p-tb', "http://wikipedia.ramselehof.de/wikiblame.php?user_lang=en&lang=en&project=wikipedia&article=" + wgPageName, "Wikiblame", "pt-Wikiblame", "Wikiblame");

/* Link to statistics for latest 90 days */ mw.util.addPortletLink('p-tb', "http://stats.grok.se/en/latest90/" + wgPageName, "Visitor statistics", "ca-stats", "Visitor statistics");

/* User:Qwertyytrewqqwerty/DisamAssist.js */ importScript( 'User:Midas02/DisamAssist.js' );

/* Zeus mode */ mw.loader.load( '//en.wikipedia.org/w/index.php?title='   + 'User:Midas02/Gadget-zeus.js&action=raw&ctype=text/javascript' ); //document.write(''); /* + 'src="https://nl.wikipedia.org/w/index.php?title=MediaWiki:Gadget-zeus.js' */

// Unwatch from watchlist // @source www.mediawiki.org/wiki/Snippets/Unwatch_from_watchlist // @revision 2014-12-17 mw.hook( 'wikipage.content' ).add( function ( $content ) {   // Only on Watchlist and not in the /edit or /raw mode    if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Watchlist' || location.href.indexOf( '/edit' ) > 0 || location.href.indexOf( '/raw' ) > 0 ) {        return;    }    mw.loader.using( 'mediawiki.api.watch' ).done( function  { // Get the links var $wlHistLinks = $content.find( 'ul.special > li > a[href$="action=history"]');

$wlHistLinks.each( function {            var $unwatch,                $el = $( this ),                title = mw.util.getParamValue( 'title', this.href );

$unwatch = $el.clone .text( 'unwatch' ) .attr( 'href', function ( i, val ) {                   return val.replace( 'action=history', 'action=unwatch' );                } ) .on( 'click', function ( e ) {                   new mw.Api.unwatch( title )                        .done( function  { $unwatch.css( { pointerEvents: 'none', opacity: 0.5 } ); } )                       .fail( function  { $unwatch.off( 'click' ).append( ' (try again?)' ); } );                   e.preventDefault;                } ); $el.after( $unwatch ).after( ' | ' ); } );   } ); } );

importScript('User:Cameltrader/Advisor.js');