Forum:Image titles in categories. Need CSS/JS fix to allow more than 20 characters

This is something that has bugged me a long time. Both on Wikia and Wikipedia.

See: http://cannabis.wikia.com/wiki/Category:Cannabis-related_event_graphics

It seems that only 20 characters (that includes spaces) are allowed to be shown. This prevents easy scanning of the image titles to see what the image is about.

Is there a JS and/or CSS fix for this? --Timeshifter 01:00, May 14, 2011 (UTC)


 * JS:

 $(function {$('.gallerytext a').each(function {this.innerHTML = this.title;});});
 * Much easier than I thought it would be. Luckily, the title of each link is the full name of the picture.


 * Monchoman to the rescue! I tested in Special:MyPage/wikia.js (on WoWWiki) and it works! Whats the easiest way to remove the "File:", though? -- Fandyllic (talk &middot; contr) 13 May 2011 6:29 PM Pacific


 * Change  to.


 * Sweet! Thanks. See:
 * http://cannabis.wikia.com/wiki/MediaWiki:Common.js
 * http://cannabis.wikia.com/wiki/Category:Cannabis-related_event_graphics
 * http://cannabis.wikia.com/index.php?title=Category%3ACannabis-related_event_graphics&useskin=monobook
 * http://cannabis.wikia.com/index.php?title=Category%3ACannabis-related_event_graphics&useskin=vector
 * --Timeshifter 21:54, May 14, 2011 (UTC)


 * I believe this has been asked for many times on Wikipedia/Wikimedia. Why are the developers there so clueless about such a simple fix? --Timeshifter 21:54, May 14, 2011 (UTC)