Fandom Developers Wiki
(Created page with "{{Infobox JavaScript | Description = Kills Wikia's Lightbox loader for images so that clicking an image takes you directly to the File: page | Scope = Personal use only | Auth...")
 
(URL for attribution with import statement)
Line 17: Line 17:
 
To install this script, you can put the following code in [[w:Special:MyPage/global.js|your global.js]] on Community Central, or in another JavaScript file of your choice (see [[Help:JavaScript and CSS Cheatsheet]]). Admins: this is a user script for personal use only, do not install it wiki-wide for all users.
 
To install this script, you can put the following code in [[w:Special:MyPage/global.js|your global.js]] on Community Central, or in another JavaScript file of your choice (see [[Help:JavaScript and CSS Cheatsheet]]). Admins: this is a user script for personal use only, do not install it wiki-wide for all users.
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
  +
// http://dev.wikia.com/wiki/NoImageLightbox
 
importScriptPage('NoImageLightbox/code.js', 'dev');
 
importScriptPage('NoImageLightbox/code.js', 'dev');
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 07:55, 7 August 2012

The NoImageLightbox script disables Wikia's new Lightbox loader so that clicking on an image properly takes you to its File: page.

Videos use the same lightbox loader, but this script uses a trick to make sure that videos are still playable when clicked on. To go to the File: page for a video, you can right-click and open the link in a new window.

Tested mainly in Chrome & Firefox.

Installation

To install this script, you can put the following code in your global.js on Community Central, or in another JavaScript file of your choice (see Help:JavaScript and CSS Cheatsheet). Admins: this is a user script for personal use only, do not install it wiki-wide for all users.

// http://dev.wikia.com/wiki/NoImageLightbox
importScriptPage('NoImageLightbox/code.js', 'dev');

Updates

6 August 2012
Mathmagician: Created.