Forum:Customizing the contents shown through "Add an image"

Hey there, is it possible to customize the contents shown through "Add an image", when clicking on it with a left click? Or is it possible to have the same results that with a right click, thus directly going to the proper Special:Upload page?... It seems they did it on Wookieepedia, so I guess it's possible. If anyone can help, I'd be glad. Thanks. Klow 15:31, March 27, 2011 (UTC)


 * Wookieepedia probably got that through Special:Contact. You could ask staff, but they'll make you cite a community discussion.


 * Taken from Wookiepedia's MediaWiki:Wikia.js page:

 $(document).ready(function {	// Restores normal upload form since the popup one ignores source and license policy. Adapted from http://es.pokemon.wikia.com/wiki/MediaWiki:Wikia.js.	$('a.wikia-button.upphotos').unbind('click',UploadPhotos.showDialog); });
 * Add it to your .js page and it should disable the pop-up. Not sure if that's not a violation of the ToU though. Sovq 16:09, March 27, 2011 (UTC)


 * Documented on here --Ciencia Al Poder (talk) -WikiDex 16:10, March 27, 2011 (UTC)
 * @Ciencia Al Poder - Check your link, it doesn't go anywhere.
 * Fixed, sorry --Ciencia Al Poder (talk) -WikiDex 17:51, March 27, 2011 (UTC)
 * Thanks, I got my answers from a Wookieepedia admin. ;) Klow 14:57, March 28, 2011 (UTC)


 * What's now needed is for the user to be redirected to Special:Upload if they click a placeholder image box.



-- LordTBT Talk! 22:58, April 1, 2011 (UTC)


 * Assuming it isn't a ToU violation to do so, add this to your JS:

 function PlaceholderLink { $('.wikiaPlaceholder a').attr('href', '/wiki/Special:Upload').onclick(''); }

addOnloadHook(PlaceholderLink);
 * That should redirect placeholder buttons to Special:Upload.