User:Lost Labyrinth/wikia.js

//

importScript('User:GEORGIEGIBBONS/admin/rollbackall.js'); importScript('User:GEORGIEGIBBONS/admin/adminbuttons.js'); importScript('User:GEORGIEGIBBONS/admin/fastdelete.js'); importScript('User:GEORGIEGIBBONS/admin/autoreport.js'); importScript('User:GEORGIEGIBBONS/admin/contribsrange.js'); importScript('User:GEORGIEGIBBONS/general/HotCat.js'); importScript('User:GEORGIEGIBBONS/general/killimagepopup.js'); importScriptPage('User:GEORGIEGIBBONS/general/chathacks.js', 'sims');

/* Quick image license - contains the most commonly used licensing criteria */ function QLicenseUI { var options = { '': 'Fanon image', '': 'Sim from TS1', '': 'Screenshot from TS1', '': 'Lot from TS1', '': 'Sim from TS2', '': 'Screenshot from TS2', '': 'Lot from TS2', '': 'Sim from TS3', '': 'Screenshot from TS3', '': 'Lot from TS3', '': 'Sim from a console game', '': 'Screenshot from a console game', '': 'An object', '': 'A pet', '': 'Something else from The Sims series/other EA-copyrighted image', '': 'Fair use' '': 'Public domain' };	var optstr = ''; for(i in options) { optstr += '' + options[i] + ' '; }	var html = '' + optstr + ' Add license'; if($('#LicensedFile').length || $('#Copyright').length) { html += ' This file is licensed. ';	} else { html += ' This file is not licensed. ';	}	$('#filetoc').append(html); $('#aSubmit').click( function(event) {		this.innerHTML = '';		$.post("/api.php", {action: "edit", title: wgPageName, token: mw.user.tokens.values.editToken, appendtext: $("#QLicenseSelect").val, summary: "Licensing image."}, function (result) { window.location = wgServer + '/index.php?title=' + wgPageName + '&action=purge'; });	}); } if (wgCanonicalNamespace == 'File') { addOnloadHook(QLicenseUI); }

//