Content deleted Content added
Migration: addOnloadHook → $; wg* → mw.config.get('wg*'); getElementsByClassName → $('.class'); This is imported from it:wikt:MediaWiki:Gadget-autolink.js |
Amorymeltzer (talk | contribs) m Bugfix: Allow for &diff or ?diff; Better ways to do this would involve more editing |
||
(One intermediate revision by one other user not shown) | |||
Line 31:
/* ---------------------------------------- Variables ------------------------------------------- */
var autolinkDiff = ___location.href.indexOf('
// It says if I'm in a diff page
Line 46:
if (autolinkDiff) { // in diff pages
if (autolinkParseLink) { // without wikEd
autolinkTargetDiv[0] =
autolinkTargetDiv[1] =
autolinkColor = 'inherit'; // not coloured links
} else { // with wikEd
autolinkTargetDiv[0] =
autolinkColor = ''; // coloured links
}
} else if (autolinkCrono || autolinkEdit) { // in comments
autolinkTargetDiv[0] =
autolinkColor = ''; // coloured links
} else { // in code sections
autolinkTargetDiv[0] =
autolinkTargetDiv[1] =
autolinkTargetDiv[2] =
autolinkTargetDiv[3] =
autolinkTargetDiv[4] =
autolinkColor = ''; // coloured links
}
|