This script/stylesheet is for PERSONAL use only!
You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js, MediaWiki:Fandomdesktop.css, or MediaWiki:FandomMobile.css), as it would violate Fandom's Terms of Use.
(See the customization policy)
NoImageLightbox es un script que deshabilita el cargador de Lightbox de Fandom en el aspecto de Oasis para que al hacer clic en una imagen, acceda a su página Archivo:.
Los vídeos usan el mismo cargador de caja de luz, pero el comportamiento esperado predeterminado para este script es que los vídeos no deberían verse afectados y deberían continuar reproduciéndose normalmente en las páginas de contenido.
Para ir a la página Archivo: de un vídeo, haga clic con el botón derecho en el vídeo y elija la opción Abrir enlace en una nueva pestaña.
Installation
Configuration
A partir del 20 de abril de 2013, este script incluye una opción para deshabilitar completamente la caja de luz para vídeos e imágenes. Para habilitar esta opción, establezca window.NoImageLightbox.novideo al valor true durante la instalación, así:
window.NoImageLightbox = { novideo: true };
importArticles({
type: 'script',
articles: [
'u:dev:NoImageLightbox/code.js'
]
});
Using configuration options with Fandom Developers Wiki scripts
The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.
// 1. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 2. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
Registro de cambios
- 20 August 2014
- User:Cqm: Added fix for images that link to external and internal pages following a change that caused this script to interfere with them.
- 22 October 2013
- Mathmagician: Added hotfix for images in the right rail, which Fandom recently changed to be lazy loaded.
- 27 April 2013
- Mathmagician: Reimplemented part of the script to fix a couple bugs (see Talk:NoImageLightbox#Tabs) where right-click -> "Open link in new tab" (and CTRL + click in Chrome) weren't functioning properly. Thanks to Pecoes for giving me the idea.
- 20 April 2013
- Mathmagician: Pushed script re-write to fix script breaking as a result of Fandom changes. Also added new (optional) configuration option to completely disable the lightbox (affects both videos and images).
- 8 November 2012
- Mathmagician: Fixed bug where linking for images such as [[File:Image.png|link=SomePage]] wasn't working
- 6 August 2012
- Mathmagician: Created.