Diferencia entre revisiones de «Usuario:JimTittsler/vector.js»
De WikiEducator
(Página creada con 'importScript('User:JimTittsler/googlesearch.js'); $(function () { $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created …') |
m (1 revisión: import from en.WE after update to MW 1.23+) |
||
(5 revisiones intermedias por el mismo usuario no mostrado) | |||
Línea 2: | Línea 2: | ||
$(function () { | $(function () { | ||
+ | $('#n-recentchanges').find('a:first').attr('href', '/index.php?title=Special:RecentChanges&hidebots=0'); | ||
$('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); | $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); | ||
− | $('#pt-mytalk') | + | var st = $('#pt-mytalk').attr('style'); |
− | + | st = st ? ' style="' + st + '"': ''; | |
− | + | // gardening tool | |
− | + | if ((wgCanonicalNamespace === 'Special') && $.inArray(wgCanonicalSpecialPageName, ['Newpages', 'Recentchanges']) > -1) { | |
− | + | $.getScript('/extensions/WE/spam.js'); | |
− | + | ||
− | / | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | if ( | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
+ | if (wgAction === 'history') { | ||
+ | $.getScript('/extensions/WE/deleterevs.js'); | ||
+ | } | ||
+ | $('#p-coll-create_a_book li a[href*="add_article"]').parent() | ||
+ | .after('<li><a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page & subpages</a></li>'); | ||
}); | }); |
Última revisión de 14:48 3 sep 2014
importScript('User:JimTittsler/googlesearch.js'); $(function () { $('#n-recentchanges').find('a:first').attr('href', '/index.php?title=Special:RecentChanges&hidebots=0'); $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); var st = $('#pt-mytalk').attr('style'); st = st ? ' style="' + st + '"': ''; // gardening tool if ((wgCanonicalNamespace === 'Special') && $.inArray(wgCanonicalSpecialPageName, ['Newpages', 'Recentchanges']) > -1) { $.getScript('/extensions/WE/spam.js'); } if (wgAction === 'history') { $.getScript('/extensions/WE/deleterevs.js'); } $('#p-coll-create_a_book li a[href*="add_article"]').parent() .after('<li><a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page & subpages</a></li>'); });