User:Moviesign/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete.js',        'u:dev:MediaWiki:QuickDiff/code.js',    ] }); /* This import will open a modal dialog to view diffs and take action. */ /*       'u:dev:MediaWiki:QuickDiff/code.js', */ /* Displays on user profile page all groups to which they belong. */ /*       'u:dev:MediaWiki:ShowUserGroups.js', */ /* Delete a list of pages */ /*       'u:dev:MediaWiki:AjaxBatchDelete.js', */ /* This allows blocking a list of sockpuppets */ /*       'u:dev:MediaWiki:MassBlock/code.js', */ /* This will add Mass Edit to the toolbar */ /*       'u:dev:MediaWiki:MassEdit/code.js', */ /* This import will open a model to change protection on a list of pages. */ /*       'u:dev:MediaWiki:MassProtect/code.js', */ /* This will add Mass Null Edit to the toolbar */ /*       'u:dev:MediaWiki:MassNullEdit/code.js', */ /* This will allow a user to rename a batch of pages semi-automatically. */ /*       'u:dev:MediaWiki:MassRename/code.js', */ /* This will allow a user to delete a batch of pages semi-automatically. */ /*       'u:dev:MediaWiki:Nuke/code.js', */ /* This adds a "Selective Delete" button to many Special pages */ /*       'u:dev:MediaWiki:MultipleFileDelete/code.js', */ /* This will allow a user to rename a category. Use with caution. */ /*       'u:dev:CategoryRenameAuto-update/code.js', */ /* This will allow a user to rename File: pages and update all links. */ /*       'u:dev:MediaWiki:FileUsageAuto-update/code.js', */ /* This activates Special:DiscussionsRC for viwing Recent Changes in /d */ /*       'u:dev:MediaWiki:DiscussionsRC.js', */ /* This replaces "A FANDOM user" with the IP address in article comments */ /*       'u:dev:MediaWiki:RevealAnonIP/usercode.js', */ /* This is for deleting all Discussions posts thru user Contributions */ /*		'u:dev:MediaWiki:Discussions Delete All/code.js', */ /* This creates Special:BlankPage/TVMH with handy utilities for remediation */ /*       'u:dev:MediaWiki:TVMH.js', */

/** window.SkinPropagation = { skin: '', init: function { if (window.location.href.indexOf('useskin=') == -1) return; var url = SkinPropagation.parseURL(window.location.href); if (url.query.useskin) { SkinPropagation.skin = (url.query.propagateskin || url.query.useskin); }		if (SkinPropagation.skin != '') { $(document.body).bind('click.skinpropagation', SkinPropagation.clicEvent); $('form').bind('submit.skinpropagation', SkinPropagation.submitEvent); }	},	parseURL: function(url) { var ret = {base:,qs:,query:{},hash:''}; var loc = url.indexOf('#'); if (loc != -1) { ret.hash = url.substr(loc+1); url = url.substr(0,loc); }		loc = url.indexOf('?'); if (loc != -1) { ret.qs = url.substr(loc+1); url = url.substr(0,loc); var paras = ret.qs.split('&'); for (var i = 0; i < paras.length; i++) { var p = paras[i].split('='); if (p.length == 2) { ret.query[p[0]] = p[1]; }			}		}		ret.base = url; return ret; },	getURL: function(url) { var nurl = url.base + '?'; for (var p in url.query) { nurl += p + '=' + url.query[p] + '&'; }		nurl = nurl.substr(0,nurl.length-1); if (url.hash != '') { nurl += '#'+ url.hash; }		return nurl; },	clicEvent: function(e) { if (e.target.tagName.toLowerCase != 'a') return; if (e.target.href.indexOf(window.wgServer) != 0) return; var url = SkinPropagation.parseURL(e.target.href); var thisloc = SkinPropagation.parseURL(window.location.href); if (url.base == thisloc.base && url.qs == thisloc.qs && url.hash != '') { return; }		if (url.query.useskin && url.query.useskin != SkinPropagation.skin) { url.query.propagateskin = SkinPropagation.skin; } else { url.query.useskin = SkinPropagation.skin; }		e.target.href = SkinPropagation.getURL(url); },	submitEvent: function(e) { if (this.action.indexOf(window.wgServer) != 0) return; if (this.method == 'post') { var url = SkinPropagation.parseURL(this.action); url.query.useskin = SkinPropagation.skin; this.action = SkinPropagation.getURL(url); } else { $(this).append(''); }	},	stop: function { $(document.body).unbind('click.skinpropagation'); $('form').unbind('submit.skinpropagation'); } };
 * SkinPropagation. Thank you Jesús for this script :)
 * Copyright (C) 2010 Jesús Martínez Novo (User:Ciencia Al Poder)
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version
 * (at your option) any later version

$(SkinPropagation.init);