User:Seraphimblade/common.js

importScript('User:Evad37/TextDiff.js'); // User:Evad37/TextDiff

/* Automate purge confirmation dialog */ if ( mw.config.get( 'wgAction' ) === 'purge' ) { $('form[action*="action=purge"]').submit; }

/* Force Wikipedia to use the desktop version. Google on mobile uses "en.m.wikipedia.org", this scripts redirects to the normal version. CC0 if(window.location.href.match(/^https?:\/\/[^.]+\.m\./)) { var desktopUrl = $('#mw-mf-display-toggle').attr('href') if(desktopUrl) { window.location.href = desktopUrl } }