User:Ktr101/common.js

/*** * Deletion scripts. */

//AFD closing. //importScript('User:Mr.Z-man/closeAFD.js'); importScript('User:Timotheus Canens/closeAFD.js'); importScript('User:Mr.Z-man/hideClosedAFD.js');

/*** * Editing scripts */

//Playing with rollback. importScript('User:Mr.Z-man/rollbackSummary.js'); importScript('User:John254/mass rollback.js') rollbackSummaryDefault = "Reverted edits by $2 (talk) to last version by $1";

// enhanced diff view importScript('User:Cacycle/wikEdDiff.js');

//DYK importScript('User:Shubinator/DYKcheck.js');

importScript('User:Mr.Z-man/moverevert2.js')

spiHelper_watchArchive = "unwatch"; spiHelper_watchCase = "nochange";

importScript('User:Timotheus Canens/spihelper.js'); //importScript('User:Timotheus Canens/spicaselist.js'); //importScript('User:Timotheus Canens/test.js');

importScript('User:NuclearWarfare/Mark-blocked script.js');

function shortlinks { document.getElementById('pt-mytalk').firstChild.innerHTML = 'Talk'; document.getElementById('pt-preferences').firstChild.innerHTML = 'Preferences'; document.getElementById('pt-watchlist').firstChild.innerHTML = 'Watchlist'; document.getElementById('pt-mycontris').firstChild.innerHTML = 'Contributions'; } addOnloadHook(shortlinks);

//RFA stuff importScript('User:Archanamiya/Rfa helper/script.js');

//Stalker stuff importScript('User:PleaseStand/userinfo.js');

//Commons stuff importScript('Fran Rogers/CH2 en.js');

importScript('Prodego/moverevert.js');

//OTRS

/* User:Technical 13/Scripts/helpOTRS */ importScript( 'User:Technical 13/Scripts/helpOTRS.js' );// Backlink: User:Technical 13/Scripts/helpOTRS

//Image searching

mw.loader.load( "//en.wikipedia.org/w/index.php?title=User:Kephir/gadgets/jssand.js&action=raw&ctype=text/javascript" );

jQuery(document).ready(function { 'use strict';	if (mw.config.get('wgNamespaceNumber') !== 6 || mw.config.get('wgAction') !== "view" || !document.getElementById('file')) return;	var imgs = document.getElementById('file').getElementsByTagName('img');	if (!imgs || imgs.length === 0) return; // No preview image, e.g. for large PNGs	var imageurl = imgs[0].parentNode.href;	if (!imageurl) return;	if (document.getElementById('file').getElementsByTagName('img').length <= 0) return; 	if (document.getElementById('file').getElementsByTagName('img')[0].width <= 300) {		imageurl = document.getElementById('file').getElementsByTagName('img')[0].src; //Image smaller than 300px width	} else {		var n = imageurl.indexOf("/en/");		imageurl = imageurl.substring(0, n + ("/en/").length) + "thumb/" + imageurl.substring(n + ("/en/").length);		n = imageurl.lastIndexOf('/') + 1;		imageurl = imageurl + "/300px-" + imageurl.substring(n); }	mw.util.addPortletLink('p-cactions', 'https://www.google.com/searchbyimage?image_url=' + encodeURIComponent(imageurl), 'searchbyimage', 'ca-googleimages', null); }); // Gadget-GoogleImages.js © (CC BY-SA 3.0) authors of https://commons.wikimedia.org/wiki/MediaWiki:Gadget-GoogleImages.js